Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Simulating Jtag-Uart as an input

Hello,

I'm simulating an SOPC design that includes a NIOSII and a Jtag-Uart with Modelsim.

My problem is that I can use the Jtag-Uart as a program output, but not as an input.

To go into details, SOPC Builder automatically creates:

- jtag_uart_output_stream.dat (empty output stream)

- jtag_uart_input_stream.dat (example input stream)

- jtag_uart_log.bat (example script that seems to redirect the Jtag-Uart ouput to the file jtag_uart_output_stream.dat)

When using the example script during simulation, a console appears, and I can see the characters sent by the NIOS program being displayed.

Now I don't know what to change in the example script to allow the console (or the file jtag_uart_input_stream.dat) to be used as an input to the program.

Has any of you done that before?

Thanks in advance!

Jean-Christophe

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I also cannot get JTAG UART input to work in ModelSim. Altera does not seem to provide usable information on that subject.

    Have you made any progress yet?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Altera does not seem to provide usable information on that subject.

    --- Quote End ---

    I'm under the impression, that they clearly declared all virtual JTAG functionality as unsupported in simulation. I think, the only solution is to write a special component replacing the JTAG UART for simulation purposes.