-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
120 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "helm" | ||
description = "HELM: Homomorphic Evaluation with Lookup table Memoization" | ||
description = "HELM: Homomorphic Evaluation with EDA-driven Logic Minimization" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["Dimitris Mouris <[email protected]>", "Charles Gouert <[email protected]>"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,16 +15,32 @@ git clone --recurse-submodules [email protected]:TrustworthyComputing/helm.git | |
``` | ||
|
||
### Build & Run | ||
|
||
Compile and run the tests: | ||
```shell | ||
cargo build --release | ||
cargo test --release | ||
``` | ||
|
||
HELM has two modes: "gates"-mode and "LUTs"-mode. HELM automatically detects if | ||
a LUTs or a gates circuit has been provided as input. Below are two examples: | ||
|
||
Example in "gates"-mode: | ||
```shell | ||
cargo run --bin helm --release -- \ | ||
--input ./hdl-benchmarks/processed-netlists/s27.v | ||
cargo run --bin helm --release -- \ | ||
--input ./hdl-benchmarks/processed-netlists/2-bit-adder.v \ | ||
--wires ./hdl-benchmarks/test-cases/2-bit-adder.inputs.csv | ||
``` | ||
|
||
Example in "LUTs"-mode: | ||
```shell | ||
cargo run --bin helm --release -- \ | ||
--input ./hdl-benchmarks/processed-netlists/8-bit-adder-lut-3-1.v \ | ||
--wires hdl-benchmarks/test-cases/8-bit-adder.inputs.csv | ||
``` | ||
|
||
### Example of an ISCAS'85 circuit | ||
If a circuit is in the [netlists](./hdl-benchmarks/netlists/) directory but not | ||
in the [processed-netlists](./hdl-benchmarks/processed-netlists/), run the | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.