Comments (4)
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.
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.
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.
Found several more bugs whilst testing this, but it should be working now.
Thanks for reporting this.
from iverilog.
Related Issues (20)
- Question on AMS support HOT 2
- Override parameters in top-level Verilog HOT 2
- Array depth defined with the num method of an enum where the variable name is identical to part of the enum instance name causes an error HOT 5
- unsigned port connection sign extends HOT 4
- fork..join_none inside automatic task fails assertion
- iverilog doesn't exit with an error code when an include file is missing. HOT 4
- Add support for `assert( l_c === 1'b0 );` syntax HOT 3
- Support implicit named port connections HOT 5
- Bug: accessing parameters by upward hierarchial name HOT 1
- Replication operator in literal array assignment pattern is not supported HOT 1
- vpi_put_value() at T0 is overridden HOT 2
- No error reported when an invalid or non-existent argument is passed to $bits
- vvp: array.cc:1561: void compile_array_alias(char*, char*, char*): Assertion `mem' failed.
- I think a signal goes up one clock cycle too early HOT 3
- Possible Data Transfer Anomaly HOT 8
- Nested generate statement not reported as syntax error
- ivl: logic_lpm.c:463: emit_nexus_port_signal: Assertion `! sig' failed.
- ivl: logic_lpm.c:485: find_local_signal: Assertion `! sig' failed. HOT 4
- Delayed transmission from tranif0/tranif1 primitives HOT 3
- Arrays can't be used in sensitivity lists HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iverilog.