What are the blocking and nonblocking assignments in Verilog and which is preferred in Sequential circuits?
Submitted by: AdministratorA blocking assignment is one in which the statements are executed sequentially, i.e. first statement is executed and variable is assigned a value then second is executed and so on. A non blocking assignment is one in which statements occurs concurrently. Only nonblocking assignments should be used in sequential circuit.
e.g
initial
begin
a=b; //blocking
c<=a; //nonblocking
d=c; //blocking
end
In this example firstly the value of b is assigned to a and this value is assigned to c only after execution of first statement. The second and the third statements are executed simultaneously, i.e. value a is assigned to c and previous value if c is assigned to d.
Submitted by: Administrator
e.g
initial
begin
a=b; //blocking
c<=a; //nonblocking
d=c; //blocking
end
In this example firstly the value of b is assigned to a and this value is assigned to c only after execution of first statement. The second and the third statements are executed simultaneously, i.e. value a is assigned to c and previous value if c is assigned to d.
Submitted by: Administrator
Read Online x86 Job Interview Questions And Answers
Top x86 Questions
☺ | Design a 2-bit magnitude comparator and write itsRTL description also? |
☺ | Can ROM be used as stack? |
☺ | Define HCMOS? |
☺ | Write an RTL Description for D latch and D flip flop? |
☺ | What are level-triggering interrupt? |
Top PC Hardware Categories
☺ | Motherboard Interview Questions. |
☺ | Basic Computer Interview Questions. |
☺ | Embedded Systems Interview Questions. |
☺ | A + (Plus) Hardware Interview Questions. |
☺ | Computer Architecture Interview Questions. |