Coder Social home page Coder Social logo

VPI: update about iverilog HOT 4 CLOSED

steveicarus avatar steveicarus commented on August 24, 2024
VPI: update

from iverilog.

Comments (4)

caryr avatar caryr commented on August 24, 2024

I have downloaded your test files and I will try to look at this over the weekend.

From some of the other information you posted it looks like you are using the latest development code so that will be my assumption unless you state otherwise in a follow up message.

from iverilog.

caryr avatar caryr commented on August 24, 2024

It took me longer than I expected to look at this. The problem is that the compiler is incorrectly connecting the WR and IN terms of the mux created by the continuous assignment to B0 to constant undefined values since that is what it thinks WR and IN are driven by. It does not understand that these can be set by the VPI. It also looks like the assignment to the IN port (at least from the mux perspective) is not working correctly since the value is set correctly and then transitions back to High-Z when I hand edit the compiler output to connect the mux to the IN and WR nets. The procedural code works because it uses an actual reference to the WR and IN handle.

from iverilog.

martinwhitaker avatar martinwhitaker commented on August 24, 2024

I've had a look at this, and the bug is not in the compiler, it's in vvp. The signal_put_value function in vpi_signal.cc was not updated for the changes introduced by the vvp net rework. Rather than sending the value to the net (which sends it to the functor that drives that net), it needs to send it from the net.

I have a fix for this, but need to make sure the same applies to registers, and check the force/release behaviour.

from iverilog.

martinwhitaker avatar martinwhitaker commented on August 24, 2024

Found several more bugs whilst testing this, but it should be working now.

Thanks for reporting this.

from iverilog.

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.