diff options
author | Alessandro Comodi <acomodi@antmicro.com> | 2021-03-12 13:53:09 +0100 |
---|---|---|
committer | Alessandro Comodi <acomodi@antmicro.com> | 2021-03-16 15:39:01 +0100 |
commit | 77ffdd7fd4e90e0da43e81b1f5e021b08ee64a9f (patch) | |
tree | 143ce61b476d33d2b0ddd63d5beb872f5d077949 /fpga_interchange/examples/tests/counter/run.tcl | |
parent | 6a08b0d733e928e5e7c180dee21829f7db2d9ccf (diff) | |
download | nextpnr-77ffdd7fd4e90e0da43e81b1f5e021b08ee64a9f.tar.gz nextpnr-77ffdd7fd4e90e0da43e81b1f5e021b08ee64a9f.tar.bz2 nextpnr-77ffdd7fd4e90e0da43e81b1f5e021b08ee64a9f.zip |
fpga_interchange: tests: add cmake functions
Also move all tests in a tests directory
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange/examples/tests/counter/run.tcl')
-rw-r--r-- | fpga_interchange/examples/tests/counter/run.tcl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fpga_interchange/examples/tests/counter/run.tcl b/fpga_interchange/examples/tests/counter/run.tcl new file mode 100644 index 00000000..7cd9f10f --- /dev/null +++ b/fpga_interchange/examples/tests/counter/run.tcl @@ -0,0 +1,15 @@ +yosys -import + +read_verilog $::env(SOURCES) + +synth_xilinx -nolutram -nowidelut -nosrl -nocarry -nodsp +techmap -map ../remap.v + +# opt_expr -undriven makes sure all nets are driven, if only by the $undef +# net. +opt_expr -undriven +opt_clean + +setundef -zero -params + +write_json $::env(OUT_JSON) |