--- Quote Start ---
Let's say I have an output signal defined in a project in Quartus and I want to send the state of the signal using a C program in Nios. Can I somehow assign the signal to some address (or maybe some specific component, defined in SOPC Builder), so that I will be able to read it using a C program in Nios?
Adam
--- Quote End ---
Hi Adam,
You can easily implement this by opting for custom component in the SOPC Builder. You can make a new component wherein you can specify the read, read enable, clock, address and data signals for this component. You need not specify any HDL model here. This creates a "component" which is just a simple interface between NIOS and the rest of the HDL design. Here, you don't need any tri-state interface either.
Further, you can also have an Interrupt signal in this interface which is driven by a line that signals you that the state of the signal is up to be read.
I hope that helps.