• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. SV:Where to use Continuous Assign?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 66
  • Views 1702
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SV:Where to use Continuous Assign?

Leo1008
Leo1008 over 15 years ago

 Hi,

I am not sure of the exact usage of continuous assignments. I want to know where should one use these and what is the difference between the three types of assingments viz. Continuous, blocking and non-blocking.

Also can continuous assignments be substituted by non-blocking assingments or vice versa??

 

Thanks

Insiya

  • Cancel
  • Vinayhonnavara
    Vinayhonnavara over 15 years ago

     An excellent documentation on continous assignments, blocking and non-blocking usage is in this document.

    http://csg.csail.mit.edu/6.375/papers/cummings-nonblocking-snug99.pdf

    In terms of SV usage (from a testbench perspective) for all of them,  first of all SV makes a clear differentiation between verilog by not having always blocks. Second of all drives are always non-blocking to signals in the DUT. If you want to assign always to some value use initial forever. 

     On using continous assignments to be subsituted by non-blocking statements, it depends what you want to model sequential or combinational , if you want to model sequential use non-blocking statements if you want to model combinational use blocking or continous assignments.

    If you are modeling a bi-directional bus you  should always use continous assignments

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TAM1
    TAM1 over 15 years ago

    I'm not sure what you mean by "SV makes a clear differentiation between verilog by not having always blocks." SV is an extension of Verilog, so it certainly does have always blocks. SystemVerilog has relaxed some of the rules regarding the kinds of signals that can be updated by a continuous assignment. But that's a kind of complicated topic for a new user to get involved with.

     

    A continuous assignment is used to place a value on a "net" datatype. A "net" datatype is a "wire", "wor" and etc. A continuous assignment is always active (that's why it is called a continuous assignment) and it immediately schedules a new value on its target when one or more of its inputs changes.

     

    A blocking or non-blocking assignment is used to put a value on a "variable" datatype. A "variable" datatype is a "reg", "var", "integer" and etc. A blocking or nonblocking assignment is not always active. You control when it executes with the RTL code that you write. You can control both when the assignment statement executes, and when it will schedule the new value to appear on the target variable. Blocking assignments made with "=" update their target immediately. Non-blocking assignments made with "<=" wait until the end of the current timestep to update their target variables.

     

    The reality is a little more complex than that. But I believe what I've written is a useful model to use when first learning about assignments.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Leo1008
    Leo1008 over 15 years ago

    Thanks TAM. This is definitely going to help. Shall post further queries regarding the same in future, if any.

    Insiya

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information