From 511a6dad9538f20f5bbdd2c87b752b4690c648ff Mon Sep 17 00:00:00 2001 From: JulianCamacho Date: Mon, 7 Nov 2022 17:18:40 -0600 Subject: Adding decode test --- rtl/top/decode_test.sv | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 rtl/top/decode_test.sv (limited to 'rtl/top/decode_test.sv') 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 -- cgit v1.2.3