Muthuraja.M
Advanced Member level 4
- Joined
- Jul 20, 2013
- Messages
- 101
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 16
- Activity points
- 634
Hi friends ,
i know wat is non blocking assignments and how the delay get varied between blocking
and non blocking assignments..
But i need to know for which type of application we use blocking and for which type for
non blocking assignments..
pls explain
Thanks in advance...
- - - Updated - - -
reg reg1,reg2,clk,clk1;
initial
begin
clk=0;
clk1=0;
clk = #50 ~clk;
clk1 <= #50 ~clk1;
end
in this code clk is inverted after 50 units and clk1 is inverted after 100 units ...
reg reg1,reg2,clk,clk1;
initial
begin
clk=0;
clk1=0;
clk <= #50 ~clk;
clk1 = #50 ~clk1;
end
But for this code both are inverted at the same time 50 units .. why wat was happen.
pls explain...
i know wat is non blocking assignments and how the delay get varied between blocking
and non blocking assignments..
But i need to know for which type of application we use blocking and for which type for
non blocking assignments..
pls explain
Thanks in advance...
- - - Updated - - -
reg reg1,reg2,clk,clk1;
initial
begin
clk=0;
clk1=0;
clk = #50 ~clk;
clk1 <= #50 ~clk1;
end
in this code clk is inverted after 50 units and clk1 is inverted after 100 units ...
reg reg1,reg2,clk,clk1;
initial
begin
clk=0;
clk1=0;
clk <= #50 ~clk;
clk1 = #50 ~clk1;
end
But for this code both are inverted at the same time 50 units .. why wat was happen.
pls explain...