Commit Graph

119 Commits

Author SHA1 Message Date
Øyvind Harboe
aa45cd2865 mock-array: README.md
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-23 19:24:10 +01:00
Øyvind Harboe
bc1df04560 Bump bazel-orfs to 272cc07, add bazel-orfs-verilog dep
bazel-orfs moved generate.bzl and verilog.bzl into the
bazel-orfs-verilog submodule.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-23 15:13:55 +01:00
Øyvind Harboe
215843a74f build: migrate chisel_binary to rules_chisel
The local bazel-orfs moved chisel support from
@bazel-orfs//toolchains/scala:chisel.bzl to the standalone
@rules_chisel//chisel:defs.bzl package. Add rules_chisel as a
dev dependency, configure the chisel extension toolchain, and
update the mock-array BUILD load path accordingly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2026-03-19 22:46:27 +01:00
Martin Povišer
6dfd83b11e Update mock-array script for new STA
Signed-off-by: Martin Povišer <povik@cutebit.org>
2026-02-22 19:56:22 +00:00
João Mai
5086c09068 bazel: update mock_array MPL params
Signed-off-by: João Mai <jmai@precisioninno.com>
2026-01-23 06:20:17 +00:00
Matt Liberty
17710f5535 Merge pull request #9224 from The-OpenROAD-Project-staging/secure-fix-test-orfs-mock-array
Some checks failed
Automatically sync branch from upstream. / Automatic sync 'master' from The-OpenROAD-Project/OpenROAD (push) Has been cancelled
Lint Python / Black (push) Has been cancelled
Lint Bazel / Buildifier format (push) Has been cancelled
Lint Bazel / Buildifier lint (push) Has been cancelled
Check That ODB Files Are Generated / Are-Odb-Files-Generated (push) Has been cancelled
Format Code with pre commit trigger / Clang-Format (push) Has been cancelled
Lint Tcl code / Tclint (push) Has been cancelled
Scan Code with pre commit trigger / Security-Scan (push) Has been cancelled
Run Repo stats / repostats-for-nice-project (push) Has been cancelled
test: Added a slight distortion in bazel - //test/orfs/mock-array:MockArray_8x8_flat_cts_openroad_test
2026-01-15 00:38:34 +00:00
Jaehyun Kim
d3dcd9881e test: Changed file name from load_power.tcl to load_mock_array.tcl
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-10 17:15:59 +09:00
Jaehyun Kim
514f65bb8a test: Refactored test/orfs/mock-array/power.tcl
- Removed the tricky 10x activity scale down.
- Added estimated power report before reading VCD.
- Refactored for better readability.

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-10 17:12:04 +09:00
Jaehyun Kim
df65b1baa3 test: Fixed tclfmt issue
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-10 14:28:06 +09:00
Jaehyun Kim
e7ce7d36b3 test: Reduced duty and activity by a factor of 10. Read back and check the annotated activity values
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-10 14:25:54 +09:00
Jaehyun Kim
944d9f6d98 test: Updated comments
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-10 10:22:38 +09:00
Jaehyun Kim
1f7c2a0f39 test: Fixed a typo
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-10 00:41:13 +09:00
Jaehyun Kim
64e2ba5050 test: Added a slight distortion in bazel - //test/orfs/mock-array:MockArray_8x8_flat_cts_openroad_test to avoid non-determinism issue
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2026-01-09 18:14:42 +09:00
Arthur Koucher
53528df247 test/orfs: update rules .json for all designs to remove retired metrics
Signed-off-by: Arthur Koucher <arthurkoucher@precisioninno.com>
2026-01-08 21:49:29 -03:00
Jaehyun Kim
4fc5c46664 Rebased test/orfs/mock-array rules-*.json
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2025-12-31 14:01:45 +09:00
Jaehyun Kim
411f0f558e test: Updated ORFS mock-array and ram_8x7 rules
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2025-12-22 11:47:08 +09:00
Øyvind Harboe
1d63e3cb5f test/orfs/asap7: add package
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-12-13 18:42:57 +01:00
Øyvind Harboe
7167ee778f test/orfs: add eqy-flow.bzl
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-12-13 18:09:52 +01:00
Øyvind Harboe
2acbf0f882 test/orfs: break out eqy_flow_test() macro
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-12-11 23:20:07 +01:00
Øyvind Harboe
4dc0b71553 test/orfs/mock-array: remove FILLER cell before eqy and simulation
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-12-05 15:05:50 +01:00
Øyvind Harboe
e4f6d36493 test/orfs: use write_verilog -remove_cells exclude physical only cells
avoids empty.dff

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-12-02 09:27:16 +01:00
Øyvind Harboe
816854e1f2 test/orfs: silence eqy warnings with dummy content in empty stdcells
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-27 01:06:11 +01:00
Øyvind Harboe
33243975ea gcd: add eqy_test for floorplan
mock-array takes a long time, eqy for gcd is MUCH faster,
so better place to start investigating.

