Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17254 Discussions

how to modify SOPC generated uart?

Altera_Forum
Honored Contributor II
1,610 Views

Hi, my question is the following: I have implmented a Nios processor with an UART interface by using the SOPC. Is it possible to use this uart to write and read the rx/tx data in a vhdl code outside the processor? 

What I would like to do is to let the uart handle bauds, etc and somehow access the received data in vhdl, where my prog. has to read it and to put it back in the register of the code generated for the NIos Mp, so that the data can be available for the mp to work with it. 

When the micrpprocessor sends something through the uart i have first to get this data in vhdl, process it and then send it. 

If anyone can help me or have any ideas I will appreciate it.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
688 Views

I might have misunderstood your question, so correct me if I'm wrong. 

 

You want to use the SOPC system to send data via UART to a VHDL logic block, which would process the data and send it back over the UART to the SOPC system? 

 

UART is not the best way to do this, but if you are using it to prototype something that has to communicate with a separate UART device, your method will work. You just have to implement the UART protocol in your VHDL, or instantiate an existing one and interface to it via an Avalon/Wishbone interface.
0 Kudos
Reply