google / bigspicy Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
It would be great to also support ngspice even if it is slower than Xyce.
To be able to create a github discussion. See https://resources.github.com/devops/process/planning/discussions/
Can't open a discussion.
Discussions
tabFor the script to go beyond the import statments
File "./bigspicy.py", line 24, in <module>
import circuit_writer
File "/media/karim/Elements/work/bigspicy/circuit_writer.py", line 24, in <module>
class CircuitWriter():
File "/media/karim/Elements/work/bigspicy/circuit_writer.py", line 27, in CircuitWriter
circuit.Port.Direction.INPUT: circuit_pb.Port.Direction.INPUT,
AttributeError: 'EnumTypeWrapper' object has no attribute 'INPUT'
sudo apt install -y protobuf-compiler iverilog
pip install -e ".[dev]"
git submodule update --init # Make sure we pull from Vlsir/schema-proto the
# first time.
protoc --proto_path vlsir vlsir/*.proto vlsir/*/*.proto --python_out=.
protoc proto/*.proto --python_out=.
v0.0.1
also happens with latest commit as of this post date
python version:
❯ python3 --version
Python 3.8.10
Ubuntu 20.04.3 LTS
When trying to import some sky130 gate level verilog, bigspicy fails with:
NotImplementedError: Is this supposed to be a disconnection?
The problem is a tie cell, in which a disconnected pin is expected (both LO and HI are rarely used together). A verilog test case:
module test (
VGND,
VPWR,
hi
);
input VGND;
input VPWR;
output hi;
sky130_fd_sc_hd__conb_1 const_hi (
.HI(hi),
.VGND(VGND),
.VNB(VGND),
.VPB(VPWR),
.VPWR(VPWR));
endmodule
And the spice:
.subckt sky130_fd_sc_hd__conb_1 VGND VNB VPB VPWR HI LO
R0 VGND LO sky130_fd_pr__res_generic_po w=480000u l=45000u
R1 HI VPWR sky130_fd_pr__res_generic_po w=480000u l=45000u
.ends
run with:
./bigspicy.py --import --verilog test.v --top test --spice_header test.spice --dump_spice test_out.spice
As BigSpicy simulations can get large pretty quickly, it would be great to see an example of Xyce running on multiple machines using MPI (preferrable on Google Cloud Platform).
Currently it is unclear what BigSpicy does and why I would want to use it.
I'm not sure if simple continuous assignments are valid structural Verilog, but OpenROAD (well OpenSTA) does use them in some cases, so it would be nice to support it:
// Verilog "ports" are not distinct from nets.
// Use an assign statement to alias the net when it is connected to
// multiple output ports.
cat << EOF > testmodule.v
module testmodule (
in,
out
);
input in;
output out;
assign out = in;
endmodule
EOF
./bigspicy.py --import --verilog testmodule.v
You should add;
It would be awesome to see bigspicy running in a Google Colab / Juyper notebook like a lot of the other examples.
@umarcor has help us set this up for other hardware related repositories.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.