Commit Graph

168 Commits

Author SHA1 Message Date
Jaehyun Kim 55259b894b test: Add `save_ok` script
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-27 11:12:27 +09:00
Jaehyun Kim 9bbac53157 test: Make ctest run C++ unit tests
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-27 09:51:10 +09:00
Jaehyun Kim b98c2d0bcc test: harden module Tcl coverage tests
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-24 14:08:56 +09:00
Jaehyun Kim 8adbcc0d6d Merge upstream STA update and adapt all tests to new API
Major upstream refactoring: Corner→Scene, Mode architecture, warning
format change (Warning ID:), command renames, and many API signature
changes. Adapted all C++ test files and TCL test scripts/expected
output files to pass with the new API. 6159/6159 tests pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-23 23:05:29 +09:00
Jaehyun Kim 7173c10cc1 test: strengthen assertions, add sorted SDC diff, and clean up tests
- Split oversized test files to stay under 5,000 lines per file:
  TestSdc.cc → TestSdcClasses.cc, TestSdcStaInit.cc, TestSdcStaDesign.cc
  TestSearchStaDesign.cc → TestSearchStaDesign.cc, TestSearchStaDesignB.cc
  TestLibertyStaBasics.cc → TestLibertyStaBasics.cc, TestLibertyStaBasicsB.cc
  TestNetwork.cc → TestNetwork.cc, TestNetworkB.cc
- Replace ~200+ (void) casts with proper EXPECT_* assertions across all
  C++ test files (dcalc, liberty, network, sdc, search, power, spice, util)
- Remove ~55 SUCCEED() and EXPECT_TRUE(true) no-op assertions
- Fix 6 load-only Tcl tests by adding diff_files verification with
  22 new .sdcok golden reference files
- Delete 7 orphan .ok files with no matching .tcl tests
- Add how_to_write_good_tests.md and TODO6.md documenting test quality rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-23 17:36:45 +09:00
Jaehyun Kim b6d598a119 test: strengthen assertions, add sorted SDC diff, and clean up tests
- Add diff_files_sorted to test/helpers.tcl for hash-order-independent
  SDC comparison (fixes non-deterministic write_sdc output ordering)
- Use diff_files_sorted in sdc_derate_disable_deep and
  sdc_port_delay_advanced tests
- Remove stale coverage percentages from test comments (Comment 1)
- Remove unnecessary catch blocks in search property tests (Comment 3)
- Strengthen load-only tests with actual data verification (Comment 8)
- Remove orphan .ok files for deleted monolithic tests (Comment 9)
- Add golden .sdcok/.libok/.vok/.sdfok files for SDC/liberty/verilog
  write-and-diff tests
