Entity: sdram

Diagram

wire clock wire reset wire refresh wire write wire read wire[15:0] portD wire[23:0] portA ready [15:0] portQ ramCs ramRas ramCas ramWe [ 1:0] ramDqm wire[15:0] ramDQ [ 1:0] ramBa [12:0] ramA

Description


Ports

Port name Direction Type Description
clock input wire
reset input wire
ready output
refresh input wire
write input wire
read input wire
portD input wire[15:0]
portQ output [15:0]
portA input wire[23:0]
ramCs output
ramRas output
ramCas output
ramWe output
ramDqm output [ 1:0]
ramDQ inout wire[15:0]
ramBa output [ 1:0]
ramA output [12:0]

Signals

Name Type Description
ramQ reg[15:0] -------------------------------------------------------------------------------------------------
rs reg -----------------------------------------------------------------------------
rs2 reg -----------------------------------------------------------------------------
rd reg
rd2 reg
wr reg
wr2 reg
rf reg
rf2 reg
counting reg
count reg[5:0]
state reg[2:0]

Constants

Name Type Value Description
sINIT 0 -----------------------------------------------------------------------------
sIDLE 1
sREAD 2
sWRITE 3
sREFRESH 4

Processes

Type: always

Type: always

State machines

state transitions cluster_state state sINIT sINIT sIDLE sIDLE sREAD sREAD sIDLE->sREAD rd    sWRITE sWRITE sIDLE->sWRITE wr    sREFRESH sREFRESH sIDLE->sREFRESH rf