- Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Run unit tests
cargo test --all
- Build, binaries are located in
target/release
cargo build --release
- Optional, install locally (binaries are normally located in
~/.cargo/bin
)cargo install --bin rt --bin ro --path .
- Compile IR program to assembly (asm)
rt --from ir --to asm examples/ir/add.ir
- Compile IR program to machine IR (xir)
rt --from ir --to xir examples/ir/add.ir
- Compile IR program to structural Verilog (struct)
rt --from ir --to struct examples/ir/add.ir
- Compile IR program to behavioral Verilog (behav)
rt --from ir --to behav examples/ir/add.ir