Altera_Forum
Honored Contributor
20 years agoAvalon Master with 8Bit Transfers
Currently i am trying to port my sopc module from being a pure avalon slave into a combination of a avalon slave that will hold only some control and status registers and an avalon read and an avalon write master.
The idea behind that is that my modules can directly store data into sdram or read from sdram. this will save a lot of m4k memory for signaltap :-) Implementing a pure avalon slave is easy. Implementing an avalon master following the avalon bus specification seems to be easy to but i still have some questions. maybe somebody here can help me to save time ... One point is that both avalon master will read or write 8Bit. i have setup for both avalon master : - clk - address - waitrequest and read / readdata resp. write / writedata do i need to set the byteenable signals too? as readdata and writedata are both 8 bit wide ? or does the avalon do the job using a0 and a1 to create the byteenables ? what if the sdram is 16bit and not 32bit ? what is also not clear to me is what if one of my masters is accessing a slave that is currently accessed by another master ? this will happen if i try to access the sdram. will i receive waitrequest ? Are there any examples out there how to implement a master ? Regards. Michael Schmitt