Ca. 40 seconds for this step:

    bazelisk test test/orfs/gcd:eqy_test --test_output=streamed

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-26 22:26:49 +01:00
Øyvind Harboe
ea10fb8875 mock-array: use hacked and slashed asap7 .v files for eqy
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-26 13:40:29 +01:00
Vegard Strand Lende
cd493cc7a6 mock-array: test logic equivalence using behavioral- vs floorplan verilog
Signed-off-by: Vegard Strand Lende <vegard@ascenium.com>
2025-11-26 13:29:35 +01:00
Vegard Strand Lende
e96020f5b3 mock-array: write verilog from floorplan
Signed-off-by: Vegard Strand Lende <vegard@ascenium.com>
2025-11-26 13:29:35 +01:00
Matt Liberty
3e09946145 Merge pull request #8860 from The-OpenROAD-Project-staging/update-sta
Some checks failed
Automatically sync branch from upstream. / Automatic sync 'master' from The-OpenROAD-Project/OpenROAD (push) Has been cancelled
Lint Python / Black (push) Has been cancelled
Lint Bazel / Buildifier format (push) Has been cancelled
Lint Bazel / Buildifier lint (push) Has been cancelled
Check That ODB Files Are Generated / Are-Odb-Files-Generated (push) Has been cancelled
Format Code with pre commit trigger / Clang-Format (push) Has been cancelled
Lint Tcl code / Tclint (push) Has been cancelled
Scan Code with pre commit trigger / Security-Scan (push) Has been cancelled
sta update - handle pg_pin change
2025-11-19 21:00:10 +00:00
Jaehyun Kim
941a7fe191 Updated rules-base.json
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2025-11-19 10:35:19 +09:00
Jaehyun Kim
c80b4532e2 Merge branch 'master' of https://github.com/The-OpenROAD-Project-private/OpenROAD into secure-fix-dbsta-for-read-vcd 2025-11-19 10:30:19 +09:00
Jaehyun Kim
a5c2f65e2b Added -hier option in link_design for OpenROAD
Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
2025-11-19 09:56:19 +09:00
Øyvind Harboe
e0389529c3 mock-array: fix naming consistency
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-18 20:30:50 +01:00
Matt Liberty
4e43d5a8f7 typo: settting -> setting
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2025-11-18 16:21:50 +00:00
Matt Liberty
a85b1fd957 Fix array bounds in test/orfs/mock-array/power.tcl
Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
2025-11-18 16:10:47 +00:00
Øyvind Harboe
3ad1341f82 Merge remote-tracking branch 'origin/master' into HEAD 2025-11-10 18:32:50 +01:00
Matt Liberty
b47291e6d1 Merge pull request #8751 from Pinata-Consulting/test-mock-array-hier-power-reporting-smoke-test
test/orfs/mock-array: test reporting power per module with -hier
2025-11-05 01:03:56 +00:00
Øyvind Harboe
ec5f570dd9 Merge remote-tracking branch 'origin/master' into HEAD 2025-11-04 16:16:35 +01:00
Øyvind Harboe
fdc375dc91 mock-array: path group test fix
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-04 16:10:02 +01:00
Øyvind Harboe
f8c49261d7 Merge remote-tracking branch 'origin/master' into HEAD 2025-11-04 16:00:47 +01:00
Øyvind Harboe
32b0d53c8c mock-array: fix gaffes in new tests
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-03 08:34:32 +01:00
Øyvind Harboe
6a5038272c sta: warning checks
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-03 07:38:01 +01:00
Øyvind Harboe
bed8a8baf1 sta: fix warning checks
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-03 07:27:48 +01:00
Øyvind Harboe
c5b2cc0845 tclfmt: fix formatting
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-11-03 07:27:48 +01:00
Øyvind Harboe
57651edc7f test/orfs/mock-array: test reporting power per module with -hier
fixes

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-28 09:43:46 +01:00
Øyvind Harboe
a8cfaed2fc test/orfs/mock-array: run power report with openroad as well as opensta
Reading LEF files for OpenROAD
read_lef external/bazel-orfs++orfs_repositories+docker_orfs/OpenROAD-flow-scripts/flow/platforms/asap7/lef/asap7_tech_1x_201209.lef
[INFO ODB-0227] LEF file: external/bazel-orfs++orfs_repositories+docker_orfs/OpenROAD-flow-scripts/flow/platforms/asap7/lef/asap7_tech_1x_201209.lef, created 30 layers, 9 vias
read_lef external/bazel-orfs++orfs_repositories+docker_orfs/OpenROAD-flow-scripts/flow/platforms/asap7/lef/asap7sc7p5t_28_R_1x_220121a.lef
[INFO ODB-0227] LEF file: external/bazel-orfs++orfs_repositories+docker_orfs/OpenROAD-flow-scripts/flow/platforms/asap7/lef/asap7sc7p5t_28_R_1x_220121a.lef, created 212 library cells
read_lef bazel-out/k8-fastbuild/bin/test/orfs/mock-array/results/asap7/Element/4x4_base/Element.lef
[INFO ODB-0227] LEF file: bazel-out/k8-fastbuild/bin/test/orfs/mock-array/results/asap7/Element/4x4_base/Element.lef, created 5 vias, 1 library cells

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-28 07:31:42 +01:00
Øyvind Harboe
00c74b1a17 test/orfs/mock-array: test reporting power per module with -hier
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-28 07:15:14 +01:00
Øyvind Harboe
b0bf7fcf61 test/orfs/mock-array: run power report with openroad as well as opensta
OpenROAD standalone doesn't work yet:

    link_design MockArray
    [ERROR ORD-2010] no technology has been read.
    Error: power.tcl, 1 ORD-2010

OpenSTA tests are needed for when we want to report issues to OpenSTA.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-28 06:45:32 +01:00
Øyvind Harboe
2d1572b3d3 Merge remote-tracking branch 'origin/master' into HEAD 2025-10-28 03:11:04 +01:00
Øyvind Harboe
2ed874fa68 test/orfs/mock-array: check for read_spef warnings in OpenSTA
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-27 08:00:04 +01:00
Øyvind Harboe
03ac96e4e8 test/orfs/mock-array: single concern opensta path groups test
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-26 08:00:13 +01:00
Øyvind Harboe
487646b308 mock-array: more OpenSTA testing
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
2025-10-25 09:58:59 +02:00