Skip to content

csookim/FYalSAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FYalSAT

TAPA Flow

  1. Prerequisites
  1. Host compilation
g++ -o fysat -O2 fysat.cpp host.cpp -ltapa -lfrt -lglog -lgflags
  1. Run TAPA
source run_tapa.sh
  1. Generate bitstream
bash run/fysat_generate_bitstream.sh
  1. Run tests
./fysat --bitstream=vitis_run_hw/fysat_xilinx_u250_gen3x16_xdma_4_1_202210_1.xclbin ../test/uf225-028.cnf 0 100000 10.0
./fysat --bitstream=vitis_run_hw/fysat_xilinx_u250_gen3x16_xdma_4_1_202210_1.xclbin ../test/p12-k7-001.cnf 0 100000 10.0
./fysat --bitstream=vitis_run_hw/fysat_xilinx_u250_gen3x16_xdma_4_1_202210_1.xclbin ../test/C3-2-31.cnf 0 100000 10.0
./fysat --bitstream=vitis_run_hw/fysat_xilinx_u250_gen3x16_xdma_4_1_202210_1.xclbin ../test/Gen_16k.cnf 0 100000 10.0
./fysat --bitstream=vitis_run_hw/fysat_xilinx_u250_gen3x16_xdma_4_1_202210_1.xclbin ../test/MVD_ADS_S6_6_5.cnf 0 100000 10.0
./fysat --bitstream=vitis_run_hw/fysat_xilinx_u250_gen3x16_xdma_4_1_202210_1.xclbin ../test/MVD_ADS_S10_5_6.cnf 0 100000 10.0

Vitis Flow (not up-to-date)

  1. Setup the environment

source <Vitis_install_path>/Vitis/2021.2/settings64.sh; source /opt/xilinx/xrt/setup.sh;

  1. Build for hardware emulation

make run TARGET=hw_emu PLATFORM=xilinx_u280_xdma_201920_3 all

  1. Build for the hardware

make TARGET=hw PLATFORM=xilinx_u280_xdma_201920_3 all

3-1. Run application

  • put SAT instances in 'test' folder $

: executable cile in './fyalsat_FPGA/' : .xclbin file in './fyalsat_FPGA/build_dir.hw./' : The number of flips : The maximum number of variables allowed in a single clause : The maximum number of clauses where a variable can appear

ex) $ fsat.exe fsat.xclbin k3-r4.26-v600-c2556-043.cnf 0 10000000 16 640

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published