Coder Social home page Coder Social logo

pdq's Introduction

PDQ

Queryable physical design

Setup

We recommend using a python virtual environment. For the base project, the required python packages are listed in requirements.txt.

python -m venv env
# Use activate.csh if on tcsh.
source env/bin/activate
python -m pip install -r requirements.txt

To get more designs for experimentation, there are some included submodules, such as garnet. Use the git submodule command to fetch these:

git submodule update --init --recursive

Some submodules require their own requirements, contained in <submodule>-requirements.txt. E.g. for garnet related experiments:

python -m pip install -r garnet-requirements.txt

Running tests

Tests can be run using pytest:

python -m pip install pytest
python -m pytest pdq/

Running

Assuming you have access to the necessary physical design tools, code can be run using:

python basic_flow_main.py --package <design_package_name> [--module <module_name> | --generator <generator_name>] [--params <key>=<value>,...]

This will run the query flow on either the specified module or generator from <design_package_name>. <design_package_name> should be specified as a "dot" path rather than a file path. For example, to run on the Adder generator found in the file magma_examples/magma_examples/adder.py, we could run

python basic_flow_main.py --package magma_examples.magma_examples.adder --generator Adder --params n=16

pdq's People

Contributors

rsetaluri avatar alexcarsello avatar ctorng avatar

Watchers

Nikhil Bhagdikar avatar Kayvon Fatahalian avatar  avatar James Cloos avatar  avatar Pat Hanrahan avatar David Durst avatar  avatar Clark Barrett avatar Xuan Yang avatar  avatar  avatar Caleb Donovick avatar Gedeon Nyengele avatar Daniel Stanley avatar Qiaoyi(Joey) Liu avatar  avatar Taeyoung Kong avatar Ankita Nayak avatar

pdq's Issues

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.