In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.