From f84fd46a17f4fd1f3c96f97e8f55aa4f96676c8e Mon Sep 17 00:00:00 2001 From: AdvaySingh1 Date: Wed, 25 Mar 2026 15:06:58 -0700 Subject: [PATCH] Added test cases for clkmerge and cone_partition passes --- tests/silimate/clkmerge.ys | 316 +++++++++++++++ tests/silimate/cone_partition.ys | 363 ++++++++++++++++++ tests/silimate/cone_partition_clk_mismatch.ys | 23 ++ .../silimate/cone_partition_port_mismatch.ys | 17 + 4 files changed, 719 insertions(+) create mode 100644 tests/silimate/clkmerge.ys create mode 100644 tests/silimate/cone_partition.ys create mode 100644 tests/silimate/cone_partition_clk_mismatch.ys create mode 100644 tests/silimate/cone_partition_port_mismatch.ys diff --git a/tests/silimate/clkmerge.ys b/tests/silimate/clkmerge.ys new file mode 100644 index 000000000..e3c7a52c8 --- /dev/null +++ b/tests/silimate/clkmerge.ys @@ -0,0 +1,316 @@ +# ============================================================================= +# Test 1: Two coarse-grain $dff on different clocks, merged via -target +# After merge + simplemap, verify all become $_DFF_P_ (posedge) +# ============================================================================= +log -header "Two coarse-grain DFFs on different clocks" +log -push +design -reset +read_verilog -icells <