Altera_Forum
Honored Contributor
19 years agoAvalon Slave Port
Hello to all,
I have a Stratix II dev Kit and I made a design with a Nios II, an onchip memory, a tristate bridge and a custom "Typical Avalon MM-Slave" added with the template on SOPC Builder 7.2 and changed the standard interface with the tristate one. Inside Quartus II 7.2, Pin Planner I associated the 7 bit data bus output pin of my device to my devboard leds pins (AD26, AD25, AC25, AC24, AB24, AB23, AB26, AB25). Then I compiled and programmed the FPGA. Inside Nios II 7.2 I created an Hello_Led template based project and I changed the writing on led of pio (IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE, led)) with one relative to my custom device (IOWR(MY_AV_SLAVE_INST_BASE,0,led)). Leds don't flash, and I also can't find out how to manage signals of my device like chip_select or write_n, the only lines I can see in system.h are: # define MY_AV_SLAVE_INST_NAME "/dev/my_av_slave_inst" # define MY_AV_SLAVE_INST_TYPE "my_av_slave" # define MY_AV_SLAVE_INST_BASE 0x00021100 # define MY_AV_SLAVE_INST_SPAN 256 # define ALT_MODULE_CLASS_my_av_slave_inst my_av_slave I think there's something wrong, but I can't find the solution within the documentation. Thanks a lot, Dave