3)Multiplier
3)Multiplier
3)Multiplier
AIM:
To design, Simulate and Implement 8-Bit Adder using XILINX ISE Software and
FPGA Board.
TOOLS REQUIRED:
1. Personal Computer
2. XILINX Software
3. FPGA Spartan-3E Starter Board(XC3S500E)
Reg.No:61072112113
and a12(pp[10],a[3],b[2]);
and a13(pp[11],a[0],b[3]);
and a14(pp[12],a[1],b[3]);
and a15(pp[13],a[2],b[3]);
and a16(pp[14],a[3],b[3]);
fourbitadder a17({1'b0,pp[2:0]},pp[6:3],{s[2:0],p[1]},c[0]);
fourbitadder a18({c[0],s[2:0]},pp[10:7],{s[5:3],p[2]},c[1]);
fourbitadder a19({c[1],s[5:3]},pp[14:11],p[6:3],p[7]);
endmodule
//Fourbitadder
‘timescale 1ns/1ps
module fourbitadder(
input [3:0] a,
input [3:0] b,
input cin,
output [3:0] sum,
output carry);
wire [2:0] c;
fulladder fulladder0(a[0], b[0],cin, sum[0], c[0]);
fulladder fulladder1(a[1], b[1], c[0], sum[1], c[1]);
fulladder fulladder2(a[2], b[2], c[1], sum[2], c[2]);
fulladder fulladder3(a[3], b[3], c[2], sum[3], carry);
endmodule
//Full adder
‘timescale 1ns/1ps
module fulladder(a,b,c,sum,carry);
input a,b,c;
output sum;
Reg.No:61072112113
output carry;
assign sum=(a^b^c);
assign carry=(a|b)&(b|c)&(c|a);
endmodule
PIN ASSIGNMENTS:
Reg.No:61072112113
SIMULATION OUTPUT:
RESULT:
Thus 4-Bit Multiplier is designed and Simulation is done using XILINX ISE
Software and Implementation is done using FPGA Spartan-3E Starter Board.
Reg.No:61072112113