From 9279b2d56ac2dc0fbf7896c3cf9074e142e8b20d Mon Sep 17 00:00:00 2001 From: David Harris Date: Fri, 5 Jul 2024 09:13:18 -0700 Subject: [PATCH] Added imperas configuration for Lee --- config/derivlist.txt | 15 ++++++++++++++- testbench/testbench.sv | 7 ++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/config/derivlist.txt b/config/derivlist.txt index 7bd878aaf..db8207387 100644 --- a/config/derivlist.txt +++ b/config/derivlist.txt @@ -35,6 +35,7 @@ # If is not empty, all the list of parameter changes in the inherited # configuration are also applied to this configuration + # buildroot is used for the Linux boot deriv buildroot rv64gc RESET_VECTOR 64'h1000 @@ -1654,4 +1655,16 @@ IDIV_ON_FPU 1 deriv fdqh_ieee_div_4_4i_rv64gc fdqh_ieee_div_4_4_rv64gc IDIV_ON_FPU 1 - +# imperas used for a smart memory +derive imperas rv64gc +ICACHE_SUPPORTED 0 +DCACHE_SUPPORTED 0 +VIRTMEM_SUPPORTED 0 +ZAAMO_SUPPORTED 0 +ZALRSC_SUPPORTED 0 +ZICBOM_SUPPORTED 0 +ZICBOZ_SUPPORTED 0 +SVPBMT_SUPPORTED 0 +SVNAPOT_SUPPORTED 0 +BOOTROM_BASE 64'h4 +BOOTROM_RANGE 64'h0 diff --git a/testbench/testbench.sv b/testbench/testbench.sv index f167482b9..e65fed554 100644 --- a/testbench/testbench.sv +++ b/testbench/testbench.sv @@ -491,7 +491,12 @@ module testbench; $display("Error: Could not open file %s", memfilename); $finish; end - readResult = $fread(dut.uncoregen.uncore.bootrom.bootrom.memory.ROM, memFile); + if (P.BOOTROM_SUPPORTED) + readResult = $fread(dut.uncoregen.uncore.bootrom.bootrom.memory.ROM, memFile); + else begin + $display("Buildroot test requires BOOTROM_SUPPORTED"); + $finish; + end $fclose(memFile); memFile = $fopen(memfilename, "rb"); if (memFile == 0) begin