From 8e4467654a21884abba6ab262402d990826059f8 Mon Sep 17 00:00:00 2001 From: Ross Thompson Date: Thu, 30 Dec 2021 16:01:31 -0600 Subject: [PATCH] Working without dcache. --- wally-pipelined/config/rv32ic/wally-config.vh | 2 +- wally-pipelined/src/lsu/busfsm.sv | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wally-pipelined/config/rv32ic/wally-config.vh b/wally-pipelined/config/rv32ic/wally-config.vh index e4e0bc48..ade57a71 100644 --- a/wally-pipelined/config/rv32ic/wally-config.vh +++ b/wally-pipelined/config/rv32ic/wally-config.vh @@ -50,7 +50,7 @@ `define UARCH_SUPERSCALR 0 `define UARCH_SINGLECYCLE 0 `define MEM_DTIM 1 -`define MEM_DCACHE 1 +`define MEM_DCACHE 0 `define MEM_IROM 1 `define MEM_ICACHE 1 `define MEM_VIRTMEM 0 diff --git a/wally-pipelined/src/lsu/busfsm.sv b/wally-pipelined/src/lsu/busfsm.sv index cdfe9b10..6f8a3921 100644 --- a/wally-pipelined/src/lsu/busfsm.sv +++ b/wally-pipelined/src/lsu/busfsm.sv @@ -27,7 +27,7 @@ module busfsm #(parameter integer WordCountThreshold, - parameter integer LOGWPL, parameter integer CacheEnabled ) + parameter integer LOGWPL, parameter logic CacheEnabled ) (input logic clk, input logic reset, @@ -82,7 +82,7 @@ module busfsm #(parameter integer WordCountThreshold, assign WordCountFlag = (WordCount == WordCountThreshold[LOGWPL-1:0]); assign CntEn = PreCntEn & LsuBusAck; - assign UnCachedAccess = ~CacheableM | ~CacheEnabled; + assign UnCachedAccess = ~CacheEnabled | ~CacheableM; always_ff @(posedge clk) if (reset) BusCurrState <= #1 STATE_BUS_READY;