

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


begin
end
begin………………end
,,
instr.
instr.
#delay
instr.
instr.
t=
t=delay
All i
i^
i hi
hi
f bl
k^
d
All
instructions within this type of block are executed in a parallel manner.
#delay
,
instr.
instr.
,
instr.
instr.
t=
t=delay
module iaf1;integer i, j;initial begin
initial
begini = 3;j = 4;fork
program enters the fork-join block. At
t=1, i and j are sampled and assigned new
#1 i = j;#1 j = i;
join
t 1,
i and j are sampled and assigned new
,
endendmodule
module iaf1 ;integer i, j;i^ i i l b
i
,
initial begin
i = 3;j = 4;fork
Intra- Assignment Delay
fork
#1 i = #
j;
#1 j = #
i;
join
join endendmodule
module ianb;integer i j;
-^
integer
i, j;
,
¾
Blocking Procedural Assignment:
-^
Instructions are executed in asequential manner.
i = #1 j;j = #1 i;end endendmodule
,
q
¾
NonBlocking ProceduralAssignment:
e^
d^
odu e module ianb;integer i, j;initial begin
-^
RHS of all these assignmentstatements (Sampling) is done att=0. After then at the specified delay
S
i = 3;j = 4;
begini < = #1 j;j < = #1 i;
they are assigned to LHS.
j^ <
#1 i; end endendmodule
docsity.com
,
module ianb;integer i, j;
module ianb;integer i, j;
i and j willhave ‘dx
i and j willhave value4 and 3.
,
g^
j
initial begini = 3;j = 4;
forki = j;
g^
j
initial begini = 3;j = 4;
begini <= j;
i^
j; j = i;end endendmodule
i <
j; j <= i;end endendmodule
,
,
,,
,
,