2345 - Lattice Mico: In a Mico System Builder(MSB) project, can the characters transmitted through the UART be displayed on the Simulator console?

2345 - Lattice Mico: In a Mico System Builder(MSB) project, can the characters transmitted through the UART be displayed on the Simulator console?

Description:

Yes. The characters transmitted through the UART can be displayed on the Simulator console window during simulation.

To enable this:

  • double click the UART component in the hardware platform of MSB
  • on the 'transmit Settings for RTL Simulation' settings, check the boxes, Print Transmit Character and Emulate Transmit Operation

Now if you regenerate your hardware platform and run simulation you can see the transmitted characters being displayed on the simulator console window.

Important note while simulating is that your C/C++ code should not be waiting for any input from the UART. This may cause simulation to fail.