diff options
| author | Alejandro Soto <alejandro@34project.org> | 2022-11-09 00:10:50 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2022-11-09 00:10:50 -0600 |
| commit | 9965c5ef7abfbafebeb1afaed6d20cd0f38e0200 (patch) | |
| tree | 8e8668fafde7cc27a3a3ff7f9be97a5deeb9c6fc /rtl/top | |
| parent | 1ea0519a2b6b81e0ba324cd69f8785735e7cbef5 (diff) | |
Update fetch, decode testbenches
Diffstat (limited to 'rtl/top')
| -rw-r--r-- | rtl/top/decode_test.sv | 17 | ||||
| -rw-r--r-- | rtl/top/fetch_test.sv | 6 |
2 files changed, 6 insertions, 17 deletions
diff --git a/rtl/top/decode_test.sv b/rtl/top/decode_test.sv index 6aa2159..91962ea 100644 --- a/rtl/top/decode_test.sv +++ b/rtl/top/decode_test.sv @@ -4,22 +4,11 @@ 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 + input word insn, + output insn_decode dec ); - psr_flags flags; - assign flags = {n, z, c, v}; core_decode DUT (.*); -endmodule
\ No newline at end of file +endmodule diff --git a/rtl/top/fetch_test.sv b/rtl/top/fetch_test.sv index bdfa2c5..4ab5fd1 100644 --- a/rtl/top/fetch_test.sv +++ b/rtl/top/fetch_test.sv @@ -6,7 +6,7 @@ module fetch_test input logic clk, stall, branch, - flush, + prefetch_flush, fetched, wr_pc, input ptr branch_target, @@ -20,6 +20,6 @@ module fetch_test ); - core_fetch #(.PREFETCH_ORDER(3)) DUT (.*); + core_fetch #(.PREFETCH_ORDER(3)) DUT (.flush(), .*); -endmodule
\ No newline at end of file +endmodule |
