$ vet apply --no-project -f design/design.f --top soc_top -s scripts/swap_cell.py --dry-run
--- a/rtl/soc_top.sv
+++ b/rtl/soc_top.sv
@@ -1,4 +1,5 @@
 // Generated by a generator. Do not edit.
+// Modified by hdl-vet; scripts: swap_cell.py sha256:7eea7738a5a3

 module soc_top (
   input  logic       clk_i,
@@ -11,11 +12,12 @@
   logic       rst_sync_n;
   logic [1:0] irq;

-  rst_sync #(.STAGES(2)) u_rst_sync (
-    .clk_i  (clk_i),
-    .rst_ni (rst_ni),
-    .test_i (1'b0),
-    .rst_no (rst_sync_n)
+  tech_rst_sync #(.DEPTH(2)) u_rst_sync (
+    .CK  (clk_i),
+    .RN (rst_ni),
+    .SE (1'b0),
+    .Q (rst_sync_n),
+    .SO()
   );

   periph_wrap u_periph (
added hdl_vet_added/tech_rst_sync.sv
2 applied, 0 skipped
$ vet apply --no-project -f design/design.f --top soc_top -s scripts/swap_cell_drop.py -o out/swap
wrote out/swap
2 applied, 0 skipped
changed rtl/soc_top.sv
added hdl_vet_added/tech_rst_sync.sv
$ cat out/swap/design.f
rtl/rst_sync.sv
rtl/timer.sv
rtl/periph_wrap.sv
rtl/soc_top.sv
hdl_vet_added/tech_rst_sync.sv
$ vet apply --no-project -f design/design.f --top soc_top -s scripts/swap_wrong.py --dry-run
vet: script swap_wrong.py: replace_module soc_top.u_rst_sync: port 'SO' of module 'tech_rst_sync' is not accounted for: connect it with connect= (an output or inout may be listed in unconnected=); override 'STAGES' is not accounted for: module 'tech_rst_sync' has no overridable parameter 'STAGES' (rename it with params= or remove it with drop_params=)
[exit status 2]
$ vet apply --no-project -f design/design.f --top soc_top -s scripts/add_cell.py --dry-run
hdl-vet sign-off: FAILED
  failed check: add_file tech_rst_sync.sv: none of its modules is instantiated
[exit status 1]
