Skip to content

ROHD Blocking and Non-Blocking Assignment #307

Answered by chykon
quekyj asked this question in Q&A
Discussion options

You must be logged in to vote

The question is, how does ROHD know when to use <= or < and how to use blocking and non-blocking assignment in ROHD?

<= (assign in Verilog) is used outside of Combinational/Sequential blocks.

< (blocking/non-blocking assignment) is used inside Combinational/Sequential blocks.

For a blocking assignment use the Combinational block, for a non-blocking assignment use the Sequential block. ROHD does not allow mixing different assignment types in the same block.

More

ROHD has two logical assignment operators: <= and <.

<= (similar to assign from Verilog) cannot be used inside Combinational/Sequential procedural blocks. It should behave like Combinational with a single assignment (although the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quekyj
Comment options

Answer selected by mkorbel1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants