Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

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

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.