Altera_Forum
Honored Contributor
16 years agomy SDRAM takes 14 clock cycles to read data !
i'm using the sdram on the altera de2 board
i've connected a master component to the avalon-MM, that's supposed to perform reads from a slave (sdram controller) connected as well to the avalon bus the sdram and the avalon bus are synchronous with a clock of 100 Mhz the master data bus is on 32 bits, and the sdram controller's is on 16 bits when the master request a read, the signal waitrequest is asserted for about 14 clock cycles before presenting valid data, i wander if it's normal ?? i notice that when i perform a write transfer between a 32-bit master and a 16-bit slave, it's done in 1 clock cycle ! why it's not the case for reading transfers ? i've checked if the write operation has been done effectively and it's okey, indeed the 32-bit data have been stocked in 2 successive addresses in the 16-bit sdram in just 1 clock cycle ... i've a doubt that the cause could be the cas_latency parameter in the sdram controller, it's set by default to 3 clock cycles and could be changed to 1 all other parameters that i've used have default values