diff options
| author | JulianCamacho <jjulian.341@gmail.com> | 2022-11-07 17:18:40 -0600 |
|---|---|---|
| committer | JulianCamacho <jjulian.341@gmail.com> | 2022-11-07 21:52:04 -0600 |
| commit | 511a6dad9538f20f5bbdd2c87b752b4690c648ff (patch) | |
| tree | cc49cc2b9ff63014e930c633e578e3860f6d8e15 /rtl | |
| parent | 19c860221fb2fc129e6d2c1a41a77a8e8010f6c3 (diff) | |
Adding decode test
Diffstat (limited to 'rtl')
| -rw-r--r-- | rtl/top/decode_test.sv | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/rtl/top/decode_test.sv b/rtl/top/decode_test.sv new file mode 100644 index 0000000..f701aff --- /dev/null +++ b/rtl/top/decode_test.sv @@ -0,0 +1,23 @@ +`timescale 1 ns / 1 ps + +module decode_test +( + input word insn, + input logic n, z, c, v + + output datapath_decode ctrl, + output psr_decode psr_ctrl, + output branch_decode branch_ctrl, + output snd_decode snd_ctrl, + output data_decode data_ctrl, + output ldst_decode ldst_ctrl, + output mul_decode mul_ctrl, + output coproc_decode coproc_ctrl + +); + psr_flags nzcv; + assign {n, z, c, v} = nzcv; + + core_decode DUT (.*); + +endmodule
\ No newline at end of file |
