Coder Social home page Coder Social logo

lee30sonia / threabc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nianzelee/threabc

3.0 1.0 0.0 93.5 MB

Threshold logic operation within ABC

License: Other

CMake 0.01% Makefile 0.15% C 96.38% C++ 1.55% Python 1.27% Shell 0.01% HTML 0.41% Objective-C 0.06% Perl 0.01% M4 0.01% Batchfile 0.07% Lex 0.02% Yacc 0.07%

threabc's Introduction

threABC

Introduction

Contents

  1. Installation
  2. Commands
  3. Examples
  4. Contact

Installation

Type make to complie and the executable is bin/abc

make

It has been tested successfully under CentOS 7.3.1611 with GCC_VERSION=4.8.5

Commands:

I/O:

  • read_th: read a .th file (PO must be buffered)
  • write_th: write current_TList out as a .th file
  • print_th: print network statistics of current_TList

Synthesis:

  • aig2th: convert AIG to TH by replacing an AND gate as a threshold gate [1,1;2]
  • merge_th: reduce # of threshold gates by collapsing
  • th2blif: convert TH to a blif file by transforming a threshold gate to the truth table
  • th2mux: convert TH to AIG by expanding a threshold gate to a mux tree

Verification:

  • PB_th: eq check between pNtkCur and current_TList by PB
  • CNF_th: eq check between pNtkCur and current_TList by CNF
  • NZ: eq check between cut_TList and current_TList by PB
  • OAO: eq check between cut_TList and current_TList by CNF

misc:

  • test_th: testing playground
  • profile_th: print detailed collapse information

Examples

  1. Collapse a synthesized threshold logic circuit
abc 01> r benchmarks/iscas85/c6288.bench
abc 02> synth1
abc 03> merge_th
  1. Verify equivalence using mux-based conversion and cec (Continued from the above example)
abc 04> t2m
abc 05> cec -n benchmarks/iscas85/c6288.bench
  1. Verify equivalence using PB-based conversion and minisat+ (Continued from the above example)
abc 06> NZ
abc 07> quit
bin/minisat+ compTH.opb

You can observe that PB-based equivalence checking takes much longer time.

Contact:

Please let us know if you have any problem using the code.
Nian-Ze Lee: [email protected], [email protected]

threabc's People

Contributors

lee30sonia avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.