Forum Discussion
inout PIO value change
- 5 years ago
Hi Mark,
Pertaining to the question earlier on the output buffer does not reflect the changing of the input buffer, it is an expected behavior. The hardware logic in the PIO is separate for reading and writing the data register. Reading the data register returns the value present on the input ports (if present). Writing data affects the value driven to the output ports (if present). These ports are independent; reading the data register does not return previously-written data.
For the self clearing bit, you may select "Enable individual bit setting/clearing" when you generate the PIO IP. This option is available for the output register only. When this option is turned on, two additional registers—outset and outclear—are implemented. You can use these registers to specify the output bit to set and clear.
Thanks
Best regards,
KhaiY
Hi,
When changing the "in" buffer - it doesn't affect the output buffer, but if reading PIO from PCIe bar the value does changed to the updated one according the "in" buffer (the "out" buffer remains "outdated"). How to make the "in" buffer propagate to "out" buffer, without initiating a write from PCIe bar? (Don't use NIOS, using only HW).
I am sorry, I do not understand the questions. Do you mind elaborating further in details or giving example?
Thanks
Best regards,
KhaiY