triquent
Full Member level 3
1)what kind of circuits will be synthesized into?
module aa(ck, r1, r2)
input ck;
output r1, r2; reg r1, r2;
always @(posedge ck) begin
r1<=r2;
r2<=r1;
end
endmodule
2)waht kind of combinational circuits will be sythesized into?
module bb(a, b, x)
input a, b;
output x; reg x;
always@(a or b)begin
x=func(a,b);
end
function func;
input a, b;
if (a)
func=b;
endfunction
endmodule
for 3) and 4) are they going to be synthesized into the same circuits? what kind of circuits will they be synthesized into?
3)always@(d or r1 or r2) begin
r1=d;
r2=r1;
end
4)always@(d or r1 or r2) begin
r2=r1;
r1=d;
end
Which book is good for learning the synthesis?
module aa(ck, r1, r2)
input ck;
output r1, r2; reg r1, r2;
always @(posedge ck) begin
r1<=r2;
r2<=r1;
end
endmodule
2)waht kind of combinational circuits will be sythesized into?
module bb(a, b, x)
input a, b;
output x; reg x;
always@(a or b)begin
x=func(a,b);
end
function func;
input a, b;
if (a)
func=b;
endfunction
endmodule
for 3) and 4) are they going to be synthesized into the same circuits? what kind of circuits will they be synthesized into?
3)always@(d or r1 or r2) begin
r1=d;
r2=r1;
end
4)always@(d or r1 or r2) begin
r2=r1;
r1=d;
end
Which book is good for learning the synthesis?