Forum Discussion

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

Importing OpenRISC IP into SOPC Builder

Hej everyone,

I have to import the OpenRISC IP into SOPC Builder.

Since it's a Wishbone master, I've designed a wrapped version in order to use it in an Avalon MM system.

Now I'm writing a TCL script that allows to customize and import the processor into SOPC-B.

I would like to know if SOPC-B requires particular information about the processor and if there are any constraints relating the customization of the processor in a SOPC-B environment. In fact it is possible to deeply modify the internal structure of the IP just activating or commenting a long list of macros. For instance it is possible:

- to have or not the instruction and/or data caches and eventually to modify their size

- to enable/disable the PIC and change the number of interrupt inputs

- to change the clock mode

- to enable/disable some extra "opcode"

- and many others

More over since the final TCL should provide a GUI with more or less the same features of the NiosII's one, I was wondering how it could be possible to let the designer chose amongst the memories already instantiated (if any) in the system to set the Reset and Exception vectors location. But which are the TCL command to get the list of the already instantiated components?

Thank you very much

3 Replies

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

    As your ip is an custom ip, there is a possability to do such things.

    as long as you do not change the avalon interface between your ip and the sopc components it is connected to via sopc builder, you can change the functionality of your ip.

    for example, the custom IPs i use are not changed with respect to the avalon signals, but the files that are used or better the files that describes this IPs behavioral can bet changed without runnung sopc builder again.

    this also includes parameters that enable or disable funtionality.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thank you!!

    do you have any idea about which are the TCL commands to get the list of the already instantiated components in the system?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    puuuh ... sorry if there are any ... i must have missed that part of the manuals

    no. maybe somebody else knows that.