- Install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install
1.50.0
rust version
rustup toolchain install 1.50.0
rustup override set 1.50.0
- 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)
./target/release/rt --from ir --to asm examples/ir/add.ir
- Compile IR program to machine IR (xir)
./target/release/rt --from ir --to xir examples/ir/add.ir
- Compile IR program to structural Verilog (struct)
./target/release/rt --from ir --to struct examples/ir/add.ir
- Compile IR program to behavioral Verilog (behav)
./target/release/rt --from ir --to behav examples/ir/add.ir