Following picture shows the data-path and the controller of the SDRAM bus interface. Prior to operating SDRAM, each ten-bit wide bus interface register containing the precharge (tPRE), CAS (tCAS ), burst (tBURST), latency (tLAT), and wait (tWAIT) periods must be programmed through a 10-bit program bus.
To implement this diagram, we divided this whole diagram into 4 parts: the Addr module handles address logic; the Delay module performs the down-counter; Control module is the bus interface; and SDRAM module provides data read and write media.
This module is used for initializing all data. Specificlly, it initializes the Status = 1, Write = 1, clock signal, ProgramData, Addr 32, WData and Burst. For more details, please refer to our implementation code Test.v.