Forum Discussion
Altera_Forum
Honored Contributor
11 years agoOk... then to access SDRAM's 10Mbytes location i will try using one reg out of 16 and declare as
reg[16:0] ram[(100000000 - 1) : 0]; kindly confirm my assumption slave write, slave read are the flags that i need to declare and use as per my logic slave_address is the variable to hold the address on which i want to carry out read and write activity. slave_readdata is the variable i will declare to retrieve the data from SDRAM the statement "ram[slave_address] <= slave_writedata;" will write the data in address location present in "slave_address". In nios II C appln, i will use the pointer to this address and retrieve the data. Am i right? -Jagdish