Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- Yes the TSE MAC can be used without SoPC builder. The Avalon ST and Avalon MM interfaces are simply bus protocols. Those buses are used within SoPC builder but they don't have to be. You can most certainly write your own logic to talk to the MAC. The Avalon MM specification is basically just a typical processor bus (address, write, read, data, etc). The Avalon ST specification is for streaming data and allows for packet control and backpressure. Jake --- Quote End --- Could you elaborate more on how to use the Avalon MM interface. I instantiated the TSE (no Qsys, no Nios) and I was trying to initialize the MAC by configuring the registers through verilog code, but I always read zeros from any field, even after writing one. I tried to configure the command_config register for example by using 8'h02 as address and read the TX_EN and RX_EN. I see that the address signal on the TSE interface is 8bits wide and I am not sure if I am doing the addressing properly. Also, when is data available after issuing a read command for example, in the same clock cycle or after one clock cycle? The waitrequest signal is high for three cycles and goes low for one cycle, and that repeats periodically for a continuous read operation at the same address being issued in each clock cycle, so I assume I get to actually read or write?... :(