forked from Github_Repos/cvw
Merge branch 'main' of github.com:davidharrishmc/riscv-wally
This commit is contained in:
commit
6f543d01b7
@ -70,6 +70,12 @@ module ram2p1r1wb
|
|||||||
|
|
||||||
|
|
||||||
// SRAMs address busses are always registered first
|
// SRAMs address busses are always registered first
|
||||||
|
// *** likely issued DH and RT 12/20/22
|
||||||
|
// wrong enable for write port registers
|
||||||
|
// prefer to code read like ram1p1rw
|
||||||
|
// prefer not to have two-cycle write latency
|
||||||
|
// will require branch predictor changes
|
||||||
|
|
||||||
flopenr #(DEPTH) RA1Reg(clk, reset, REN1, RA1, RA1Q);
|
flopenr #(DEPTH) RA1Reg(clk, reset, REN1, RA1, RA1Q);
|
||||||
flopenr #(DEPTH) WA1Reg(clk, reset, REN1, WA1, WA1Q);
|
flopenr #(DEPTH) WA1Reg(clk, reset, REN1, WA1, WA1Q);
|
||||||
flopr #(1) WEN1Reg(clk, reset, WEN1, WEN1Q);
|
flopr #(1) WEN1Reg(clk, reset, WEN1, WEN1Q);
|
||||||
|
@ -52,6 +52,7 @@ module rom1p1r
|
|||||||
if(ce) dout <= ROM[addr];
|
if(ce) dout <= ROM[addr];
|
||||||
end
|
end
|
||||||
|
|
||||||
|
// for FPGA, initialize with zero-stage bootloader
|
||||||
if(PRELOAD_ENABLED) begin
|
if(PRELOAD_ENABLED) begin
|
||||||
initial begin
|
initial begin
|
||||||
ROM[0] = 64'h9581819300002197;
|
ROM[0] = 64'h9581819300002197;
|
||||||
|
Loading…
Reference in New Issue
Block a user