David83
Advanced Member level 1
As an example, I will take and gate:
1- structural
2- behavioral: continuous assignment
3- behavioral: procedural assignment
What is the difference between these descriptions, and why we use more than one description level? I would say that 1 and 2 are equivalent, but in 3 we defined the and gate itself from scratch.
1- structural
Code:
and(f,x,y);
Code:
assign f=x&y;
Code:
always @(x,y)
if(x==1 & y==1)
f=1'b1;
else
f=1'b0;
What is the difference between these descriptions, and why we use more than one description level? I would say that 1 and 2 are equivalent, but in 3 we defined the and gate itself from scratch.