You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to create a case statement within a combinational block, but I am not getting the blocking assignment it should be inferred. I am getting instead a non-blocking ("<=") assignment instead.
always @(*) begin
case(myvar)
0: begin
logic_wire <= 1;
end
default: begin
logic_wire <= 5;
end
endcase
end
Any idea on how to get this done? This is what my code looks like
Cool, obrigado Lucas, it does work indeed
It would be awesome to throw all these examples into the wiki, it should not take long and save you guys a bunch of qeustions!
I am trying to create a case statement within a combinational block, but I am not getting the blocking assignment it should be inferred. I am getting instead a non-blocking ("<=") assignment instead.
Any idea on how to get this done? This is what my code looks like
Thanks!
The text was updated successfully, but these errors were encountered: