Commit Graph

2362 Commits

Author SHA1 Message Date
Jaehyun Kim 43bca8d224 Merge remote-tracking branch 'opensta/master' into secure-sta-test-by-opus
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-21 18:54:37 +09:00
James Cherry d90bf7d93b rename Report virtuals to warnMsg etc
This reverts commit 2ed1c2c06b.

Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-20 10:14:57 -07:00
James Cherry 2ed1c2c06b report json
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-20 09:11:39 -07:00
James Cherry 07c7eeb624 Report::warn etc virtuals
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-20 09:05:07 -07:00
Jaehyun Kim 9b7c99de85 test: fix StaTclInterpAccess failure in Release builds
Sta::tcl_interp_ is not initialized in the constructor, so
tclInterp() returns garbage before setTclInterp() is called.
The assertion `before == nullptr` fails in Release builds where
memory is not zero-initialized.

Remove the read of uninitialized tcl_interp_ and the assertion.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-20 23:37:35 +09:00
Jaehyun Kim 57e264f252 test: remove tests that pass nullptr Pin to PinIdHash-based maps
PinIdHash::operator()(nullptr) calls network_->id(nullptr) which
dereferences null, causing segfault in CI environments.

Removed 3 tests:
- SdcInitTest.SdcIsLeafPinNonGeneratedClockNull
- StaInitTest.IsClockSrcNoDesign
- StaInitTest.StaIsClockSrcNoDesign2

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-20 23:11:25 +09:00
Jaehyun Kim 0364faddd7 fix regression failures after master merge
- Remove deprecated report_net -connections/-verbose flags from tests
  (removed upstream in 7668e43d)
- Regolden numerical precision diffs in parasitics and util tests

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-20 22:15:51 +09:00
Jaehyun Kim 992a1dcec5 Merge branch 'master' of https://github.com/The-OpenROAD-Project-private/OpenSTA into secure-sta-test-by-opus
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-20 21:56:12 +09:00
Matt Liberty 2e6dd04837
Merge pull request #313 from The-OpenROAD-Project-staging/sta_fix_clktreedelay_crash
clkTreeDelay to check arc without assuming it exists
2026-03-20 06:16:46 +00:00
dsengupta0628 2e0b35c4b2 regolden regression- expected original developer's path- updated to remove
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
2026-03-19 17:47:07 +00:00
dsengupta0628 8e45eff4b9 clkTreeDelay to check arc without assuming it exists
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
2026-03-19 16:54:09 +00:00
James Cherry 73c2cca24c delayAsString
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-18 16:33:15 -07:00
James Cherry 0b491ce190 Delay float coercion for non-ssta applications
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-18 16:12:04 -07:00
James Cherry 464bc3ae4f Report use string instead of string_view
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-18 13:01:05 -07:00
James Cherry 90df0cfea5 LibertyScanner includes
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-18 12:15:57 -07:00
Vitor Bandeira 69e11bbd0d
Merge pull request #300 from The-OpenROAD-Project-staging/secure-sta-test-suite
test: Add test infrastructure and sample test cases
2026-03-18 08:54:06 -03:00
Vitor Bandeira 84c3e60c25 ci: add gtest as dep for gha
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
2026-03-18 08:40:16 -03:00
Matt Liberty 0db70ed7b2
Merge pull request #311 from The-OpenROAD-Project-staging/sta_update_latest_upstream_master
Sta update latest upstream master
2026-03-17 15:10:13 +00:00
James Cherry 61b2a4b2c3 indent
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-16 16:29:10 -07:00
James Cherry 5a1b4cb74b sta::format
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-16 15:01:38 -07:00
James Cherry 134b547501 use std::format squash 2026-03-16 15:01:38 -07:00
James Cherry 5fbd2a18b5 Graph::slew/arcDelay rm static
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-16 14:53:02 -07:00
dsengupta0628 d213f0fa71 Merge remote-tracking branch 'upstream/master' 2026-03-16 17:50:53 +00:00
Jaehyun Kim eea333c4bf Merge branch 'master' of https://github.com/The-OpenROAD-Project-private/OpenSTA into secure-sta-test-suite
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-16 12:20:36 +09:00
James Cherry fbd171019a PathEnd::copy use copy constructors
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-15 14:29:58 -07:00
James Cherry 464d4047ad PathGroup revert f1b33edd9
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-15 08:33:49 -07:00
James Cherry d6e7b4256c lvf squish
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-13 14:06:35 -07:00
James Cherry 0a5b95a523 CcsCeffDelayCalc::loadDelaySlew
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-13 10:19:07 -07:00
Matt Liberty a93b51ec33
Merge pull request #310 from The-OpenROAD-Project-staging/sta_necessary_changes_before_mega_merge
Changes to bring back warning 1241 and fix lumpedCapDelayCalc
2026-03-13 03:05:47 +00:00
dsengupta0628 83e1f9b77f Changes to bring back warning 1241 and fix lumpedCapDelayCalc- both commits also in parallax/osta
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
2026-03-13 00:19:07 +00:00
James Cherry 818596f25a LumpedCapDelayCalc::makeResult resolves #403
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-12 15:53:10 -07:00
James Cherry 00ee6a1956 liberty max_transition warning resolves #403
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-11 11:58:58 -07:00
James Cherry 0703d8ef40 README
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-11 08:22:26 -07:00
Jaehyun Kim a54a3a4b17 Enable search report field order tests
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 18:25:17 +09:00
Jaehyun Kim a4419fb7dd Enable disabled liberty tests and stabilize clock groups regression
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 18:24:39 +09:00
Jaehyun Kim 2d2a275ab9 Remove intermediate doc files
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 17:46:38 +09:00
Jaehyun Kim e7b861051d test: Fix post-merge build errors and regolden .ok files
After merging upstream changes, fix all build errors in C++ test files
and regolden Tcl test golden files to match updated code output.

