From 942461c315db3269fcbe9a9ca18beee9afa78d9c Mon Sep 17 00:00:00 2001 From: JulianCamacho Date: Mon, 7 Nov 2022 23:35:46 -0600 Subject: =?UTF-8?q?A=C3=B1ade=20testbench=20para=20fetch=20y=20decode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rtl/top/fetch_test.sv | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 rtl/top/fetch_test.sv (limited to 'rtl/top/fetch_test.sv') diff --git a/rtl/top/fetch_test.sv b/rtl/top/fetch_test.sv new file mode 100644 index 0000000..bdfa2c5 --- /dev/null +++ b/rtl/top/fetch_test.sv @@ -0,0 +1,25 @@ +`timescale 1 ns / 1 ps +`include "core/uarch.sv" + +module fetch_test +( + input logic clk, + stall, + branch, + flush, + fetched, + wr_pc, + input ptr branch_target, + input word wr_current, + fetch_data, + + output logic fetch, + output word insn, + output ptr insn_pc, + addr + +); + + core_fetch #(.PREFETCH_ORDER(3)) DUT (.*); + +endmodule \ No newline at end of file -- cgit v1.2.3