Jul 2, 2012 #1 S shaiko Advanced Member level 5 Joined Aug 20, 2011 Messages 2,644 Helped 303 Reputation 608 Reaction score 297 Trophy points 1,363 Activity points 18,302 Some Verilog questions : 1. Is "wire" used only for combinatorial logic and "reg" only for synchronous ? 2. The "assign" keyword together with the = operator is used only for "wire" while the <= operator is used only for "reg". correct ?
Some Verilog questions : 1. Is "wire" used only for combinatorial logic and "reg" only for synchronous ? 2. The "assign" keyword together with the = operator is used only for "wire" while the <= operator is used only for "reg". correct ?
Jul 2, 2012 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,419 Helped 14,749 Reputation 29,780 Reaction score 14,100 Trophy points 1,393 Location Bochum, Germany Activity points 298,094 For an answer in correct Verilog terms, you should preferably refer to a text book or Verilog specifications. The answer to both questions is "no". The basic difference is between continuous assignments driving nets ("wire") and procedural assignments driving variables, e.g. reg, real and integer. Procedural assignments can be both combinatorial and edge sensitive (synchronous) and use blocking "=" or non-blocking "<=" assignment operators.
For an answer in correct Verilog terms, you should preferably refer to a text book or Verilog specifications. The answer to both questions is "no". The basic difference is between continuous assignments driving nets ("wire") and procedural assignments driving variables, e.g. reg, real and integer. Procedural assignments can be both combinatorial and edge sensitive (synchronous) and use blocking "=" or non-blocking "<=" assignment operators.
Jul 2, 2012 #3 S shaiko Advanced Member level 5 Joined Aug 20, 2011 Messages 2,644 Helped 303 Reputation 608 Reaction score 297 Trophy points 1,363 Activity points 18,302 when you say "procedural assignments" you mean assignments under "always" ?
Jul 2, 2012 #4 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,419 Helped 14,749 Reputation 29,780 Reaction score 14,100 Trophy points 1,393 Location Bochum, Germany Activity points 298,094 See IEEE Std 1364: 6.2 Procedural assignments Procedural assignments occur within procedures such as always, initial, task, and function. Click to expand...
See IEEE Std 1364: 6.2 Procedural assignments Procedural assignments occur within procedures such as always, initial, task, and function. Click to expand...