Professional Documents
Culture Documents
LAB # 2
Introduction to Gate level & Dataflow Modelling
through implementation of 4 bit Ripple Carry at gate level and its
simulation using Xilinx ISE tools.
Procedure:
1. Launch the Xilinx ISE 7.1 software as follows:
Start >> Programs >> Xilinx ISE 7.1 >> Project Navigator
5. Click Next.
6. In the next window of ‘Select Device and Design Flow for the Project’:
Codes of following are available & Present in a notepad file. Just copy
from there and paste.
output sum;
output carry;
input in1;
input in2;
endmodule
16. Repeat step 11,12,13 & 14 but save now file name as Full_adder.
wire t_sum,t_c1,t_c2;
half_adder blk1(t_sum,t_c1,in1,in2);
half_adder blk2(sum,t_c2,t_sum,cin);
or blk3 (cout,t_c1,t_c2);
endmodule .
18. Repeat Step 17 with file name as ripple_Carry. And use the following code.
endmodule
Points to Ponder:
• Synthesis the ripple_Carry.
// MUX 2 to1
module mux2x1(a, b, s, out);
input a, b, s;
output out;
endmodule
//
// MUX 4 to 1
module mux4x1(a, b, c, d, s0, s1, out);
input a, b, c, d, s0, s1;
output out;
wire w1, w2;
endmodule
//
// MUX 8 to 1
module mux8x1(a, b, c, d, e, f, g, h, s0, s1, s2, out);
input a, b, c, d, e, f, g , h, s0, s1, s2;
output out;
wire w1, w2;
//MUX 16 to 1
endmodule
//
2) For left rotate operation (type 10) and amount of amount 11 (rotate right
by three bit ) apply: