Browse by type
Deep learning toolkit-enabled VLSI placement.
With the analogy between nonlinear VLSI placement and deep learning training problem, this tool is developed with deep learning toolkit for flexibility and efficiency.
The tool runs on both CPU and GPU.
Over 30X speedup over the CPU implementation (RePlAce) is achieved in global placement and legalization on ISPD 2005 contest benchmarks with a Nvidia Tesla V100 GPU.
DREAMPlace also integrates a GPU-accelerated detailed placer, ABCDPlace, which can achieve around 16X speedup on million-size benchmarks over the widely-adopted sequential placer NTUPlace3 on CPU.
DREAMPlace runs on both CPU and GPU. If it is installed on a machine without GPU, only CPU support will be enabled with multi-threading.
| Bigblue4 | Density Map | Electric Potential | Electric Field |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |

Yibo Lin, Shounak Dhar, Wuxi Li, Haoxing Ren, Brucek Khailany and David Z. Pan, "DREAMPlace: Deep Learning Toolkit-Enabled GPU Acceleration for Modern VLSI Placement", ACM/IEEE Design Automation Conference (DAC), Las Vegas, NV, Jun 2-6, 2019 (preprint) (slides)
Yibo Lin, Zixuan Jiang, Jiaqi Gu, Wuxi Li, Shounak Dhar, Haoxing Ren, Brucek Khailany and David Z. Pan, "DREAMPlace: Deep Learning Toolkit-Enabled GPU Acceleration for Modern VLSI Placement", IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (TCAD), 2020
Yibo Lin, Wuxi Li, Jiaqi Gu, Haoxing Ren, Brucek Khailany and David Z. Pan, "ABCDPlace: Accelerated Batch-based Concurrent Detailed Placement on Multi-threaded CPUs and GPUs", IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems (TCAD), 2020 (preprint)
Yibo Lin, David Z. Pan, Haoxing Ren and Brucek Khailany, "DREAMPlace 2.0: Open-Source GPU-Accelerated Global and Detailed Placement for Large-Scale VLSI Designs", China Semiconductor Technology International Conference (CSTIC), Shanghai, China, Jun, 2020 (preprint)(Invited Paper)
Jiaqi Gu, Zixuan Jiang, Yibo Lin and David Z. Pan, "DREAMPlace 3.0: Multi-Electrostatics Based Robust VLSI Placement with Region Constraints", IEEE/ACM International Conference on Computer-Aided Design (ICCAD), Nov 2-5, 2020 (preprint)
Python 3.5/3.6/3.7/3.8
Pytorch 1.6/1.7/1.8
Bison >= 3.3
CUDA 9.1 or later (Optional)
GPU architecture compatibility 6.0 or later (Optional)
Cairo (Optional)
NTUPlace3 (Optional)
To pull git submodules in the root directory
git submodule init
git submodule update
Or alternatively, pull all the submodules when cloning the repository.
git clone --recursive https://github.com/limbo018/DREAMPlace.git
Go to the root directory.
pip install -r requirements.txt
Two options are provided for building: with and without Docker.
You can use the Docker container to avoid building all the dependencies yourself.
1. Install Docker on Windows, Mac or Linux.
2. To enable the GPU features, install NVIDIA-docker; otherwise, skip this step.
3. Navigate to the repository.
4. Get the docker container with either of the following options.
- Option 1: pull from the cloud limbo018/dreamplace.
docker pull limbo018/dreamplace:cuda
- Option 2: build the container.
docker build . --file Dockerfile --tag your_name/dreamplace:cuda
5. Enter bash environment of the container. Replace limbo018 with your name if option 2 is chosen in the previous step.
Run with GPU on Linux.
docker run --gpus 1 -it -v $(pwd):/DREAMPlace limbo018/dreamplace:cuda bash
Run with GPU on Windows.
docker run --gpus 1 -it -v /dreamplace limbo018/dreamplace:cuda bash
Run without GPU on Linux.
docker run -it -v $(pwd):/DREAMPlace limbo018/dreamplace:cuda bash
Run without GPU on Windows.
docker run -it -v /dreamplace limbo018/dreamplace:cuda bash
cd /DREAMPlace. CMake is adopted as the makefile system. To build, go to the root directory.
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=your_install_path -DPYTHON_EXECUTABLE=$(which python)
make
make install
Third party submodules are automatically built except for Boost.
To clean, go to the root directory.
rm -r build
Here are the available options for CMake.
- CMAKE_INSTALL_PREFIX: installation directory
- Example cmake -DCMAKE_INSTALL_PREFIX=path/to/your/directory
- CMAKE_CUDA_FLAGS: custom string for NVCC (default -gencode=arch=compute_60,code=sm_60)
- Example cmake -DCMAKE_CUDA_FLAGS=-gencode=arch=compute_60,code=sm_60
- CMAKE_CXX_ABI: 0|1 for the value of _GLIBCXX_USE_CXX11_ABI for C++ compiler, default is 0.
- Example cmake -DCMAKE_CXX_ABI=0
- It must be consistent with the _GLIBCXX_USE_CXX11_ABI for compling all the C++ dependencies, such as Boost and PyTorch.
- PyTorch in default is compiled with _GLIBCXX_USE_CXX11_ABI=0, but in a customized PyTorch environment, it might be compiled with _GLIBCXX_USE_CXX11_ABI=1.
To get ISPD 2005 and 2015 benchmarks, run the following script from the directory.
python benchmarks/ispd2005_2015.py
Before running, make sure the benchmarks have been downloaded and the python dependency packages have been installed. Go to the install directory and run with JSON configuration file for full placement.
python dreamplace/Placer.py test/ispd2005/adaptec1.json
Test individual pytorch op with the unit tests in the root directory.
python unittest/ops/hpwl_unittest.py
Descriptions of options in JSON configuration file can be found by running the following command.
python dreamplace/Placer.py --help
The list of options as follows will be shown.
| JSON Parameter | Default | Description |
|---|---|---|
| aux_input | required for Bookshelf | input .aux file |
| lef_input | required for LEF/DEF | input LEF file |
| def_input | required for LEF/DEF | input DEF file |
| verilog_input | optional for LEF/DEF | input VERILOG file, provide circuit netlist information if it is not included in DEF file |
| gpu | 1 | enable gpu or not |
| num_bins_x | 512 | number of bins in horizontal direction |
| num_bins_y | 512 | number of bins in vertical direction |
| global_place_stages | required | global placement configurations of each stage, a dictionary of {"num_bins_x", "num_bins_y", "iteration", "learning_rate"}, learning_rate is relative to bin size |
| target_density | 0.8 | target density |
| density_weight | 1.0 | initial weight of density cost |
| gamma | 0.5 | initial coefficient for log-sum-exp and weighted-average wirelength |
| random_seed | 1000 | random seed |
| result_dir | results | result directory for output |
| scale_factor | 0.0 | scale factor to avoid numerical overflow; 0.0 means not set |
| ignore_net_degree | 100 | ignore net degree larger than some value |
| gp_noise_ratio | 0.025 | noise to initial positions for global placement |
| enable_fillers | 1 | enable filler cells |
| global_place_flag | 1 | whether use global placement |
| legalize_flag | 1 | whether use internal legalization |
| detailed_place_flag | 1 | whether use internal detailed placement |
$ claude mcp add AutoDMP \
-- python -m otcore.mcp_server <graph>