Git Product home page Git Product logo

Comments (3)

cliffordwolf avatar cliffordwolf commented on August 18, 2024

Since I'm not a synopsys user myself I can't say if there is a complete publicly available library of those cells. But there are some liberty files that implement at least what seems to be a subset. For example: http://vlsiarch.ecen.okstate.edu/flows/MOSIS_SCMOS/latest/cadence/lib/tsmc025/signalstorm/osu025_stdcells.lib

For example with that liberty file, and a structural netlist synth.v, you can do the following to replace the library cells in the design with their definitions from the cell library:

# read structural netlist
read_verilog synth.v

# replace library cells
read_liberty -setattr libcells osu025_stdcells.lib
flatten A:libcells %C
delete A:libcells

(This requires git head. I've just implemented the select operator %C in commit 8eadd8f because I realized that this functionality was missing when I started to answer your question.)

from yosys.

jeremysalwen avatar jeremysalwen commented on August 18, 2024

Could you explain how this is different than using techmap?

from yosys.

cliffordwolf avatar cliffordwolf commented on August 18, 2024

Techmap and flatten actually share the same codebase. So its not different at all. But techmap can only read verilog and ilang files at the moment, so it was not the first thing I thought of and then I decided I wanted to implement the %C (and %M) select operators..

You are right: using techmap would actually be much better. (And works with yosys-0.5 just fine.)

So you would either convert the liberty file to ilang first:

read_liberty osu025_stdcells.lib
write_ilang libcells.il
design -reset

read_verilog synth.v
techmap -map libcells.il

Or (a bit cleaner imo) use separate designs in memory:

read_liberty osu025_stdcells.lib
design -stash libcells

read_verilog synth.v
techmap -map %libcells

So that's proof that just because I wrote the software doesn't mean that I always intuitively know how to use it best.. :)

from yosys.

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.