Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSome Basic Doubts !! Urgent
Hi all, am pretty new to using NIOS processor. I have been using Quartus II for cyclone for making block diagrams. I have moved to NIOS as i need reduction in Logic cells. I have installe...
Altera_Forum
Honored Contributor
15 years agoFor stuff like this unless you prefer doing things the hard way just write this in C.
# include "altera_avalon_pio_regs.h" int main () { unsigned long read_data; read_data = IORD_ALTERA_AVALON_PIO_DATA(INPUT_PIO_BASE); IOWR_ALTERA_AVALON_PIO_DATA(OUTPUT_PIO_BASE, read_data); return 1; }