diff --git a/lab2CA.srcs/sources_1/new/ALU.v b/lab2CA.srcs/sources_1/new/ALU.v index bac2489..d5fa0c8 100644 --- a/lab2CA.srcs/sources_1/new/ALU.v +++ b/lab2CA.srcs/sources_1/new/ALU.v @@ -74,7 +74,7 @@ endmodule module alu_tb(); reg [8:0] a; reg [8:0] b; - reg [2:0] c; + reg [3:0] c; wire [8:0] d; ALU alu0( @@ -86,29 +86,29 @@ module alu_tb(); initial begin a = 9'b000000111; b = 9'b000111000; - c = 3'b000; + c = 4'b0000; #5 a = 9'b000011000; b = 9'b000011000; - c = 3'b001; + c = 4'b0001; #5 a = 9'b101010100; b = 9'b010101011; - c = 3'b010; + c = 4'b0010; #5 a = 9'b101010100; b = 9'b010101000; - c = 3'b011; + c = 4'b0011; #5 a = 9'b000110000; b = 9'b000111000; - c = 3'b100; + c = 4'b0100; #5 a = 9'b01011000; - c = 3'b101; + c = 4'b0101; #5 a = 9'b00001010; - c = 3'b110; + c = 4'b0110; #5 $finish;