F
Florian Schlembach
Guest
Hi there,
I am trying to model a simple combinational logic using an always block (rdy and chan_out are 1-bit signals):
----
always @(rdy or chan_out) begin
if(rdy && !chan_out) begin
$strobe("time %d: chan_out=%b, CHAN 0",$time,chan_out);
end
end
----
In my HDL simulator both rdy and chan_out show a rising edge at a certain time snapshot, lets say 405ns, but the strobe message is printed out anyway. Hence, chan_out is 0. See this screenshot: http://www.upload-pictures.de/bild.php/20602,screenshotT91CS.png
Is there a latch inferred? Actually it shouldn't, because both rdy and chan_out are in the sensitivity list? How can I overcome it?
Cheers! Flo
I am trying to model a simple combinational logic using an always block (rdy and chan_out are 1-bit signals):
----
always @(rdy or chan_out) begin
if(rdy && !chan_out) begin
$strobe("time %d: chan_out=%b, CHAN 0",$time,chan_out);
end
end
----
In my HDL simulator both rdy and chan_out show a rising edge at a certain time snapshot, lets say 405ns, but the strobe message is printed out anyway. Hence, chan_out is 0. See this screenshot: http://www.upload-pictures.de/bild.php/20602,screenshotT91CS.png
Is there a latch inferred? Actually it shouldn't, because both rdy and chan_out are in the sensitivity list? How can I overcome it?
Cheers! Flo