Giter Club home page Giter Club logo

Comments (4)

alexforencich avatar alexforencich commented on May 24, 2024 1

I should probably enable discussions on the cocotbext repos. Anyway, that's a rather odd way to split things out. Right now I don't think it's possible to connect that up, but I'm looking in to reworking how the bus object is used to make this sort of thing easier/possible. Worse comes to worse, you'll be able to manually connect all of the signals. In your case, it looks like maybe having some way to combine signals from two objects into one object might make this unnecessary. Something like this, perhaps:

axi_if = [AxiMaster(mosi + miso, dut.clk, dut.rst, ...) for mosi, miso in zip(dut.inst.axi_mosi_if, dut.inst.axi_miso_if]

or perhaps:

axi_if = [AxiMaster(Combine(mosi, miso), dut.clk, dut.rst, ...) for mosi, miso in zip(dut.inst.axi_mosi_if, dut.inst.axi_miso_if]

I'll discuss with the cocotb folks about the feasibility of making something like this work.

from cocotbext-axi.

alexforencich avatar alexforencich commented on May 24, 2024

I just added new objects that will hopefully be able to make this sort of thing easier. Right now they are just wrappers around the Bus object, but I'm planning on doing a more complete rewrite. I'm not sure exactly what it's going to look like at this point, but I'm definitely going to keep this particular use-case in mind, perhaps by supporting matching signals from multiple source entities.

from cocotbext-axi.

aignacio avatar aignacio commented on May 24, 2024

oh great, thanks for the heads up! Please keep as an example too if possible.... This type of usage is very common in ASIC industry once it helps with bus integration and during the synthesis steps when you need to constrain in/outs

from cocotbext-axi.

aignacio avatar aignacio commented on May 24, 2024

btw, if you're willing to have something in SV, use Verilator 4.106 once the latest is hanging due to VPI changes

from cocotbext-axi.

Related Issues (20)

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.