Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
1,530 Views

Hex Values on LCD Display

Hey, I want to display hex values of sha512 on lcd display on De2-115. I took up an example code from stx cookbook, I've attached the sample code, and towards the end you can see the last part of the main module  

 

wire [63:0] ta,tb,tc,td,te,tf,tg,th; 

assign {th,tg,tf,te,td,tc,tb,ta} = ab_reg; 

always @(posedge clk) begin 

# 10 if (round >= 1) begin 

$display ("t=%d : %x - %x - %x - %x", 

round - 1, ta,tb,tc,td); 

$display ("t=%d : %x - %x - %x - %x", 

round - 1, te,tf,tg,th); 

end 

end 

 

 

How do i display these on a lcd display where the screen refreshes it self towards the slot, since there is a 16x2 lcd.  

 

I was looking in John Loomis tutorial lcdlab ones inparticular, I dont really seem to grasp the idea, Can anyone help me figure out. 

John loomis lcdlabs page: http://www.johnloomis.org/digitallab/ 

 

 

 

Thank you
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
56 Views

Hi vrndandu , 

 

Go through the datasheet of the LCD(CFAH1602BTMCJP) so that you can understand. 

And you can generate Hex values for the character. 

http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=163&no=502&partno=4 

 

Best Regards, 

Anand Raj Shankar 

(This message was posted on behalf of Intel Corporation)
Altera_Forum
Honored Contributor I
56 Views

Hello vrndandu, 

 

$display commands are ment for simulator such as Modelsim.  

These commands are not compiled to .sof or .pof that you download to the DE2-115 fpga. 

If you want to control the LCD display on the fpga, you need other verilog code. 

You could try with the 7seg leds to begin, they are easier to start with. 

 

Best Regards, 

Johi.
Altera_Forum
Honored Contributor I
56 Views

Thank you,

Reply