mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Merge branch 'multimanager' of github.com:davidharrishmc/riscv-wally into multimanager
This commit is contained in:
commit
c1de88d929
@ -3,7 +3,7 @@
|
|||||||
# mmcm_clkout0 is the clock output of the DDR4 memory interface / 4.
|
# mmcm_clkout0 is the clock output of the DDR4 memory interface / 4.
|
||||||
# This clock is not used by wally or the AHBLite Bus. However it is used by the AXI BUS on the DD4 IP.
|
# This clock is not used by wally or the AHBLite Bus. However it is used by the AXI BUS on the DD4 IP.
|
||||||
|
|
||||||
create_generated_clock -name CLKDiv64_Gen -source [get_pins wallypipelinedsoc/uncore/sdc.SDC/sd_top/slow_clk_divider/clkMux/I0] -multiply_by 1 -divide_by 2 [get_pins wallypipelinedsoc/uncore/sdc.SDC/sd_top/slow_clk_divider/clkMux/O]
|
create_generated_clock -name CLKDiv64_Gen -source [get_pins wallypipelinedsoc/uncore.uncore/sdc.SDC/sd_top/slow_clk_divider/clkMux/I0] -multiply_by 1 -divide_by 2 [get_pins wallypipelinedsoc/uncore.uncore/sdc.SDC/sd_top/slow_clk_divider/clkMux/O]
|
||||||
|
|
||||||
##### GPI ####
|
##### GPI ####
|
||||||
set_property PACKAGE_PIN BB24 [get_ports {GPI[0]}]
|
set_property PACKAGE_PIN BB24 [get_ports {GPI[0]}]
|
||||||
|
File diff suppressed because one or more lines are too long
@ -36,7 +36,8 @@ module brom1p1r
|
|||||||
//--------------------------------------------------------------------------
|
//--------------------------------------------------------------------------
|
||||||
parameter ADDR_WIDTH = 8,
|
parameter ADDR_WIDTH = 8,
|
||||||
// Addr Width in bits : 2 **ADDR_WIDTH = RAM Depth
|
// Addr Width in bits : 2 **ADDR_WIDTH = RAM Depth
|
||||||
parameter DATA_WIDTH = 32 // Data Width in bits
|
parameter DATA_WIDTH = 32, // Data Width in bits
|
||||||
|
parameter PRELOAD_ENABLED = 0
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
) (
|
) (
|
||||||
input logic clk,
|
input logic clk,
|
||||||
@ -49,4 +50,53 @@ module brom1p1r
|
|||||||
always @ (posedge clk) begin
|
always @ (posedge clk) begin
|
||||||
dout <= ROM[addr];
|
dout <= ROM[addr];
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if(PRELOAD_ENABLED) begin
|
||||||
|
initial begin
|
||||||
|
RAM[0] = 64'h9581819300002197;
|
||||||
|
RAM[1] = 64'h4281420141014081;
|
||||||
|
RAM[2] = 64'h4481440143814301;
|
||||||
|
RAM[3] = 64'h4681460145814501;
|
||||||
|
RAM[4] = 64'h4881480147814701;
|
||||||
|
RAM[5] = 64'h4a814a0149814901;
|
||||||
|
RAM[6] = 64'h4c814c014b814b01;
|
||||||
|
RAM[7] = 64'h4e814e014d814d01;
|
||||||
|
RAM[8] = 64'h0110011b4f814f01;
|
||||||
|
RAM[9] = 64'h059b45011161016e;
|
||||||
|
RAM[10] = 64'h0004063705fe0010;
|
||||||
|
RAM[11] = 64'h05a000ef8006061b;
|
||||||
|
RAM[12] = 64'h0ff003930000100f;
|
||||||
|
RAM[13] = 64'h4e952e3110060e37;
|
||||||
|
RAM[14] = 64'hc602829b0053f2b7;
|
||||||
|
RAM[15] = 64'h2023fe02dfe312fd;
|
||||||
|
RAM[16] = 64'h829b0053f2b7007e;
|
||||||
|
RAM[17] = 64'hfe02dfe312fdc602;
|
||||||
|
RAM[18] = 64'h4de31efd000e2023;
|
||||||
|
RAM[19] = 64'h059bf1402573fdd0;
|
||||||
|
RAM[20] = 64'h0000061705e20870;
|
||||||
|
RAM[21] = 64'h0010029b01260613;
|
||||||
|
RAM[22] = 64'h11010002806702fe;
|
||||||
|
RAM[23] = 64'h84b2842ae426e822;
|
||||||
|
RAM[24] = 64'h892ee04aec064511;
|
||||||
|
RAM[25] = 64'h06e000ef07e000ef;
|
||||||
|
RAM[26] = 64'h979334fd02905563;
|
||||||
|
RAM[27] = 64'h07930177d4930204;
|
||||||
|
RAM[28] = 64'h4089093394be2004;
|
||||||
|
RAM[29] = 64'h04138522008905b3;
|
||||||
|
RAM[30] = 64'h19e3014000ef2004;
|
||||||
|
RAM[31] = 64'h64a2644260e2fe94;
|
||||||
|
RAM[32] = 64'h6749808261056902;
|
||||||
|
RAM[33] = 64'hdfed8b8510472783;
|
||||||
|
RAM[34] = 64'h2423479110a73823;
|
||||||
|
RAM[35] = 64'h10472783674910f7;
|
||||||
|
RAM[36] = 64'h20058693ffed8b89;
|
||||||
|
RAM[37] = 64'h05a1118737836749;
|
||||||
|
RAM[38] = 64'hfed59be3fef5bc23;
|
||||||
|
RAM[39] = 64'h1047278367498082;
|
||||||
|
RAM[40] = 64'h47858082dfed8b85;
|
||||||
|
RAM[41] = 64'h40a7853b4015551b;
|
||||||
|
RAM[42] = 64'h808210a7a02367c9;
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
endmodule // bytewrite_tdp_ram_rf
|
endmodule // bytewrite_tdp_ram_rf
|
||||||
|
@ -48,7 +48,7 @@ module rom_ahb #(parameter BASE=0, RANGE = 65535) (
|
|||||||
assign HRESPRom = 0; // OK
|
assign HRESPRom = 0; // OK
|
||||||
|
|
||||||
// single-ported ROM
|
// single-ported ROM
|
||||||
brom1p1r #(ADDR_WIDTH, `XLEN)
|
brom1p1r #(ADDR_WIDTH, `XLEN, `FPGA)
|
||||||
memory(.clk(HCLK), .addr(HADDR[ADDR_WIDTH+OFFSET-1:OFFSET]), .dout(HREADRom));
|
memory(.clk(HCLK), .addr(HADDR[ADDR_WIDTH+OFFSET-1:OFFSET]), .dout(HREADRom));
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user