Altera_Forum
Honored Contributor
21 years agoexternal 16Bit Slave, shared signals
I have problems connecting an external chip to NIOSII.
I used the standard design in SOPC Builder. The chip should work in 16bit mode and should share all signals, except 'chipselect_n' with the external SRAM IDT71V416 and the flash am29lv065d. There was already a thread in this forum with the same problem, but no helpfull answer. In the standard design, the ext_flash has the description "Flash Memory (Common Flash Interface)". There is another "Legacy AMD 29LV065D Flash", which is installed in a different folder. (see comonent Description). I had a look in \components\altera_avalon_cfi_flash\class.ptf: all signal except "write_n","select_n" are shared I had a look in \components\altera_nios_dev_kit_stratix_edition_sram2\class.ptf: all signal except "select_n" are shared I started with the standard design. I setup the Chip with Interface to User Logic: CHIP NAME: HFCE1 Bus Interface Type: Avalon Register Slave Port Name Width Direction Shared Type reset 1 input reset address 8 input yes address write_n 1 input yes write_n read_n 1 input yes read_n data 16 inout yes data chipselect_n 1 input chipselect_n irq_n 1 output irq_n be_n 2 input yes byteenable_n In Quartus I got the following signals in Block diagram: be_n_to_the sram_0[3..0] ??? chipselect_n_to_the_HFCE1_0 ext_ram_bus_address[22..0] ext_ram_bus_byteenablen[1..0] ?? ext_ram_bus_data[31..0] ext_ram_bus_readn ext_ram_bus_writen read_n_to_the_sram_0 reset_to_the_HFCE1_0 select_n_to_the_ext_flash select_n_to_the_sram_0 write_n_to_the_ext_flash write_n_to_the_sram_0 - which are the shared wires ? - to which signal should i connect BE[0..1] of HFCE1 and BE[0..3] of SRAM ? - what is the difference between - ext_ram_bus_writen - write_n_to_the_sram_0 - why there is no signal "read_n_to_the_ext_flash" in standard design. in standard design "ext_ram_bus_readn" is connected to flash_OE - what`s the difference between "ext_ram_bus_writen" and "write_n_to_the_ext_flash" - what`s the difference between "be_n_to_the sram_0[3..0]" and "ext_ram_bus_byteenablen[1..0]" Has anyone an working example for an external 16Bit Slave with shared signals write_n,read_n,byteenable_n ??? thanks