sep_rom_interface_shim

Forward the SEP ROM memory_interface struct onto a prim_rom macro.

ROM_ADDR_WIDTH defaults to 10 (1K 64-bit entries). Forwards read requests from mem_req_i into macro_req_o / macro_addr_o and returns macro_rdata_i on mem_rsp_o. Every request is granted at once and answered with rvalid one cycle later. Writes never reach the macro; they are acknowledged and otherwise ignored.

Parameters

Table 1. Parameters
NameTypeDefaultDescription
ROM_ADDR_WIDTHint unsigned10ROM address width; default 10 for 1K entries.

Ports

Table 2. Ports
NameDirectionTypeDescription
clk_iinputlogicSystem clock.
rst_niinputlogicActive-low reset.
mem_req_iinputsep_sram_req_tMemory request from the SEP memory_interface; byte address, 64-bit data.
mem_rsp_ooutputsep_sram_rsp_tMemory response: gnt always high, rvalid one cycle after any request, rdata from the ROM macro.
macro_req_ooutputlogicRead request to the ROM macro (prim_rom); high only for read requests.
macro_addr_ooutputlogic [ROM_ADDR_WIDTH-1:0]ROM word address: the request byte address divided by eight.
macro_rdata_iinputlogic [SEP_MEM_DATA_WIDTH-1:0]ROM read data, returned one cycle after macro_req_o.