简体   繁体   English

如何在FPGA板上使用VHDL显示句子

[英]How to display a sentence with VHDL on a FPGA board

I am just wondering if it is possible to display a sentence, for example "SOLD OUT", on the 7-segment display of the FPGA board where I can only show four letters. 我只是想知道是否可以在FPGA板的7段显示器上显示一个句子,例如“售罄”,而我只能显示四个字母。

I want it to display SOLD then OUT. 我希望它显示先售后售。

If it is possible to implement that, how can I do it? 如果可以实现,我该怎么办? Clock divider? 时钟分频器?

You start by researching what the board does. 您首先要研究董事会的职能。 How does it connect to the LCD display? 它如何连接到LCD显示器? What are the waveforms required to drive a value to the display. 将值驱动到显示器所需的波形是什么? It will be different for different boards. 不同的板将有所不同。 The Digilent boards tend to be common Anode. Digilent板往往是常见的阳极。 Some Altera boards connect all four 7-segment displays directly to FPGA IO (wastes IO, but who cares when you have plenty). 一些Altera板将所有四个7段显示器直接连接到FPGA IO(浪费IO,但是谁在乎何时拥有足够的资源)。

Next you determine, how do I display a character on the display. 接下来,您确定如何在显示器上显示字符。 What holds the value? 价值何在? What translates the value from an internal representation, such as ASCII to the value on the display. 将值从内部表示形式(例如ASCII)转换为显示器上的值的方式。

WRT clocks, my preference is to use a common FPGA clock and use load enables that provide periodic indication it is time to load the other image. WRT时钟,我的首选是使用通用的FPGA时钟,并使用加载使能来周期性指示何时加载其他图像。

Think about how fast you should be switching the display? 考虑一下您应该以多快的速度切换显示? My recommendation is to make sure you display each value for 1 sec before switching and adjust after you see it working. 我的建议是确保在切换之前将每个值显示1秒钟,并在看到它起作用后进行调整。 If you decrease the display time too much, your display will blur because neither value is displayed long enough. 如果您过多地减少了显示时间,则由于两个值的显示时间都不够长,因此显示将模糊。

Next how do I display 4 characters? 接下来,我如何显示4个字符?

Next how do I make the characters shift or alternate between different values. 接下来,我如何使字符在不同的值之间移动或交替。 This could be a character wide shift register, it could be two different display registers. 这可以是字符宽移位寄存器,也可以是两个不同的显示寄存器。

In each of these steps you should be drawing a picture of the hardware before writing any code. 在每个步骤中,您都应在编写任何代码之前绘制硬件图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM