Entity: spid_fifo2sram_adapter

Diagram

int unsigned FifoWidth int unsigned FifoDepth int unsigned SramAw int unsigned SramDw logic [SramAw-1:0] SramAw bit EnPack int unsigned FifoPtrW clk_i rst_ni wvalid_i [FifoWidth-1:0] wdata_i sram_gnt_i sram_rvalid_i [SramDw-1:0] sram_rdata_i [1:0] sram_rerror_i wready_o [FifoPtrW-1:0] wdepth_o sram_req_o sram_write_o [SramAw-1:0] sram_addr_o [SramDw-1:0] sram_wdata_o [SramDw-1:0] sram_wmask_o

Description

Copyright lowRISC contributors. Licensed under the Apache License, Version 2.0, see LICENSE for details. SPDX-License-Identifier: Apache-2.0

FIFO interface to SRAM interface

Generics

Generic name Type Value Description
FifoWidth int unsigned 8
FifoDepth int unsigned 256
SramAw int unsigned 10
SramDw int unsigned 32
SramAw logic [SramAw-1:0] '0
EnPack bit 1 Byte Write to pack
FifoPtrW int unsigned $clog2(FifoDepth)

Ports

Port name Direction Type Description
clk_i input
rst_ni input
wvalid_i input
wready_o output
wdata_i input [FifoWidth-1:0]
wdepth_o output [FifoPtrW-1:0]
sram_req_o output
sram_gnt_i input
sram_write_o output
sram_addr_o output [SramAw-1:0]
sram_wdata_o output [SramDw-1:0]
sram_wmask_o output [SramDw-1:0]
sram_rvalid_i input
sram_rdata_i input [SramDw-1:0]
sram_rerror_i input [1:0]

Signals

Name Type Description
fifoptr logic [FifoPtrW-1:0] ////////// Signal // //////////
sram_ack logic
fifoptr_inc logic

Constants

Name Type Value Description
FifoPtrW int unsigned $clog2(FifoDepth)
NumEntryPerWord int unsigned SramDw/FifoWidth

Processes

Type: always_ff