Forum Discussion
Altera_Forum
Honored Contributor
18 years agoProblem PIO
Hello to all, I'm new in FPGA and I have a Cyclone II and I made a design with a Nios II. I just want to drive a component (LM629) and I have to send et receive data. I created a tri sta...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- I don't understand. What are those conduits connected to? They are single signals, not Avalon interfaces, so you can't use the functions you mention except for that slave interface. --- Quote End --- These conduits are connected to the PINs of my FPGA board. I followed this tutorial: http://scale.engin.brown.edu/classes/en2911xf14/qsys_comp.pdf and did the creation of a new component exactly as the reg16_avalon_interface, the only diference was the three conduits and not just one. This tutorial doesn't show how to use the functions IOWR_ALTERA_AVALON_PIO_DIRECTION and IOWR_ALTERA_AVALON_PIO_DATA, but I understood that I could do like this: IOWR_ALTERA_AVALON_PIO_DATA(reg16_avalon_interface_base, 0xFFFF) and IOWR_ALTERA_AVALON_PIO_DATA will not be needed since to_hex (conduit) is an output. I think it would be the same in my case, but I don't know how to write it in these functions, since I have three conduits (sd_clk : out, sd_cmd : inout, sd_dat : inout) and one of them (sd_dat) is a std_logic_vector of size 4. That means I have 6 signals altogether. The tutorial shows how to make an avalon interface slave and uses it. But does not show how to use these functions in a software (Nios II Eclipse, which I am using). Is it really not possible to use these functions for my case?