Comments (1)
The problem is with your script. You are not calling the passes responsible for handling tristates, which are tribuf -logic
and deminout
. Also, you are calling only generic logic synthesis, yet your expected results show that you want to synthesisze to xilinx architecture. If you use the command for xilinx synthesis, yosys -p "read_verilog top.v; synth_xilinx -top top; write_verilog synth.v"
(synth_xilinx
includes tribuf -logic
and deminout
), you get the result you expected:
/* Generated by Yosys 0.40+7 (git sha1 7bb274620, c++ 15.0.0 -fPIC -Os) */
module top(wire1, wire2, wire3, y);
wire _0_;
wire _1_;
wire _2_;
wire _3_;
inout wire1;
wire wire1;
input wire2;
wire wire2;
input wire3;
wire wire3;
output y;
wire y;
INV _4_ (
.I(_3_),
.O(_0_)
);
IOBUF _5_ (
.I(_2_),
.IO(wire1),
.O(_1_),
.T(_0_)
);
IBUF _6_ (
.I(wire2),
.O(_2_)
);
IBUF _7_ (
.I(wire3),
.O(_3_)
);
OBUF _8_ (
.I(_1_),
.O(y)
);
endmodule
from yosys.
Related Issues (20)
- Yosys Fails to Detect Syntax Violations According to Verilog Standards HOT 2
- Assertion Failure in genrtlil.cc When Handling Signedness Issue Description: HOT 1
- yosys fails with 'ERROR: init_share_dirname: unable to determine share/ directory!' on macos HOT 3
- Proof engine is going into wrong case in case statement HOT 3
- Parameters in other packages HOT 2
- Reduce default severity of Verific messages that produce warnings on commonly used coding styles
- Latch inferred for x signal HOT 4
- Assertion Failure in AST Processing: node->bits == v at frontends/ast/ast.cc:855
- Inconsistency in Verilog Synthesis: Yosys Successfully Synthesizes Code That Fails in Vivado and Quartus Due to Syntax Errors HOT 3
- Another out-of-memory problem with for loop
- synth_* passes should call `check -mapped`
- "ERROR: Assert `count_id(wire->name) == 0' failed in kernel/rtlil.cc:2143" when using synth_{ice40,ecp5} on simple design HOT 2
- Crash in yosys-abc
- Manual title page should have yosys version number
- Should -nomx8 be the default for the GateMate?
- opt: no "-purge" option but public names removed HOT 2
- Tests fails on Debian GNU/Linux on ppc64 HOT 6
- write_smt2: "-wires" option leads to inequivalent descriptions
- Spurious warnings "select out of bounds on signal" when there is no such thing ... HOT 1
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 yosys.