69 Girls ✠ 9599264170 ✠ Call Girls In East Of Kailash (VIP)
Alu description[1]
1. Implementation of ALU in
Verilog
Design an 8-bit ALU in Verilog which performs following
operations.
AND
OR
XOR
NOT
NAND
NOR
A+B
A-B
Logical shift left
Logical shift right
Comparison (A>B, A<B, A=B)
Also write its Test Fixture.
You have to submit project report in proper format. Your report
includes description of ALU and all operations, Verilog module
code, Verilog Test Fixture code, Synthesize report and figures of
Test Fixture waveform. Last date for report submission and viva
is 17th
May 2013.
6. reg [7:0] A;
reg [7:0] B;
reg [3:0] operation;
// Outputs
wire [7:0] out;
wire flag_greater;
wire flag_less;
wire flag_equal;
// Instantiate the Unit Under Test (UUT)
Eight_bit_alu uut (
.A(A),
.B(B),
.operation(operation),
.out(out),
.flag_greater(flag_greater),
.flag_less(flag_less),
.flag_equal(flag_equal)
);
initial begin
// Initialize Inputs
A = 1;
B = 0;
operation = 0;
// Wait 100 ns for global reset to finish
#100;
7. A = 1;
B = 0;
operation = 1;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 2;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 3;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 4;
// Wait 100 ns for global reset to finish
#100;
// Add stimulus here
A = 1;
B = 0;
8. operation = 5;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 6;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 6;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 7;
// Wait 100 ns for global reset to finish
#100;
A = 1;
B = 0;
operation = 8;
// Wait 100 ns for global reset to finish
#100;
9. A = 1;
B = 0;
operation = 9;
// Wait 100 ns for global reset to finish
#100;
end
endmodule