nl-compiler: Frontend Compiler for Safety-Net
Getting Started
Below is a minimal example to get you started:
module and_test (
a,
b,
y
);
input a;
wire a;
input b;
wire b;
output y;
wire y;
AND _0_ (
.A(a),
.B(b),
.Y(y)
);
endmodule
Save the above file to and.v.
cargo run --example roundtrip -- and.v
Also, take a look at some of the tests: