From 9965c5ef7abfbafebeb1afaed6d20cd0f38e0200 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 9 Nov 2022 00:10:50 -0600 Subject: Update fetch, decode testbenches --- rtl/top/decode_test.sv | 17 +++-------------- rtl/top/fetch_test.sv | 6 +++--- 2 files changed, 6 insertions(+), 17 deletions(-) (limited to 'rtl/top') 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 -- cgit v1.2.3