Flow-based computing is an in-memory computing paradigm on nanoscale memristor crossbars. The memristors are assigned Boolean literals (Boolean variables and their negations), and the Boolean truth values '0' and '1'.
Definition: Given a crossbar design for a Boolean function φ, then the Boolean function φ evaluates to true if and only if there exists a path along low resistive memristors from the input nanowire (bottom most nanowire) to the output nanowire (top most nanowire) when a high input voltage is applied to the input nanowire.
- Thijssen, S., Jha, S. K., & Ewetz, R. (2021, February). COMPACT: Flow-Based Computing on Nanoscale Crossbars with Minimal Semiperimeter. In 2021 Design, Automation & Test in Europe Conference & Exhibition (DATE) (pp. 232-237). IEEE. Nominated for Best Paper Award.
- Install and enable Windows Subsystem for Linux.
- Python 3.6 or higher
- Optional: LTspice
- Optional: CPLEX
- Python 3.6 or higher
- Optional: CPLEX
- Python 3.6 or higher
- Optional: CPLEX
Clone this git repository and the required submodules ABC, Z3 and the EPFL benchmarks. For ABC, make sure to clone the submodule from here. Clone the submodules using the following command:
git submodule update --init --recursive
(Optional for Windows) Download and install LTspice. Then, configure the path to LTspice in config.py
:
lt_spice = "C:\Program Files\LTC\LTspiceXVII\XVIIx64.exe"
Make sure the packages g++
, gcc
and libreadline-dev
are installed for your Linux environment.
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install libreadline-dev
Compile the ABC
tool in the directory abc.
cd abc
make
Compile the Z3
tool in the directory z3.
cd z3
python3 scripts/mk_make.py --python
cd build
make
sudo make install
By default, CPLEX is the ILP solver.
Download and install CPLEX,
and make sure CPLEX is installed and the variable cplex_path
is set correctly for your OS.
Use the package manager pip to install the Python dependencies in requirements.txt
.
pip3 install -r requirements.txt
Install lualatex
.
In the directory examples, some examples are given on how to use COMPACT from command line.
python3 cli/main.py new_log t481.log | read benchmarks/t481.pla | robdd | compact
COMPACT version 2.0.0.
Sven Thijssen
University of Central Florida
sven.thijssen (at) knights.ucf.edu
http://sventhijssen.com/
- ABC
- RevLib
- CPLEX
- LTspice
- Computation of boolean formulas using sneak paths in crossbar computing
- Automated synthesis of compact crossbars for sneak-path based in-memory computing
Copyright 2020-2021 University of Central Florida
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.