Forum Discussion
Altera_Forum
Honored Contributor
14 years agoStrange problem with IORD_16DIRECT
Hi, I have a 16-bit pio (input) in my sopc and I want to access the data through IORD_16DIRECT. The data shown on the port is 0x00, 0x01, 0x02....0xff (verified through signaltap). However, th...
Altera_Forum
Honored Contributor
14 years agoThe PIO doesn't contain bytenables so any access to it should be atomic and not split into multiple transactions by the fabric.
I recommend you use the access macros that come with the PIO so that you don't have to worry about your offsets. IORD_16DIRECT uses 2 byte offsets by the way. The macros are defined in "altera_avalon_pio_regs.h" in the directory: \ip\sopc_builder_ip\altera_avalon_pio\inc