diff options
Diffstat (limited to 'verilog/bench_alu.v')
-rw-r--r-- | verilog/bench_alu.v | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/verilog/bench_alu.v b/verilog/bench_alu.v deleted file mode 100644 index 9c0140c..0000000 --- a/verilog/bench_alu.v +++ /dev/null @@ -1,23 +0,0 @@ -`timescale 1us/1ns - -`include "riscv_alu.v" -`include "alu_ops.vh" - -module bench_alu; - -reg [3:0] op; -reg [31:0] input1, input2; -wire [31:0] alu_out; - -riscv_alu alu0 (input1, input2, op, alu_out); - -initial begin - op=`SLT; - input1=32'hA; - input2=32'hD; - #50 - $display("\nALU OP AND: %d %16b + %d %16b = %d %b", $signed(input1), input1, $signed(input2), input2, $signed(alu_out), alu_out); - $finish; -end - -endmodule |