Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPIOs hold the value until you change it or (if PIO is bidirectional) until you change it from output to input. So, your idea is supposed to work.
Anyway, using PIO to transfer data to an external device in this way is easy but is not convenient in cases like yours, where you have a lot of data bits, and then multiple PIOs. You'd better integrate the module in SOPC builder as an Avalon Memory Mapped slave. Then, your data could be read/written from/to module registers like ordinary memory. First of all you need to write wrapper code to interface Avalon bus, but this is rather simple; I think you can find several examples on opencores.org. Then you must create the custom MM-slave component for SOPC builder: you can use the component wizard or (better) write directly the tcl file using that of another component as a template.