Code Monkey home page Code Monkey logo

Comments (4)

balaskumar avatar balaskumar commented on September 27, 2024

Hi all.
In the README, you say:

When an IP-XACT file is imported, the register description is loaded into the SystemRDL register model as if it was an addrmap component declaration. Once imported, the IP-XACT contents can be used as-is, or referenced from another RDL file.

Does this mean that IP-XACT components can be instantiated inside SystemRDL addrmaps? That is a very useful thing to have. Do you have any examples of such usage?

from peakrdl-ipxact.

amykyta3 avatar amykyta3 commented on September 27, 2024

Yep! its really useful if you need to glue multiple IP-XACT files together from a vendor.
I just uploaded an example. Hope this helps: https://github.com/SystemRDL/PeakRDL-ipxact/tree/master/examples

from peakrdl-ipxact.

balaskumar avatar balaskumar commented on September 27, 2024

Thanks for coming up with that example! Certainly clarifies things for me.
Does this mean that we should be able to convert an IP-XACT register model into a SystemRDL model? All that we would need is to write a SystemRDLExporter. How would one go about writing such a thing?

from peakrdl-ipxact.

amykyta3 avatar amykyta3 commented on September 27, 2024

Yes it would certainly be possible to export back to SystemRDL.
I'd recommend looking at the compiler's API reference: https://systemrdl-compiler.readthedocs.io/en/latest/
To export, I'm a big fan of using the Jinja template engine. I used it extensively to generate the UVM exporter: https://github.com/SystemRDL/PeakRDL-uvm/tree/master/peakrdl/uvm/templates

Writing an exporter doesn't seem too difficult. I think I could throw one together pretty quickly...

from peakrdl-ipxact.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.