Giter Site home page Giter Site logo

cuhk-eda / ripple-fpga Goto Github PK

View Code? Open in Web Editor NEW
82.0 10.0 18.0 5.59 MB

RippleFPGA, A Simultaneous Pack-and-Place Algorithm for UltraScale FPGA

License: Other

Makefile 0.04% CMake 0.01% C++ 96.18% C 3.67% Shell 0.07% TeX 0.01% Perl 0.03%
physical-design eda fpga placement ultrascale

ripple-fpga's Introduction

RippleFPGA

RippleFPGA is a simultaneous pack-and-place algorithm for FPGA developed by the research team supervised by Prof. Evangeline F. Y. Young in The Chinese University of Hong Kong (CUHK). It produces legalized placement solutions by effectively packing and placing the input netlist on the modern Xilinx FPGA architecture. It directly minimizes the routed wirelength generated by the commercial router.

Features

  • Target at modern commercial FPGA architecture (Xilinx UltraScale XU095)
  • Support large-scale circuits
  • Pack and place simultaneously with an analytical global placement engine (Ripple)
  • Optimize both wirelength and routing congestion
  • Results verified by Xilinx Vivado® Design Suite
  • ...

More details are in the following papers:

1. How to Build

Step 1: Download the source codes. For example,

$ git clone https://github.com/cuhk-eda/ripple-fpga

Step 2: Go to the project root and build by

$ cd ripple-fpga/src
$ make mode=release_mt

Note that this will generate a folder bin under the root, which contains binaries and auxiliary files. More details are in Makefile.

Dependencies

  • GCC (version 4.8.0) or other working c++ compliers
  • Boost (version >= 1.58)

2. How to Run

Toy Test

Go to the bin directory and run binary placer with a toy design:

$ cd bin
$ ./placer -aux toy_example/design.aux -out toy_example.out

Batch Test

Our placer uses the bookshelf format and has been tested on two contest benchmark suites ISPD'16 Contest and ISPD'17 Contest, which can be downloaded via Dropbox (ISPD'16, ISPD'17). After downloading the benchmarks and putting them under folder BM_DIR, you can use our script run.sh:

$ cd bin
$ export BENCHMARK_PATH=BM_DIR
$ ./run all

3. Modules

  • src: c++ source codes
    • alg: external algorithm packages
    • cong: congestion estimation
    • db: database
    • dp: detailed placement
    • gp: global placement
    • lg: legalization
    • lgclk: legailzation related to clock constraints
    • pack: packing
    • utils: utilities
  • toy_example: toy example in bookshelf format

4. Results

All the experiments were performed on a 64-bit Linux workstation with Intel Xeon 3.7GHz CPU and 16GB memory. The placer is run in 2 threads and routed wirelength is reported by Xilinx Vivado® Design Suite with patches provided by the ISPD contest orgranizers.

Results on ISPD'16 benchmarks

Results on ISPD'17 benchmarks

5. License

READ THIS LICENSE AGREEMENT CAREFULLY BEFORE USING THIS PRODUCT. BY USING THIS PRODUCT YOU INDICATE YOUR ACCEPTANCE OF THE TERMS OF THE FOLLOWING AGREEMENT. THESE TERMS APPLY TO YOU AND ANY SUBSEQUENT LICENSEE OF THIS PRODUCT.

License Agreement for RippleFPGA

Copyright (c) 2019 by The Chinese University of Hong Kong

All rights reserved

CU-SD LICENSE (adapted from the original BSD license) Redistribution of the any code, with or without modification, are permitted provided that the conditions below are met.

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name nor trademark of the copyright holder or the author may be used to endorse or promote products derived from this software without specific prior written permission.

Users are entirely responsible, to the exclusion of the author, for compliance with (a) regulations set by owners or administrators of employed equipment, (b) licensing terms of any other software, and (c) local, national, and international regulations regarding use, including those regarding import, export, and use of encryption software.

THIS FREE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR ANY CONTRIBUTOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, EFFECTS OF UNAUTHORIZED OR MALICIOUS NETWORK ACCESS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ripple-fpga's People

Contributors

chengengjie avatar fyyoung avatar jordanpui avatar rholais avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ripple-fpga's Issues

Can't make file with the release_mt tag

(I have modified src/Makefile to match the versions of gcc and boost.)
I have faced issues when it is fetching the gd.h file, which I believe is some packages used for debug mode. I could have solved the issue by deleting all the codes related to draw.h, but that would waste me plenty of time.

Below is the error message:

g++ -std=c++11  -I. -I../../boost_1_71_0 -O3 -DNDEBUG -static -Wall -MMD -MP -o main.o -c main.cpp
In file included from ./utils/misc.h:3,
                 from ./global.h:32,
                 from db/db.h:3,
                 from main.cpp:1:
./utils/draw.h:3:10: fatal error: gd.h: No such file or directory
    3 | #include <gd.h>
      |          ^~~~~~
compilation terminated.

make debug build

Dear sir,

I compiled your source code with the command "make mode=debug", but it failed and the log shows "xxxx can not be used when making a PIE object,recompile with -fPIC".

I searched on internet, and i found by adding compile option "-no_pie" to Makefile, the issue can be fixed.
Does it ever happened to you?

Thanks,
Liran

fail to build

Hi, I am trying to build Ripple, but there is an error "gd.h: No such file or directory" when I make mode=release_mt.

截屏2023-02-23 11 53 17

Am I missing any steps?
Help me! Thanks!

How can i run with mutil-threads?

Hello, jordanpui!
I would like to run ripple-fpga using multiple threads.Could you please tell me if this is feasible,or provide any addition parameters to run ripple-fpga with mutil-threads?

Generation of RippleFPGA Input FIles from Vivado

Hi!

RippleFPGA is so comprehensive that I wonder whether we can export some designs from Vivado and test them with it. I notice that Vivado can export DCP file but RippleFPGA also requires files with suffixes like, .aux, .scl, .pl and so on, which I failed to find in the documentation of Vivado.

Thanks in advance for your help! ^_^

Best regards,
TIngyuan

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.