FlowTune - 一种轻量级强化学习合成解决方案 [x] FlowTune 可以做什么? | FlowTune 支持的对象 | ABC | VTR | Yosemite | 更多…
FlowTune - 一种轻量级强化学习合成解决方案 [x] FlowTune 可以做什么? | FlowTune 支持的对象 | ABC | VTR | Yosemite | 更多…
| Obj Supported by FlowTune | ABC | VTR | Yosys | ABC to Commercial (Verilog) |
|---|---|---|---|---|
| AIG | ✓ | ✓ | ||
| CNF(SAT) | ✓ | |||
| LUT | ✓ | ✓ | ✓ | |
| Techmap | ✓ | ✓ | ✓ | |
| Place&Route | ✓ | ✓ |
09/15/2022 Update: Post-PnR demonstrated integration with OpenFPGA and VTR tooflow (see TCAD 2022 paper)
Efficiently explore ABC synthesis flows (sequential decision making)
Push-button tool/script for various QoR metrics are included
FlowTune framework (implemented in ABC; Thanks @Alan Mishchenko)
A set of seqeuntial FPU benchmarks in BLIF (original benchmarks from VTR 8.0 Thanks!@VTR Team)
Push-button FlowTune for Boolean Networks, LUT (FPGA mapping), STD (ASIC) mapping optimizations.
FlowTune full integration with VTR 8.0 (see bash script install.sh). End-to-end evaluation of FlowTune up to post-PnR stage is enabled! (Thanks @VTR team).
FlowTune full integration with Yosys (Thanks! @Yosys Team)
FlowTune -> Vivado demo and FlowTune -> Cadence Genus demo are included.
@article{yu2022flowtune,
title={FlowTune: End-to-end Automatic Logic Optimization Exploration via Domain-specific Multi-armed Bandit},
author={Neto, Walter Lau and Li, Yingjie and Gaillardon, Pierre-Emmanuel and Yu, Cunxi},
journal={IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (TCAD)},
year={2022},
publisher={IEEE}
}
@inproceedings{yu-mab-iccad2020,
title={Practical Multi-armed Bandits in Boolean Optimization},
author={Cunxi Yu},
booktitle={2020 International Conference On Computer Aided Design (ICCAD'20)},
year={2020},
}- readline: sudo apt-get install libreadline6 libreadline6-dev (Ubuntu)
- readline: sudo yum install readline-devel (CentOS 7)
- -stdc++11 (tested on gcc4.9 and gcc7.0)
- OpenMP (https://www.openmp.org/resources/openmp-compilers-tools/ version tested 4.0.1 -- https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.1.tar.gz)
- wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.1.tar.gz; tar -xvf openmpi-4.0.1.tar.gz
- cd openmpi-4.0.1; ./configure; make -j12 all install
- Yosys -- https://github.com/YosysHQ/yosys
- export "abc" and "yosys" PATH TO .bashrc to have a global access
- Instruction: echo "export PATH=$(pwd):\${PATH}" >> ~/.bashrc; source ~/.bashrc
- Testing : If PATH added succesfully, you should be able to type "abc" and "yosys" at any location of your LINUX system
- VTR 8.0 -- https://github.com/verilog-to-routing/vtr-verilog-to-routing…abc 01> ftune -h
usage: ftune [drtfpihSL]
flowtune(ftune): Multi-Armed Bandit (MAB) synthesis flow tuning for Logic Minimization
-t : Targeted metric (default = 0, i.e., AIG Minization targeting number of AIG nodes)
: t=0 AIG Minization - Minimizing AIG nodes : ftune -d i10.aig -r 4 -t 0 -p 1 -i 10 -s 5 -L [other options]
: t=1 AIG Minization - minimizing AIG levels : ftune -d i10.aig -r 4 -t 1 -p 1 -i 10 -s 5 -L [other options]
: t=2 Technology mapping (w Gate Sizing + STA) Min STA-Delay : ftune -d i10.aig -r 4 -t 2 -p 1 -i 10 -s 5 -L your.lib(Liberty) [other options]
: t=3 Technology mapping (w Gate Sizing + STA) Min Area : ftune -d i10.aig -r 4 -t 3 -p 1 -i 10 -s 5 -L your.lib(Liberty) [other options]
: t=4 FPGA Mapping - Miniziming Number of 6-input LUTs : ftune -d i10.aig -r 4 -t 4 -p 1 -i 10 -s 5 [other options]
: t=5 FPGA Mapping - Miniziming Levels of 6-input LUT network : ftune -d i10.aig -r 4 -t 5 -p 1 -i 10 -s 5 [other options]
: t=6 SAT (CNF) Minization - Miniziming Number of Clauses : ftune -d cnf.aig -r 4 -t 6 -p 1 -i 10 -s 5 [other options]
: t=7 SAT (CNF) Minization - Miniziming Number of literals : ftune -d cnf.aig -r 4 -t 7 -p 1 -i 10 -s 5 [other options]
: t=8 Regular Technology mapping using GENLIB (map) Min Delay : ftune -d i10.aig -r 4 -t 8 -p 1 -i 10 -s 5 -L your.genlib(GENLIB) [other options]
: t=9 Regular Technology mapping using GENLIB (map) Min Area : ftune -d i10.aig -r 4 -t 9 -p 1 -i 10 -s 5 -L your.genlib(GENLIB) [other options]
-h : Print the command usage
-r : Number of appearances of each synthesis command (default = 3)
-p : Factor of number of Arms (default = 1)
-i : Number of MAB iterations (default = 10)
-s : Number of MAB sampling for each iteration per Arm (default = 5)
-f : Toggle using long-short-term memory for probability matching (default=FALSE)
-C : Customize the logic transformations (commands) for tuning instead of default commands.
Example 1: -C b;rw;rwz;rf (your flow will use these 4 opts).
Example 2: -C b;rw;rwz;rf;your_cmd (You can define your new command in abc.rc namely your_cmd and tunes for these 4 opts + your_cmd).
-S : Toggle using Softmax() or LogSoftmax() for finalizing samples at each iteration (default=FALSE)
-S 0 : Using winning rate Pr
-S 1 : Using Softmax()
-S 2 : Using LogSoftmax()
-L : Liberty or GENLIB file. Required for Technology mapping tuning (t=2,3,8,9) Design: bfly.v
Baseline: resyn (default abc flow) **applied 25 times consecutively**
Result: FlowTune provides 20%+ more AIG reduction compared to resyn*25
(see video below)See ./FlowTune-Integration-VTR/ftune_vtr_flow.pl for details
Design: bfly.v
FPGA Architecture = k6_frac_N10_frac_chain_mem32K_40nm
Result: 15% area/block reductions at Post-PnR stage, with 13% #Nets reductions.Results present up to 10.0% area improvement (average 4.5%) post-routing area reduction, and consistent post-routing timing improvements (average 7%).
暂无开放 Issues,或尚未同步最近议题。