Skip to content

foshardware/lsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

770 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Libre Silicon Compiler

Dependencies

Build dependencies

Installation

stack install

GLPK optimizations

stack install --flag=lsc:glpk

Use the GLPK (GNU Linear Programming Kit) as backend to integer programs.

GLPK optimizations are necessary for:

  • Cell flipping

Custom setup

For any custom build (e. g. cabal-install) you will need at least GHC version 8.6.3. lsc-cabal is a fallback build system based on cabal and git submodules but may lack behind in commits.

Usage

Print usage

lsc -h

Create a detailed placement from replace

replace < gcd_nontd_test.tcl
lsc -dp -llibrary/nangate45/NangateOpenCellLibrary.lef gcd_nan45_nontd.def -odef > placed.def

Create graphics from def file

lsc -l sample/osu035.lef --output=svg sample/map9v3.def > result.svg

Set number of capabilities

lsc +RTS -N8 -RTS

Documentation

The latest haddock documentation is available on github pages.

Compile documentation from source

stack exec -- lsc-doc

Stacktraces

stack build --profile && stack exec --profile -- lsc +RTS -xc -RTS

Profiling

stack build --profile && stack exec --profile -- lsc +RTS -p -hc -RTS

Debug build

stack build --flag=lsc:debug && stack exec -- lsc

Tests

stack test

Enable concurrency tests

Pass the argument -j4 for enabling concurrency tests with 4 jobs to run simultaneously.

stack test --test-arguments -j4

Licensing

This program is available as open source under the terms of the GPL-3.0-or-later. However, some elements are being licensed under CC0-1.0. For accurate information, please check individual files.

References

Annotations:

  • 🦅 The referenced work has fundamentally inspired the implemented algorithms in the namespace
  • 🐳 The referenced work and its proposed algorithms have been fully incorporated in the namespace
  • 🐯 The referenced work is soundly applied and the implementation has evolved from the proposed algorithms

LSC.CellFlipping

  • 🐳 Boros, Hammer, Minoux, Rader (1999): Optimal cell flipping to minimize channel density in VLSI design and pseudo-Boolean optimzation doi:10.1016/S0166-218X(98)00114-0

LSC.Deque

LSC.FM

LSC.FastDP

LSC.GlobalRouting

LSC.Legalize

LSC.Polygon

LSC.SegmentTree

  • 🦅 Bentley (1977): Solutions to Klee's rectangle problems, Unpublished manuscript

LSC.SuffixTree

  • 🐳 Becher, Deymonnaz, Heiber (2013): Efficient repeat finding via suffix arrays arXiv:1304.0528

LSC.UnionFind

To do

About

Libre Silicon Compiler

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published