Skip to content

Commit

Permalink
Add imctk target
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Sep 16, 2024
1 parent 4104169 commit ac432a7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions default/rules/formal.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,23 @@
license_file = 'COPYING',
)

SourceLocation(
name = 'imctk',
vcs = 'git',
location = 'https://github.com/YosysHQ/imctk',
revision = 'origin/main',
license_file = 'COPYRIGHT',
)

Target(
name = 'formal',
sources = [ 'mau', 'mcy', 'scy', 'sby', 'sby-gui', 'yosys' ],
dependencies = [ 'python3', 'python3-native' ],
resources = [ 'python3' ],
patches = [ 'python3_package.sh' ],
)

Target(
name = 'imctk',
sources = [ 'imctk' ],
)
5 changes: 5 additions & 0 deletions default/scripts/imctk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd imctk
rm -rf abc-sys/codegen.sh
sed -i 's,debug = true,#debug = true,g' Cargo.toml
sed -i 's,pub const l_False,//pub const l_False,g' abc-sys/src/generated/bindings.rs
cargo install --no-track --path eqy-engine --root ${OUTPUT_DIR}${INSTALL_PREFIX} --target=${CARGO_TARGET}

0 comments on commit ac432a7

Please sign in to comment.