- Add -B (clean rebuild) option to make_coverage_report.sh
- Replace (void) casts and EXPECT_TRUE(true) with real assertions in
  TestSdc.cc and TestVerilog.cc

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-23 11:50:23 +09:00
Jaehyun Kim e57c8043cd test: Apply review feedback - part3
Remove unnecessary catch blocks from Tcl test files across all modules,
add report_checks after each set_wire_load_model in liberty_wireload,
rewrite liberty_sky130_corners for actual multi-corner timing analysis
with define_corners, and expand C++ tests (TestSearchIncremental 8→36,
TestPower 71→96, TestSpice 98→126 tests).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 13:05:07 +09:00
Jaehyun Kim 547737f71e test: Apply review feedback - part2
- Remove stale line-number coverage comments (# Targets: line NNN, hit=0)
- Remove useless file-existence checks from verilog/sdf tests
- Delete 21 orphaned dcalc Tcl tests (C++ tests already cover them)
- Rename liberty_ccsn_ecsm -> liberty_ccsn (no ECSM libs available)
- Fix liberty_sky130_corners to use define_corners/-corner for real multi-corner testing
- Add report_checks per wireload model in liberty_wireload
- Fix test/regression to work from test/ directory (label mismatch)
- Refactor all module CMakeLists.txt with sta_module_tests() macro

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 01:13:42 +09:00
Jaehyun Kim 6799b1909a test: Apply review feedback - part1
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-19 23:30:23 +09:00
Martin Povišer 0d34825700 Merge remote-tracking branch 'parallax/rel_3.0' into pull-rel_3.0 2026-02-19 11:31:08 +01:00
Jaehyun Kim b77779f7a6 test: Refactoring. Standardize Google Test naming conventions by removing `R#_` prefixes, improve temporary file creation with `mkstemp`, etc
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-13 20:36:42 +09:00
Jaehyun Kim d6c09372ba test: Initial upload
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-02-13 19:19:09 +09:00
James Cherry 4c157f46ee InternalPower::related_pg_port string->port
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-11 08:33:09 -07:00
James Cherry 4823a4e1e0 Merge branch 'master' into rel_3.0
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-11 08:11:44 -07:00
James Cherry f08cdd165a Power::findLeakagePower
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-11 08:03:34 -07:00
Matt Liberty e872c55bfe Merge remote-tracking branch 'parallax/master' 2026-02-05 04:12:23 +00:00
James Cherry 7cb71fe766 liberty memory management
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-04 18:33:32 -07:00
James Cherry 33e480a6c1 liberty memory management
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-04 18:33:04 -07:00
James Cherry c7f4bb3bb3 Merge branch 'master' into rel_3.0
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-04 17:36:33 -07:00
James Cherry cde32a1572 leakage power well pg pin resolves #377
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-02-04 16:50:28 -07:00
Matt Liberty ec62b3a5b9 Merge remote-tracking branch 'parallax/master' 2026-02-04 07:51:04 +00:00
James Cherry 98bffa3b95 Merge branch 'master' into rel_3.0 2026-01-29 19:47:56 -07:00
James Cherry 0c6c3d3d35 leakage power if uncond, ignore cell power resolves #373
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-29 19:44:18 -07:00
James Cherry b8c6b56736 Merge branch 'master' into rel_3.0
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-28 12:18:14 -07:00
Matt Liberty 087793e8a0 Merge remote-tracking branch 'parallax/master' 2026-01-28 19:13:58 +00:00
James Cherry 25ea7a3795 network edits invalidate power resolves #371
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-28 12:06:40 -07:00
James Cherry 24f9ee3f20 Merge branch 'master' into rel_3.0 2026-01-15 15:01:40 -07:00
James Cherry 0429ac324b rm dbg print
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-15 15:00:48 -07:00
James Cherry 5314489195 rebase
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-13 09:43:13 -07:00
James Cherry d42b821c00 rel 3.0
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-13 09:36:45 -07:00
James Cherry b58ff962d6 msg id conflict
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-11 15:01:04 -08:00
Matt Liberty 94dc4a04c6 Merge remote-tracking branch 'parallax/master' 2026-01-10 18:17:05 +00:00
James Cherry 3618838be0 read_vcd missing $dumpvars resolves #360
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-01-10 09:10:42 -08:00
Matt Liberty 4966240d28 Merge remote-tracking branch 'parallax/master' 2026-01-09 18:28:40 +00:00
Mike Inouye 128ea3cf28
Use Map with a deterministic instance power iterator (#359)
* Use deterministic instance power iterator

* Use deterministic instance power iterator

* Use std::map instead of sta::Map
2026-01-09 09:49:00 -08:00
James Cherry 4afa443892 rm PR #342 turd
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-12-20 11:45:48 -07:00
nataliakokoromyti 56e4bd8ce1
Report power as JSON (#342)
* fix power_json.tcl

* get rid of the if/else statements throughout
2025-12-20 08:13:15 -08:00
James Cherry 1bf9426e96 power activity propagation thru reg/latch resolves #350
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-12-20 09:11:41 -07:00
James Cherry d0f5a962c8 power debug
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-12-19 09:40:16 -07:00
James Cherry 8b8b86bb66 fix damage from pr #348
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-12-04 19:04:57 -07:00
Stan Lee 85b790ce45
Large bus width bug with read_vcd (#348)
* a

* Revert "a"

This reverts commit 2717585799dc829618bc523a4b1525df2a298cf1.

* bus issue

* reverse string to match vcd bits

* requested changes

* clearer

* this makes more sense

* revert

* comment

* add test case
2025-12-04 17:04:23 -08:00
James Cherry aa3088885f vcd missing $dump -> nan activites resolves #346
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-12-02 18:08:00 -08:00
Matt Liberty eb8ab089df Merge remote-tracking branch 'parallax/master' 2025-11-25 16:53:40 +00:00
James Cherry 002c4c41d2 power cell seq has precedence over test_cell resolves #331
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-11-21 07:46:05 -07:00
Matt Liberty 581364982d Merge remote-tracking branch 'upstream/master'
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2025-11-19 19:40:52 +00:00
James Cherry 5bf832c1b6 set_case_analysis invalidates power resolves #332
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-11-19 10:49:43 -07:00
James Cherry 10511dee01 set activity invalidates inst power resolves #336
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-11-18 18:55:56 -07:00
Matt Liberty 7b4cea532b Merge remote-tracking branch 'upstream/master' 2025-11-13 03:32:56 +00:00
James Cherry 771050b0de cache instance power results
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-11-09 17:15:05 -07:00
James Cherry 8287aec5f6 Verilog make pins for liberty pg_pins resolves #326
commit b4a89c93965c49a8685fd41cb6aee10635d7a7f3
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Nov 7 11:48:10 2025 -0700

    pg_ -> PwrGnd

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

commit 12ddba4bf220cec8459c15e483a871b13e507bf2
Author: James Cherry <cherry@parallaxsw.com>
Date:   Fri Nov 7 08:56:02 2025 -0700

    pg_port

    Signed-off-by: James Cherry <cherry@parallaxsw.com>

Signed-off-by: James Cherry <cherry@parallaxsw.com>
2025-11-07 11:55:43 -07:00