Activated all testbenches

This commit is contained in:
WilliamMiceli
2019-02-25 12:51:34 -05:00
parent cb30ee7e0a
commit 7c83a77713
4 changed files with 630 additions and 627 deletions

View File

@@ -10,7 +10,7 @@
* Need to allow for signed numbers * Need to allow for signed numbers
* Remove subtraction from ALU * Remove subtraction from ALU
* Have arithmetic shift left and right * Have arithmetic shift left and right
* Uncomment all testbenches * <strike>Uncomment all testbenches</strike>
* We can have multiple testbenches active at once * We can have multiple testbenches active at once
* Bitwise operations do not need a 1-bit implementation, modify 9-bit and keep it only * Bitwise operations do not need a 1-bit implementation, modify 9-bit and keep it only
* Comparator needed * Comparator needed

View File

@@ -62,47 +62,47 @@ module ALU(
endmodule endmodule
//testbench testbench
//module alu_tb(); module alu_tb();
//reg [8:0] a; reg [8:0] a;
//reg [8:0] b; reg [8:0] b;
//reg [2:0] c; reg [2:0] c;
//wire [8:0] d; wire [8:0] d;
//ALU alu0( ALU alu0(
//.operand0(a), .operand0(a),
//.operand1(b), .operand1(b),
//.opcode(c), .opcode(c),
//.result(d)); .result(d));
// initial begin initial begin
// a = 9'b000000111; a = 9'b000000111;
// b = 9'b000111000; b = 9'b000111000;
// c = 3'b000; c = 3'b000;
// #5 #5
// a = 9'b000011000; a = 9'b000011000;
// b = 9'b000011000; b = 9'b000011000;
// c = 3'b001; c = 3'b001;
// #5 #5
// a = 9'b101010100; a = 9'b101010100;
// b = 9'b010101011; b = 9'b010101011;
// c = 3'b010; c = 3'b010;
// #5 #5
// a = 9'b101010100; a = 9'b101010100;
// b = 9'b010101000; b = 9'b010101000;
// c = 3'b011; c = 3'b011;
// #5 #5
// a = 9'b000110000; a = 9'b000110000;
// b = 9'b000111000; b = 9'b000111000;
// c = 3'b100; c = 3'b100;
// #5 #5
// a = 9'b01011000; a = 9'b01011000;
// c = 3'b101; c = 3'b101;
// #5 #5
// a = 9'b00001010; a = 9'b00001010;
// c = 3'b110; c = 3'b110;
// #5 #5
// #5 $finish; #5 $finish;
// end end
//endmodule endmodule

File diff suppressed because it is too large Load Diff

View File

@@ -85,7 +85,8 @@ FetchUnit fetchUnit0(
#5 #5
#5 #5
#5 #5
#5 $finish; #5
$finish;
end end
endmodule endmodule