Build fixes:
- dcalc/test/cpp/TestDcalc.cc: Fix const char* loop iterations, use
  EXPECT_NEAR for uninitialized subnormal float comparison
- liberty/test/cpp/TestLibertyStaBasicsB.cc: Wrap tests using removed
  LibertyBuilder() default constructor in #if 0
- liberty/test/cpp/TestLibertyStaCallbacks.cc: Fix LibertyBuilder()
  call to use sta_->debug()/report(); wrap old visitor tests in #if 0
- search/test/cpp/TestSearchStaDesignB.cc: Fix pg->name() nullptr
  comparison (now returns std::string&)
- search/test/cpp/TestSearchStaInit.cc: Fix 5 clkPinsInvalid/isIdealClock
  tests to expect throw (API now requires linked network)

Tcl test fixes:
- Remove calls to removed APIs: report_path_end_header/footer, report_path_end2
  from 6 search test scripts; regolden their .ok files
- Regolden .ok files for liberty (15), graph (1), network (8),
  parasitics (3), sdc (3), util (2), verilog (8) modules to reflect
  upstream format changes (timing arcs output, pin ordering, spacing)

All 6103 tests now pass.

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 17:11:08 +09:00
Jaehyun Kim 00e83881b2 test: Remove duplicate codes in TestPower.cc
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 11:27:00 +09:00
Jaehyun Kim a5f8e9c3ab test: Fix test failures after master merge
Update test code to match API changes from upstream master:

- TestGraph.cc: Fix makeScenes() call to pass reference instead of pointer
- TestLibertyClasses.cc: Fix ScaleFactorType wire_res/wire_cap name mapping;
  fix TablePtr usage by calling .get() where const TableModel* is expected
- TestLibertyClasses.cc: Update liberty_read_nangate.ok for new timing arc output
- TestPower.cc: Replace PwrActivityOrigin::defaulted with ::unknown;
  fix isSet() expectations (unknown origin returns false)
- TestSdcClasses.cc, TestSdf.cc, TestUtil.cc, TestSpice.cc:
  Fix RiseFall::to_string() expected values from short form ("^"/"v")
  to long form ("rise"/"fall")
- TestUtil.cc: Remove tests for deleted StringVector/split/TokenParser
  and StringSet::deleteContents (removed from master)
- TestSpice.cc: Replace StdStringSeq with StringSeq
- helpers.tcl: Use pwd-based result_dir so module tests write results
  to their own test/results/ directory
- verilog_bus.ok: Update golden file for new port ordering from master

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 10:16:27 +09:00
Jaehyun Kim d4ad9312ea Merge origin/master into secure-sta-test-suite
Resolve add/add conflict in test/helpers.tcl by merging both versions:
- Keep master's report_file, report_file_filter, sort_objects functions
- Keep branch's diff_files, diff_files_sorted functions
- Use master's result_dir setup with branch's mkdir logic in make_result_file

Resolve content conflict in test/regression by keeping branch's
bash/ctest launcher over master's Tcl regression script.

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 09:48:28 +09:00
Jaehyun Kim f7c4a825e1 build: Update Dockerfile.centos7 style
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-03-11 09:38:17 +09:00
James Cherry 7668e43d2c rm deprecated functions
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 14:57:45 -07:00
James Cherry 981f44db68 update copyright
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 14:57:45 -07:00
James Cherry 83d08b5b5c verilog reader use override
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 14:57:45 -07:00
Deepashree Sengupta fbe9da3fb7
Fix for OpenSTA issue 398 and OpenROAD issue 9454 with regression (#401)
* Fix for OpenSTA issue 398 and OpenROAD issue 9454 with regression

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>

* Incorporated feedbacks from previous version

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>

* rename tests

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>

* remove unnecessary newline

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>

* Updated to use network_->portBitIterator

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>

---------

Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
2026-03-10 14:57:21 -07:00
James Cherry 6280635c38 liberty statetable ref test_cell ports resolves #276
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 12:58:53 -07:00
James Cherry 2ada1ce715 delete_all_memory mem use after delete
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 12:33:39 -07:00
James Cherry 2c1024a6bb path end leak
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-10 10:26:59 -07:00
James Cherry 0850e97b88 readLibraryAttributes only call when non-empty library
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-09 18:12:56 -07:00
James Cherry 129d007f76 override
Signed-off-by: James Cherry <cherry@parallaxsw.com>
2026-03-09 17:43:03 -07:00