Verilog II
Verilog II
CS/ECE/EEE/INSTR F215
INTRODUCTION TO VERILOG
PROF. ANITA AGRAWAL
module ha (A, B, S, C) ;
input A, B, ;
output S, C ;
xor g1(S,A,B);
and g2(C,A,B) ;
endmodule
input A, B, ;
output S, C ;
endmodule
input A, B, CI ;
output S, CO ;
endmodule
input A, B, CI ;
output S, CO ;
endmodule
Algorithms…….
• Out of the three coding styles, the behavioral style is the most
advanced and most flexible.
• The behavior style describes a circuit in terms of its behavior, i.e. the
action it's supposed to perform when active.
10/01/2022 11:33 PM Anita Agrawal CS/ECE/EEE/INSTR F215 10
• Theactions are specified in the initial and always behavioral blocks which
are composed of sequential or concurrent statements.
input A, B, CI ;
output S, CO ;
Section 3.11
Table 4.12
Section 4.12