Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to display characters with modelsim Waveform

Shulou Source: shulou.com Published: 2022-06-01 04:44:48 09月28日 Update

This article will explain in detail how to use modelsim waveforms to display characters. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

This small project uses modelsim to simulate waveform patterns to display characters. The effect is as follows: give it to the students who are reviewing for the exam, persistence is victory:

The tools used are as follows:

-PCtoLCD2002: generate character lattice for display

-Quartus: code writing, simulation file generation.

-Modelsim: generates a character pattern to display.

1, character dot matrix generation

The settings for PCtoLCD2002 are as follows:

Generate character lattice:

After the font is maintained, the character lattice file is generated as follows:

2, character lattice data processing

Delete all the prompts, comments, punctuation marks in the character lattice file, leaving only the dot matrix code. And adjust the data of two adjacent parity rows to one row. The effect is as follows:

Rename the processed character file to char_code.hex.

3, code editing

(1,) character lattice data storage

BRAM module is used to store character lattice data. Use readmemh function to load character lattice data.

(2) waveform generation

Phase the data read out from the BRAM module with the clock signal.

4, simulation

Write the simulation file, run the simulation, expand the out signal, zoom to the appropriate proportion, you can see the character display. The effect is as shown at the beginning of the article.

[note] this project is a simulation environment set up by quartus. When setting up the simulation, it is best to add char_code.hex to the list of simulation files, which can not be found by the simulation software.

On how to use the modelsim waveform to display characters to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Character dot matrix simulation file data generation waveform effect article code signal content pattern engineering more module knowledge article processing good Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux Shulou Tech Info MariaDB NVidia