Commit Graph

24 Commits

Author SHA1 Message Date
Arnav Sacheti
3380e68b9b export axi4 lite cpuif 2025-10-23 22:38:53 -07:00
Arnav Sacheti
0ce469eb73 fix lint 2025-10-23 22:33:36 -07:00
Copilot
4b87556135 Add comprehensive test suite for PeakRDL-BusDecoder with sub-block and integration tests (#6)
* Initial plan

* Add comprehensive test suite for PeakRDL-BusDecoder

- Added tests for utility functions (clog2, is_pow2, roundup_pow2, get_indexed_path)
- Added tests for body classes (Body, ForLoopBody, IfBody, CombinationalBody, StructBody)
- Added tests for code generators (DecodeLogicGenerator, StructGenerator)
- Added tests for DesignState configuration
- Added integration tests for BusDecoderExporter
- Added tests for APB4 interface generation
- Fixed conftest to properly handle RDLCompiler and temporary files
- All 56 tests passing

Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>

* Format test files with ruff

Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>
2025-10-23 22:26:03 -07:00
Copilot
2ca1ce4e27 Fix --unroll CLI argument to properly unroll arrays instead of repeating them (#5)
* Initial plan

* Fix --unroll CLI argument to properly unroll arrays

Updated check_is_array() method and all CPUIF implementations to correctly detect and handle unrolled array elements. When unroll=True, each array element is now treated as an individual instance instead of being repeated as an array.

Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>

* Add comprehensive tests for --unroll functionality

Created tests to verify that array elements are correctly unrolled into individual instances when --unroll flag is used. Also fixed conftest.py fixture to keep temp files for later reference.

Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>
2025-10-23 22:23:49 -07:00
Copilot
516da7a43b Fix broken APB3 and APB4 flat bus decoder implementations (#4)
* Initial plan

* Fix APB3 and APB4 flat bus decoder implementations by adding missing fanout, fanin, and readback methods

Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: arnavsacheti <36746504+arnavsacheti@users.noreply.github.com>
2025-10-23 22:21:10 -07:00
Arnav Sacheti
740d4a84ac added apb3 and axi4_lite 2025-10-21 22:29:10 -07:00
Arnav Sacheti
395f584f52 apb4 if working? 2025-10-20 22:09:25 -07:00
Arnav Sacheti
f956232a62 fanout/fainin wip 2025-10-20 07:15:47 -07:00
Arnav Sacheti
e210167f2e typecheck + fanout/fanin 2025-10-19 22:26:13 -07:00
Arnav Sacheti
eb5e64b151 format 2025-10-19 21:52:12 -07:00
Arnav Sacheti
bafebf8595 refactor to use base listener for busdecoder 2025-10-19 21:35:17 -07:00
Arnav Sacheti
be116def83 Merge pull request #1 from arnavsacheti/codex/refactor-tests-directory-for-unit-tests
Replace simulator-driven tests with pytest unit scaffolding
2025-10-19 16:49:36 -07:00
Arnav Sacheti
cca98098da Simplify test suite to pytest unit scaffolding 2025-10-19 16:48:25 -07:00
Arnav Sacheti
bb1ac6bde9 decoder compiles 2025-10-19 00:06:45 -07:00
Arnav Sacheti
0c66453ba0 adding decoder logic 2025-10-16 22:35:36 -07:00
Arnav Sacheti
2937624ee7 fix links 2025-10-14 20:42:40 -07:00
Arnav Sacheti
066d9ca99e format + module update 2025-10-13 22:06:51 -07:00
Arnav Sacheti
54a199ca9c uvx format 2025-10-13 20:14:46 -07:00
Arnav Sacheti
3eee8b9cdd nvm composite action doesnt work 2025-10-13 19:48:58 -07:00
Arnav Sacheti
4492adb618 forgot runs-on 2025-10-13 19:32:20 -07:00
Arnav Sacheti
ff237150f4 consolidate common action setup + migrate to ruff and pyrefly 2025-10-13 19:31:39 -07:00
Arnav Sacheti
35015d7051 "updt" 2025-10-13 18:39:19 -07:00
Arnav Sacheti
b4f9eaff71 regblock -> busdecoder 2025-10-10 22:30:59 -07:00
Arnav Sacheti
9bf5cd1e68 Initial Commit - Forked from PeakRDL-regblock @ a440cc19769069be831d267505da4f3789a26695 2025-10-10 22:28:36 -07:00