Forum Discussion

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

HSMC interface IO in SOPC Builder

I have a Cyclone III Starter kit, and I want to write some datas in dr_sdram memory from HSMC IO.

In SOPC Builder, how do I build this interface HSMC IO( LVDS format) ?

Do I use the RapidIO megacore or GPIO ?

12 Replies

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

    --- Quote Start ---

    int main(void)

    {

    int buttons;

    MenuHeader();

    while (1)

    {

    buttons = IORD_ALTERA_AVALON_PIO_DATA(BUTTON_PIO_BASE);

    IOWR_ALTERA_AVALON_PIO_DATA(PIO_BASE,0x08);

    IOWR_ALTERA_AVALON_PIO_DATA(LED_PIO_BASE,buttons);

    }

    return (0);

    }

    --- Quote End ---

    My Nios'code: PIO_BASE is the hsmc output.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Check that you assigned the ports to the correct FPGA pins on the pin planner.

    You can also use a signaltap probe on the ports that you added to check if you are setting them to the correct value. From the code that you posted. it seems that you do.