GithubHelp home page GithubHelp logo

Comments (4)

qrqiuren avatar qrqiuren commented on May 27, 2024

It's the timing constraint file that you must define yourself. You can either search for Synopsys' manual or read the book Constraining Designs for Synthesis and Timing Analysis.

from opentimer.

hughperkins avatar hughperkins commented on May 27, 2024

Hmmm, I wrote my own script in the end https://github.com/hughperkins/VeriGPU/blob/main/verigpu/timing.py Seemed easier than figuring out how to write an sdc file :) Not sure if I'm missing anything from my script that opentimer handles, or handles better? My script estimates both maximum propagation delay, as a ratio of nand gate units; and area, also as a ratio of nand gate units.

from opentimer.

qrqiuren avatar qrqiuren commented on May 27, 2024

I think your understanding is wrong.

The SDC file is the constraint of timing. For example, I want my circuit to run at 100MHz, then I can define a clock in the SDC file of 100MHz and let the compiler (yosys or some other things) optimize the circuit to run at 100MHz. With the resulting netlist and the SDC, the STA tools (like OpenTimer) can check if your circuit meets such requirements.

If you cannot provide an SDC file to the STA tool, it could not perform such analysis because it cannot infer your timing paths.

Just let me show a simple example of defining the clock clk in 100MHz. You can pick it up and try to expand yourself with the manuals and STA books. By the way, the SDC format is just a subset of the Tcl language.

create_clock -period 10 [get_ports {clk} ] -name clk
set_clock_uncertainty -setup 0.1 [get_clocks *]
set_clock_uncertainty -hold 0.1 [get_clocks * ]
set_clock_latency -source -fall -early 0.1 [get_clocks *]
set_clock_latency -source -fall -late 0.1 [get_clocks *]
set_clock_latency 0.5 [get_clocks *]

from opentimer.

qrqiuren avatar qrqiuren commented on May 27, 2024

If you provide such SDC file to yosys, you may export the resulting netlist and the resulting SDC (not the original hand-written SDC). You can let OpenTimer to read them.

from opentimer.

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.