Forum Discussion

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

SOPC builder custom component not generated

Hello,

I'm using SOPC builder to generate a simple design.

I have successfully generated a design with NIOSII and a CFI Flash interface.

Now, I would like to add a custom component generated from a VHDL file.

I'm starting with a basic design driving LEDs attached to this message (shift_led.vhd).

I've successfully created the custom component with SOPC builder and added it to my system. It appears with other components of my design in "system contents" view. Clock and reset seems to be connected.

When I generates the system, my custom component is not present. It is not instantiated in the generated VHDL file for the system (flash_loader.vhd).

Is there something special to do to integrate a custom component in a SOPC system?

Thank you

3 Replies

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

    shift_led entity doesn't have avalon MM interfaces (datain, dataout, address, write or read), so it can't be acceded from Nios II. You should add at least datain and address interfaces.

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

    I don't need to access this component from Nios II. It runs independently from the rest of the system except that it uses the same clock and reset.

    I'll try to add this interface without using it in my component to see if this is what SOCP builder requires.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I wonder if since the only connections to your component were the clock and reset, SoPC builder decided not to instantiate the component at all because both the reset and clock are made available outside of SoPC Builder.

    Hmmm.

    One other thought. Does the timestamp on the generated "flash_loader.vhd" match what you expect for the compilation time? Meaning, is it possible that it's not getting updated?

    Jake