Forum Discussion

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

output GPIO on DE2

Hello I m trying to use the output GPIO on the DE2 board and cannot even get the clock to output. I have pin one out of a breakout board running through a 1k and then to Comm.

My code was immensely simple

GPIO_1(1) <=clock_27;

Is there something wrong? Is there a spefic string of code I need to output anything?

Thanks

12 Replies

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

    The board is just a plain old DE2 board. THey have since come out with the DE2 70 board.

    I cannot get anything to output at all. I checked the Pin list and it's fine. I also checked the labeling. It is GPIO_0 or GPIO_1

    Do I assign like this?

    GPIO_1(1) <=clock_27;

    or this

    clock_27 => GPIO_1(1) ;

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

    --- Quote Start ---

    Hello I m trying to use the output GPIO on the DE2 board and cannot even get the clock to output. I have pin one out of a breakout board running through a 1k and then to Comm.

    My code was immensely simple

    GPIO_1(1) <=clock_27;

    Is there something wrong? Is there a spefic string of code I need to output anything?

    --- Quote End ---

    What is the pin assignment? Perhaps you have a typo.

    Is this a DE2, DE2-70, or DE2-115?

    Here's a snippet from my DE2 pin assignments ...

    
    set pin(gpio_a(0))              D25
    set pin(gpio_a(1))              J22
    set pin(gpio_a(2))              E26
    set pin(gpio_a(3))              E25
    ...
    set pin(gpio_b(0))              K25
    set pin(gpio_b(1))              K26
    set pin(gpio_b(2))              M22
    set pin(gpio_b(3))              M23
    
    and my DE2-70

    
    set pin(gpio_a(0))              C30
    set pin(gpio_a(1))              C29
    set pin(gpio_a(2))              E28
    set pin(gpio_a(3))              D29
    ...
    set pin(gpio_b(0))              G27
    set pin(gpio_b(1))              G28
    set pin(gpio_b(2))              H27
    set pin(gpio_b(3))              L24
    
    Cheers,

    Dave