mirror of
https://github.com/openhwgroup/cve2.git
synced 2025-04-22 04:57:25 -04:00
[dv] Fix Xcelium compilation
Need these fixes in order to pass Xcelium compile in OpenTitan Signed-off-by: Weicai Yang <weicai@google.com>
This commit is contained in:
parent
eb4913c8f0
commit
1b024135c7
3 changed files with 10 additions and 4 deletions
|
@ -15,8 +15,8 @@
|
|||
* - Host (master) arbitration is strictly priority based.
|
||||
*/
|
||||
module bus #(
|
||||
parameter NrDevices,
|
||||
parameter NrHosts,
|
||||
parameter NrDevices = 1,
|
||||
parameter NrHosts = 1,
|
||||
parameter DataWidth = 32,
|
||||
parameter AddressWidth = 32
|
||||
) (
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
/**
|
||||
* Single-port RAM with 1 cycle read/write delay, 32 bit words
|
||||
*/
|
||||
|
||||
`include "prim_assert.sv"
|
||||
|
||||
module ram_1p #(
|
||||
parameter int Depth = 128
|
||||
) (
|
||||
|
@ -75,7 +78,7 @@ module ram_1p #(
|
|||
`endif
|
||||
|
||||
`ifdef SRAM_INIT_FILE
|
||||
localparam MEM_FILE = `"`SRAM_INIT_FILE`";
|
||||
localparam MEM_FILE = `PRIM_STRINGIFY(`SRAM_INIT_FILE);
|
||||
initial begin
|
||||
$display("Initializing SRAM from %s", MEM_FILE);
|
||||
$readmemh(MEM_FILE, mem);
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
* Simultaneous write operations by both ports to the same address are to be avoided: The data
|
||||
* written to memory is not determined.
|
||||
*/
|
||||
|
||||
`include "prim_assert.sv"
|
||||
|
||||
module ram_2p #(
|
||||
parameter int Depth = 128
|
||||
) (
|
||||
|
@ -116,7 +119,7 @@ module ram_2p #(
|
|||
`endif
|
||||
|
||||
`ifdef SRAM_INIT_FILE
|
||||
localparam MEM_FILE = `"`SRAM_INIT_FILE`";
|
||||
localparam MEM_FILE = `PRIM_STRINGIFY(`SRAM_INIT_FILE);
|
||||
initial begin
|
||||
$display("Initializing SRAM from %s", MEM_FILE);
|
||||
$readmemh(MEM_FILE, mem);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue