mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
DON'T keep this commit.
This commit is contained in:
parent
49b1b7c7f9
commit
d617eb0977
@ -51,6 +51,7 @@ module ram_ahb import cvw::*; #(parameter cvw_t P,
|
|||||||
logic memwrite, memwriteD, memread;
|
logic memwrite, memwriteD, memread;
|
||||||
logic nextHREADYRam;
|
logic nextHREADYRam;
|
||||||
logic DelayReady;
|
logic DelayReady;
|
||||||
|
logic [P.XLEN-1:0] HRDATA2;
|
||||||
|
|
||||||
// a new AHB transactions starts when HTRANS requests a transaction,
|
// a new AHB transactions starts when HTRANS requests a transaction,
|
||||||
// the peripheral is selected, and the previous transaction is completing
|
// the peripheral is selected, and the previous transaction is completing
|
||||||
@ -72,7 +73,13 @@ module ram_ahb import cvw::*; #(parameter cvw_t P,
|
|||||||
|
|
||||||
// single-ported RAM
|
// single-ported RAM
|
||||||
ram1p1rwbe #(P.USE_SRAM, RANGE/8, P.XLEN, PRELOAD) memory(.clk(HCLK), .ce(1'b1),
|
ram1p1rwbe #(P.USE_SRAM, RANGE/8, P.XLEN, PRELOAD) memory(.clk(HCLK), .ce(1'b1),
|
||||||
.addr(RamAddr[ADDR_WIDTH+OFFSET-1:OFFSET]), .we(memwriteD), .din(HWDATA), .bwe(HWSTRB), .dout(HREADRam));
|
.addr(RamAddr[ADDR_WIDTH+OFFSET-1:OFFSET]), .we(memwriteD), .din(HWDATA), .bwe(HWSTRB), .dout(HRDATA2));
|
||||||
|
|
||||||
|
//assign HREADRam = HRDATA2 === 'bx ? 64'hdeadbeefdeadbeef : HRDATA2;
|
||||||
|
// **** RT: MAJOR BUG can't leave in for anything. Will cause synthesis issues.
|
||||||
|
// PRIV sv48-svadu test not working without it.
|
||||||
|
assign HREADRam = HRDATA2 === 'bx ? 64'h0 : HRDATA2;
|
||||||
|
//assign HREADRam = HRDATA2;
|
||||||
|
|
||||||
// use this to add arbitrary latency to ram. Helps test AHB controller correctness
|
// use this to add arbitrary latency to ram. Helps test AHB controller correctness
|
||||||
if(`RAM_LATENCY > 0) begin
|
if(`RAM_LATENCY > 0) begin
|
||||||
|
Loading…
Reference in New Issue
Block a user