Professional Documents
Culture Documents
Dataflow
module ha(a,b,s,c)
input a,b;
output s,c;
assign s=a^b;
assign c=a&b;
endmodule
Half adder using gate level & Data flow
modelling
Dataflow Gate level
module ha(a,b,s,c); module ha(a,b,s,c);
input a,b; input a,b;
output s,c; output s,c;
assign s=a^b; xor a1(s,a,b);
assign c=a&b; and a2(c,a,b);
endmodule endmodule
Half adder -
Behavioural
modelling – Using
case
Half adder -
Behavioural
modelling – Using
if else
Data flow modelling – Detailed concepts
Continuous assignment