From d87b1a23238599326d43d27b54ce846ef1b4e07e Mon Sep 17 00:00:00 2001 From: Griffin Berlstein Date: Tue, 5 Nov 2024 18:25:13 +0000 Subject: [PATCH] [Cider | Fud2] Rename fud2 stuff to reduce confusion (#2334) Quick set of renaming to reduce the confusion with the `flags` stuff which should make it clear where things belong --- fud2/scripts/calyx.rhai | 6 +++--- fud2/scripts/cider.rhai | 2 +- .../snapshots/tests__test@calyx_through_cider_to_dat.snap | 8 ++++---- ...ests__test@calyx_through_firrtl_to_verilog-refmem.snap | 6 +++--- .../tests__test@calyx_through_icarus_to_dat.snap | 6 +++--- .../tests__test@calyx_through_icarus_to_vcd.snap | 6 +++--- .../tests__test@calyx_through_verilator_to_dat.snap | 6 +++--- .../tests__test@calyx_through_verilator_to_vcd.snap | 6 +++--- .../tests__test@calyx_through_xrt-trace_to_vcd.snap | 6 +++--- .../snapshots/tests__test@calyx_through_xrt_to_dat.snap | 6 +++--- .../tests/snapshots/tests__test@calyx_to_cider-debug.snap | 8 ++++---- fud2/tests/snapshots/tests__test@calyx_to_verilog.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_axi-wrapped.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_calyx-noverify.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_calyx-to-cider.snap | 8 ++++---- .../snapshots/tests__test@plan_calyx-to-cocotb-axi.snap | 6 +++--- .../tests/snapshots/tests__test@plan_calyx-to-firrtl.snap | 6 +++--- .../snapshots/tests__test@plan_calyx-to-verilog.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_calyx-to-yxi.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_cider.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_debug.snap | 6 +++--- .../tests__test@plan_firrtl-with-primitives.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_primitive-uses.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_profiler.snap | 6 +++--- fud2/tests/snapshots/tests__test@plan_xo.snap | 6 +++--- interp/tests/runt.toml | 6 +++--- 26 files changed, 79 insertions(+), 79 deletions(-) diff --git a/fud2/scripts/calyx.rhai b/fud2/scripts/calyx.rhai index a9e9a9de3..7a65961c2 100644 --- a/fud2/scripts/calyx.rhai +++ b/fud2/scripts/calyx.rhai @@ -12,10 +12,10 @@ fn calyx_setup(e) { e.rule("calyx", "$calyx-exe -l $calyx-lib-path -b $backend $args $in > $out"); e.rule("calyx-pass", "$calyx-exe -l $calyx-lib-path -p $pass $args $in > $out"); - e.config_var_or("flags", "calyx.flags", "-p none"); + e.config_var_or("cider-calyx-passes", "cider.calyx-passes", "-p none"); e.rule( - "calyx-with-flags", - "$calyx-exe -l $calyx-lib-path $flags $args $in > $out", + "calyx-cider", + "$calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out", ); } diff --git a/fud2/scripts/cider.rhai b/fud2/scripts/cider.rhai index ddce44a5a..328afc9bc 100644 --- a/fud2/scripts/cider.rhai +++ b/fud2/scripts/cider.rhai @@ -65,7 +65,7 @@ op( |e, input, output| { e.build_cmd( [output], - "calyx-with-flags", + "calyx-cider", [input], [], ); diff --git a/fud2/tests/snapshots/tests__test@calyx_through_cider_to_dat.snap b/fud2/tests/snapshots/tests__test@calyx_through_cider_to_dat.snap index 613d325bb..df20b4899 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_cider_to_dat.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_cider_to_dat.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out cider-exe = $calyx-base/target/debug/cider cider-converter = $calyx-base/target/debug/cider-data-converter @@ -35,7 +35,7 @@ rule dump-to-interp command = $cider-converter --to cider $converter-flags $in > $out build data.dump: dump-to-interp $sim_data | $cider-converter -build pseudo_cider: calyx-with-flags _from_stdin_calyx.futil +build pseudo_cider: calyx-cider _from_stdin_calyx.futil build interp_out.dump: run-cider pseudo_cider | data.dump build _to_stdout_dat.json: interp-to-dump interp_out.dump | $cider-converter diff --git a/fud2/tests/snapshots/tests__test@calyx_through_firrtl_to_verilog-refmem.snap b/fud2/tests/snapshots/tests__test@calyx_through_firrtl_to_verilog-refmem.snap index cee7375ba..f20b813bb 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_firrtl_to_verilog-refmem.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_firrtl_to_verilog-refmem.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out yxi = $calyx-base/target/debug/yxi rule yxi diff --git a/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_dat.snap b/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_dat.snap index 6418275a2..d57f28a64 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_dat.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_dat.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out python = python3 build json-dat.py: get-rsrc diff --git a/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_vcd.snap b/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_vcd.snap index 1fc8ab77a..a8977d92f 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_vcd.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_icarus_to_vcd.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out python = python3 build json-dat.py: get-rsrc diff --git a/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_dat.snap b/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_dat.snap index 672c0039f..471b93e34 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_dat.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_dat.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out python = python3 build json-dat.py: get-rsrc diff --git a/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_vcd.snap b/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_vcd.snap index d8d24f683..9e87d685f 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_vcd.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_verilator_to_vcd.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out python = python3 build json-dat.py: get-rsrc diff --git a/fud2/tests/snapshots/tests__test@calyx_through_xrt-trace_to_vcd.snap b/fud2/tests/snapshots/tests__test@calyx_through_xrt-trace_to_vcd.snap index b21f872b0..843d1abbc 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_xrt-trace_to_vcd.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_xrt-trace_to_vcd.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out vivado-dir = /test/xilinx/vivado vitis-dir = /test/xilinx/vitis diff --git a/fud2/tests/snapshots/tests__test@calyx_through_xrt_to_dat.snap b/fud2/tests/snapshots/tests__test@calyx_through_xrt_to_dat.snap index d805775a1..24879e905 100644 --- a/fud2/tests/snapshots/tests__test@calyx_through_xrt_to_dat.snap +++ b/fud2/tests/snapshots/tests__test@calyx_through_xrt_to_dat.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out vivado-dir = /test/xilinx/vivado vitis-dir = /test/xilinx/vitis diff --git a/fud2/tests/snapshots/tests__test@calyx_to_cider-debug.snap b/fud2/tests/snapshots/tests__test@calyx_to_cider-debug.snap index 310c3c58d..2cbeac86a 100644 --- a/fud2/tests/snapshots/tests__test@calyx_to_cider-debug.snap +++ b/fud2/tests/snapshots/tests__test@calyx_to_cider-debug.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out build tb.sv: get-rsrc @@ -37,7 +37,7 @@ rule dump-to-interp command = $cider-converter --to cider $converter-flags $in > $out build data.dump: dump-to-interp $sim_data | $cider-converter -build pseudo_cider: calyx-with-flags _from_stdin_calyx.futil +build pseudo_cider: calyx-cider _from_stdin_calyx.futil build _to_stdout_cider-debug: run-cider-debug pseudo_cider | data.dump default _to_stdout_cider-debug diff --git a/fud2/tests/snapshots/tests__test@calyx_to_verilog.snap b/fud2/tests/snapshots/tests__test@calyx_to_verilog.snap index 551316582..005a2be78 100644 --- a/fud2/tests/snapshots/tests__test@calyx_to_verilog.snap +++ b/fud2/tests/snapshots/tests__test@calyx_to_verilog.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out build _to_stdout_verilog.sv: calyx _from_stdin_calyx.futil backend = verilog diff --git a/fud2/tests/snapshots/tests__test@plan_axi-wrapped.snap b/fud2/tests/snapshots/tests__test@plan_axi-wrapped.snap index 49c51234d..f97fff8a9 100644 --- a/fud2/tests/snapshots/tests__test@plan_axi-wrapped.snap +++ b/fud2/tests/snapshots/tests__test@plan_axi-wrapped.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out yxi = $calyx-base/target/debug/yxi rule yxi diff --git a/fud2/tests/snapshots/tests__test@plan_calyx-noverify.snap b/fud2/tests/snapshots/tests__test@plan_calyx-noverify.snap index e325b5cca..cfa30dd77 100644 --- a/fud2/tests/snapshots/tests__test@plan_calyx-noverify.snap +++ b/fud2/tests/snapshots/tests__test@plan_calyx-noverify.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out build /output.ext: calyx /input.ext backend = verilog diff --git a/fud2/tests/snapshots/tests__test@plan_calyx-to-cider.snap b/fud2/tests/snapshots/tests__test@plan_calyx-to-cider.snap index 8f45c6c56..af5dfcfaf 100644 --- a/fud2/tests/snapshots/tests__test@plan_calyx-to-cider.snap +++ b/fud2/tests/snapshots/tests__test@plan_calyx-to-cider.snap @@ -14,10 +14,10 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out -build /output.ext: calyx-with-flags /input.ext +build /output.ext: calyx-cider /input.ext default /output.ext diff --git a/fud2/tests/snapshots/tests__test@plan_calyx-to-cocotb-axi.snap b/fud2/tests/snapshots/tests__test@plan_calyx-to-cocotb-axi.snap index e6912cef5..6b4775db0 100644 --- a/fud2/tests/snapshots/tests__test@plan_calyx-to-cocotb-axi.snap +++ b/fud2/tests/snapshots/tests__test@plan_calyx-to-cocotb-axi.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out cocotb-makefile-dir = $calyx-base/yxi/axi-calyx/cocotb sim_data = /test/data.json diff --git a/fud2/tests/snapshots/tests__test@plan_calyx-to-firrtl.snap b/fud2/tests/snapshots/tests__test@plan_calyx-to-firrtl.snap index aa4dec554..46d9e6cf9 100644 --- a/fud2/tests/snapshots/tests__test@plan_calyx-to-firrtl.snap +++ b/fud2/tests/snapshots/tests__test@plan_calyx-to-firrtl.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out yxi = $calyx-base/target/debug/yxi rule yxi diff --git a/fud2/tests/snapshots/tests__test@plan_calyx-to-verilog.snap b/fud2/tests/snapshots/tests__test@plan_calyx-to-verilog.snap index 0c65b25fc..e2a406909 100644 --- a/fud2/tests/snapshots/tests__test@plan_calyx-to-verilog.snap +++ b/fud2/tests/snapshots/tests__test@plan_calyx-to-verilog.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out build /output.ext: calyx /input.ext backend = verilog diff --git a/fud2/tests/snapshots/tests__test@plan_calyx-to-yxi.snap b/fud2/tests/snapshots/tests__test@plan_calyx-to-yxi.snap index 0d7ff1a59..5c7b9a255 100644 --- a/fud2/tests/snapshots/tests__test@plan_calyx-to-yxi.snap +++ b/fud2/tests/snapshots/tests__test@plan_calyx-to-yxi.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out yxi = $calyx-base/target/debug/yxi rule yxi diff --git a/fud2/tests/snapshots/tests__test@plan_cider.snap b/fud2/tests/snapshots/tests__test@plan_cider.snap index c739d8aeb..56b2aee9d 100644 --- a/fud2/tests/snapshots/tests__test@plan_cider.snap +++ b/fud2/tests/snapshots/tests__test@plan_cider.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out cider-exe = $calyx-base/target/debug/cider cider-converter = $calyx-base/target/debug/cider-data-converter diff --git a/fud2/tests/snapshots/tests__test@plan_debug.snap b/fud2/tests/snapshots/tests__test@plan_debug.snap index 6c1bd3611..e75b48196 100644 --- a/fud2/tests/snapshots/tests__test@plan_debug.snap +++ b/fud2/tests/snapshots/tests__test@plan_debug.snap @@ -16,9 +16,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out cider-exe = $calyx-base/target/debug/cider cider-converter = $calyx-base/target/debug/cider-data-converter diff --git a/fud2/tests/snapshots/tests__test@plan_firrtl-with-primitives.snap b/fud2/tests/snapshots/tests__test@plan_firrtl-with-primitives.snap index 155a828cf..763eed3c5 100644 --- a/fud2/tests/snapshots/tests__test@plan_firrtl-with-primitives.snap +++ b/fud2/tests/snapshots/tests__test@plan_firrtl-with-primitives.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out gen-firrtl-primitives-script = $calyx-base/tools/firrtl/generate-firrtl-with-primitives.py rule generate-firrtl-with-primitives diff --git a/fud2/tests/snapshots/tests__test@plan_primitive-uses.snap b/fud2/tests/snapshots/tests__test@plan_primitive-uses.snap index 5242f4ec0..035ef64fb 100644 --- a/fud2/tests/snapshots/tests__test@plan_primitive-uses.snap +++ b/fud2/tests/snapshots/tests__test@plan_primitive-uses.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out build /output.ext: calyx /input.ext backend = primitive-uses diff --git a/fud2/tests/snapshots/tests__test@plan_profiler.snap b/fud2/tests/snapshots/tests__test@plan_profiler.snap index 53ecb7ea7..c1b862f53 100644 --- a/fud2/tests/snapshots/tests__test@plan_profiler.snap +++ b/fud2/tests/snapshots/tests__test@plan_profiler.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out cells = cells.json tdcc-json = fsm.json diff --git a/fud2/tests/snapshots/tests__test@plan_xo.snap b/fud2/tests/snapshots/tests__test@plan_xo.snap index 840133a97..2859c6ab6 100644 --- a/fud2/tests/snapshots/tests__test@plan_xo.snap +++ b/fud2/tests/snapshots/tests__test@plan_xo.snap @@ -14,9 +14,9 @@ rule calyx command = $calyx-exe -l $calyx-lib-path -b $backend $args $in > $out rule calyx-pass command = $calyx-exe -l $calyx-lib-path -p $pass $args $in > $out -flags = -p none -rule calyx-with-flags - command = $calyx-exe -l $calyx-lib-path $flags $args $in > $out +cider-calyx-passes = -p none +rule calyx-cider + command = $calyx-exe -l $calyx-lib-path $cider-calyx-passes $args $in > $out vivado-dir = /test/xilinx/vivado vitis-dir = /test/xilinx/vitis diff --git a/interp/tests/runt.toml b/interp/tests/runt.toml index d76444279..e4e1922d3 100644 --- a/interp/tests/runt.toml +++ b/interp/tests/runt.toml @@ -91,7 +91,7 @@ timeout = 10 name = "invoke compiled" paths = ["control/invoke/*.futil"] cmd = """ -fud2 {} --from calyx --to dat --through cider -s calyx.flags=" -p compile-invoke" -s sim.data={}.data -s calyx.args="--log off" | jq --sort-keys +fud2 {} --from calyx --to dat --through cider -s cider.calyx-passes=" -p compile-invoke" -s sim.data={}.data -s calyx.args="--log off" | jq --sort-keys """ [[tests]] @@ -138,7 +138,7 @@ fud2 --from calyx --to dat \ --through cider \ -s sim.data={}.data \ -s calyx.args="--log off" \ - -s calyx.flags="-p all" \ + -s cider.calyx-passes="-p all" \ -s cider.flags="--no-verify" \ {} | jq --sort-keys """ @@ -164,7 +164,7 @@ fud2 --from calyx --to dat \ --through cider \ -s sim.data={}.data \ -s calyx.args="--log off" \ - -s calyx.flags=" -p compile-invoke" \ + -s cider.calyx-passes=" -p compile-invoke" \ {} | jq --sort-keys """