Forum Discussion

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

Using 7 segment on De1 Board

Hello to every one,

I've just bought the DE1 board and i try to do some sample program with VHDL like put led on when switch is on and something similar.

I kindly ask you if you can tell me how i can set-up 7 segment display. Is necessary a multiplexer??

Best Regards

Michele

13 Replies

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

    --- Quote Start ---

    for assignment a variable to an hardware component, for example an X input with key / sw

    is enough do for example:

    signal X: KEY[0]

    --- Quote End ---

    Not quite. There's two ways you could do something like this;

    
    signal x : std_logic;
    -- "Read" the state of key(0) into x
    x <= key(0);
    

    or the shorthand version

    
    alias x is key(0);
    

    Note: VHDL is case insensitive, so writing capitals makes no difference. A typical "convention" is to write generics in capitals, but even that is not universal.

    Cheers,

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

    Hi Dave,

    Thanks a lot for all your help, now i start to use seriously the board and i understood most of their function but there is another request, for that exam i ll prepare

    a project. I can decide what prepare and with my colleague we decide to create a simply game like ping pong / arkanoid. I find on youtube video about game like that

    but in my book i didn't find any reference about the library that i must use and also a manual of that library. My request is referred to the graphic part of my project.

    Thanks a lot for your cooperation

    Cheers

    Michele