diff options
author | RossTheRoss <mstrapp@protonmail.com> | 2020-12-03 09:50:18 -0600 |
---|---|---|
committer | RossTheRoss <mstrapp@protonmail.com> | 2020-12-03 09:50:18 -0600 |
commit | 8486478a788896848fd1d90448d41bb5ebbbe059 (patch) | |
tree | 382e16fac6ad1dbaaf12929891efd5255cbce02d /ee4363/mp1/test_mipsalu.v | |
parent | aaaaaaaaaaaaaaaa (diff) | |
download | homework-8486478a788896848fd1d90448d41bb5ebbbe059.tar homework-8486478a788896848fd1d90448d41bb5ebbbe059.tar.gz homework-8486478a788896848fd1d90448d41bb5ebbbe059.tar.bz2 homework-8486478a788896848fd1d90448d41bb5ebbbe059.tar.lz homework-8486478a788896848fd1d90448d41bb5ebbbe059.tar.xz homework-8486478a788896848fd1d90448d41bb5ebbbe059.tar.zst homework-8486478a788896848fd1d90448d41bb5ebbbe059.zip |
do machine problem
Diffstat (limited to 'ee4363/mp1/test_mipsalu.v')
-rw-r--r-- | ee4363/mp1/test_mipsalu.v | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/ee4363/mp1/test_mipsalu.v b/ee4363/mp1/test_mipsalu.v deleted file mode 100644 index 15cdf60..0000000 --- a/ee4363/mp1/test_mipsalu.v +++ /dev/null @@ -1,49 +0,0 @@ - `timescale 1ns/100ps -// -// Test Bench for the mips alu -// T. Posbergh, 14 October 2012 -// - `include "MIPSALU.v" -// -module test_mipsalu; - wire Zero; // ALU bit output - wire [31:0] ALUOut; // ALU word output - reg [31:0] A,B; // ALU word inpus - reg [3:0] ALUctl; - - reg clock; - reg reset; - -// instantiate the alu and control - - MIPSALU U0(ALUctl, A, B, ALUOut, Zero); - -// generate test signals - - initial - begin - A=32'b0101_0101_0101_0101_0101_0101_0101_0101; - B=32'b0101_0101_0101_0101_0101_0101_0101_0101; - #10 ALUctl=4'b0000; - #10 ALUctl=4'b0001; - #10 ALUctl=4'b0010; - #10 ALUctl=4'b0110; -// $finish(100); - #10 $finish; - end - -// output result - - initial - $monitor($time, " A = %h",A," B = %h",B," ALUOut = %h",ALUOut," Zero = %b",Zero); - -// the following generates vcd file for GTKwave - initial - begin - $dumpfile("MIPSAlu.vcd"); - $dumpvars; - end - -endmodule - - |