Guest
Hi
I'm trying deduce a rule that would correctly produce same behavior for
synthisis and simulation. Here is what I come up with. Please comment.
reg a,b,c,d,e,f,....;
always @(posedge clk)
statement1;
statement2;
statement3;
.......
end
Now assume all the statements are simple 3 regs assignment like
a=b+c;
b=3+c;
c=2;
d=a+c;
....
....
Now is it true, so long as the "left hand sides" do not repeat like:
a=b+c;
a=3+c;
I would get correct and same behavior from both simulation and
synthesis?
Thanks.
I'm trying deduce a rule that would correctly produce same behavior for
synthisis and simulation. Here is what I come up with. Please comment.
reg a,b,c,d,e,f,....;
always @(posedge clk)
statement1;
statement2;
statement3;
.......
end
Now assume all the statements are simple 3 regs assignment like
a=b+c;
b=3+c;
c=2;
d=a+c;
....
....
Now is it true, so long as the "left hand sides" do not repeat like:
a=b+c;
a=3+c;
I would get correct and same behavior from both simulation and
synthesis?
Thanks.