peakrdl-busdecoder 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. peakrdl_busdecoder-0.2.0/.github/ISSUE_TEMPLATE/bug_report.md +26 -0
  2. peakrdl_busdecoder-0.2.0/.github/ISSUE_TEMPLATE/feature_request.md +22 -0
  3. peakrdl_busdecoder-0.2.0/.github/ISSUE_TEMPLATE/question.md +10 -0
  4. peakrdl_busdecoder-0.2.0/.github/pull_request_template.md +11 -0
  5. peakrdl_busdecoder-0.2.0/.github/workflows/build.yml +51 -0
  6. peakrdl_busdecoder-0.2.0/.github/workflows/docs.yml +54 -0
  7. peakrdl_busdecoder-0.2.0/.github/workflows/format.yml +23 -0
  8. peakrdl_busdecoder-0.2.0/.github/workflows/lint.yml +23 -0
  9. peakrdl_busdecoder-0.2.0/.github/workflows/release.yml +46 -0
  10. peakrdl_busdecoder-0.2.0/.github/workflows/test.yml +49 -0
  11. peakrdl_busdecoder-0.2.0/.github/workflows/typecheck.yml +26 -0
  12. peakrdl_busdecoder-0.2.0/.gitignore +20 -0
  13. peakrdl_busdecoder-0.2.0/.readthedocs.yaml +17 -0
  14. peakrdl_busdecoder-0.2.0/CONTRIBUTING.md +53 -0
  15. peakrdl_busdecoder-0.2.0/LICENSE +165 -0
  16. peakrdl_busdecoder-0.2.0/MANIFEST.in +2 -0
  17. peakrdl_busdecoder-0.2.0/PKG-INFO +40 -0
  18. peakrdl_busdecoder-0.2.0/README.md +12 -0
  19. peakrdl_busdecoder-0.2.0/docs/Makefile +20 -0
  20. peakrdl_busdecoder-0.2.0/docs/api.rst +50 -0
  21. peakrdl_busdecoder-0.2.0/docs/architecture.rst +64 -0
  22. peakrdl_busdecoder-0.2.0/docs/conf.py +90 -0
  23. peakrdl_busdecoder-0.2.0/docs/configuring.rst +45 -0
  24. peakrdl_busdecoder-0.2.0/docs/cpuif/apb.rst +59 -0
  25. peakrdl_busdecoder-0.2.0/docs/cpuif/avalon.rst +33 -0
  26. peakrdl_busdecoder-0.2.0/docs/cpuif/axi4lite.rst +32 -0
  27. peakrdl_busdecoder-0.2.0/docs/cpuif/customizing.rst +114 -0
  28. peakrdl_busdecoder-0.2.0/docs/cpuif/internal_protocol.rst +232 -0
  29. peakrdl_busdecoder-0.2.0/docs/cpuif/introduction.rst +36 -0
  30. peakrdl_busdecoder-0.2.0/docs/cpuif/passthrough.rst +10 -0
  31. peakrdl_busdecoder-0.2.0/docs/dev_notes/Alpha-Beta Versioning +10 -0
  32. peakrdl_busdecoder-0.2.0/docs/dev_notes/Hierarchy-and-Indexing +67 -0
  33. peakrdl_busdecoder-0.2.0/docs/dev_notes/Program Flow +23 -0
  34. peakrdl_busdecoder-0.2.0/docs/dev_notes/Resets +11 -0
  35. peakrdl_busdecoder-0.2.0/docs/dev_notes/Signal Dereferencer +22 -0
  36. peakrdl_busdecoder-0.2.0/docs/dev_notes/Validation Needed +183 -0
  37. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/1-port-declaration +51 -0
  38. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/1.1.hardware-interface +103 -0
  39. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/2-CPUIF +72 -0
  40. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/3-address-decode +51 -0
  41. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/4-fields +163 -0
  42. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/5-readback-mux +49 -0
  43. peakrdl_busdecoder-0.2.0/docs/dev_notes/template-layers/6-output-port-mapping +9 -0
  44. peakrdl_busdecoder-0.2.0/docs/diagrams/arch.png +0 -0
  45. peakrdl_busdecoder-0.2.0/docs/diagrams/diagrams.odg +0 -0
  46. peakrdl_busdecoder-0.2.0/docs/diagrams/rbuf.png +0 -0
  47. peakrdl_busdecoder-0.2.0/docs/diagrams/readback.png +0 -0
  48. peakrdl_busdecoder-0.2.0/docs/diagrams/wbuf.png +0 -0
  49. peakrdl_busdecoder-0.2.0/docs/faq.rst +131 -0
  50. peakrdl_busdecoder-0.2.0/docs/hwif.rst +61 -0
  51. peakrdl_busdecoder-0.2.0/docs/img/err.svg +53 -0
  52. peakrdl_busdecoder-0.2.0/docs/img/ok.svg +53 -0
  53. peakrdl_busdecoder-0.2.0/docs/img/warn.svg +53 -0
  54. peakrdl_busdecoder-0.2.0/docs/index.rst +97 -0
  55. peakrdl_busdecoder-0.2.0/docs/licensing.rst +50 -0
  56. peakrdl_busdecoder-0.2.0/docs/limitations.rst +53 -0
  57. peakrdl_busdecoder-0.2.0/docs/props/addrmap.rst +28 -0
  58. peakrdl_busdecoder-0.2.0/docs/props/field.rst +491 -0
  59. peakrdl_busdecoder-0.2.0/docs/props/reg.rst +14 -0
  60. peakrdl_busdecoder-0.2.0/docs/props/rhs_props.rst +182 -0
  61. peakrdl_busdecoder-0.2.0/docs/props/signal.rst +28 -0
  62. peakrdl_busdecoder-0.2.0/docs/rdl_features/external.rst +155 -0
  63. peakrdl_busdecoder-0.2.0/docs/requirements.txt +3 -0
  64. peakrdl_busdecoder-0.2.0/docs/udps/intro.rst +79 -0
  65. peakrdl_busdecoder-0.2.0/hdl-src/README.md +9 -0
  66. peakrdl_busdecoder-0.2.0/hdl-src/apb3_intf.sv +50 -0
  67. peakrdl_busdecoder-0.2.0/hdl-src/apb4_intf.sv +56 -0
  68. peakrdl_busdecoder-0.2.0/hdl-src/avalon_mm_intf.sv +46 -0
  69. peakrdl_busdecoder-0.2.0/hdl-src/axi4lite_intf.sv +89 -0
  70. peakrdl_busdecoder-0.2.0/pyproject.toml +116 -0
  71. peakrdl_busdecoder-0.2.0/setup.cfg +4 -0
  72. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/__init__.py +3 -0
  73. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/__peakrdl__.py +136 -0
  74. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/body/__init__.py +14 -0
  75. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/body/body.py +22 -0
  76. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/body/combinational_body.py +10 -0
  77. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/body/for_loop_body.py +16 -0
  78. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/body/if_body.py +91 -0
  79. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/body/struct_body.py +25 -0
  80. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/__init__.py +3 -0
  81. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb3/__init__.py +4 -0
  82. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb3/apb3_cpuif.py +67 -0
  83. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb3/apb3_cpuif_flat.py +68 -0
  84. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb3/apb3_interface.py +56 -0
  85. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb3/apb3_tmpl.sv +33 -0
  86. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb4/__init__.py +4 -0
  87. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb4/apb4_cpuif.py +70 -0
  88. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb4/apb4_cpuif_flat.py +70 -0
  89. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb4/apb4_interface.py +60 -0
  90. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/apb4/apb4_tmpl.sv +36 -0
  91. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/axi4lite/__init__.py +4 -0
  92. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/axi4lite/axi4_lite_cpuif.py +84 -0
  93. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/axi4lite/axi4_lite_cpuif_flat.py +86 -0
  94. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/axi4lite/axi4lite_interface.py +84 -0
  95. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/axi4lite/axi4lite_tmpl.sv +60 -0
  96. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/base_cpuif.py +118 -0
  97. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/fanin_gen.py +64 -0
  98. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/fanout_gen.py +50 -0
  99. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/cpuif/interface.py +190 -0
  100. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/decode_logic_gen.py +152 -0
  101. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/design_scanner.py +46 -0
  102. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/design_state.py +74 -0
  103. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/exporter.py +142 -0
  104. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/identifier_filter.py +263 -0
  105. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/listener.py +58 -0
  106. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/module_tmpl.sv +79 -0
  107. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/package_tmpl.sv +21 -0
  108. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/py.typed +0 -0
  109. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/struct_gen.py +57 -0
  110. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/sv_int.py +21 -0
  111. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/udps/__init__.py +5 -0
  112. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/utils.py +80 -0
  113. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder/validate_design.py +185 -0
  114. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder.egg-info/PKG-INFO +40 -0
  115. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder.egg-info/SOURCES.txt +119 -0
  116. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder.egg-info/dependency_links.txt +1 -0
  117. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder.egg-info/entry_points.txt +2 -0
  118. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder.egg-info/requires.txt +5 -0
  119. peakrdl_busdecoder-0.2.0/src/peakrdl_busdecoder.egg-info/top_level.txt +1 -0
  120. peakrdl_busdecoder-0.2.0/tools/shims/xargs +62 -0
  121. peakrdl_busdecoder-0.2.0/uv.lock +1328 -0
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: Bug report
3
+ about: The tool is not doing what I expected
4
+ title: "[BUG]"
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ - [ ] I have reviewed this project's [contribution guidelines](https://github.com/arnavsacheti/PeakRDL-BusDecoder/blob/main/CONTRIBUTING.md)
11
+
12
+ **Describe the bug**
13
+ A clear and concise description of what the bug is.
14
+
15
+ Details like these can be helpful:
16
+ * Sample SystemRDL code
17
+ * Error message, simulation waveform, etc.
18
+ * Version numbers for the tool, Python, and OS
19
+
20
+
21
+ **Expected behavior**
22
+ A clear and concise description of what you expected to happen.
23
+
24
+
25
+ **Additional context**
26
+ Add any other context about the problem here.
@@ -0,0 +1,22 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: "[FEATURE]"
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ - [ ] I have reviewed this project's [contribution guidelines](https://github.com/arnavsacheti/PeakRDL-BusDecoder/blob/main/CONTRIBUTING.md)
11
+
12
+ **Describe the problem/limitation you think should be addressed**
13
+ A clear and concise description of what the problem is.
14
+
15
+ **Describe the solution you'd like**
16
+ A clear and concise description of what you want to happen.
17
+
18
+ **Describe alternatives you've considered**
19
+ A clear and concise description of any alternative solutions or features you've considered.
20
+
21
+ **Additional context**
22
+ Add any other context or about the feature request here.
@@ -0,0 +1,10 @@
1
+ ---
2
+ name: Question
3
+ about: I have a question
4
+ title: ''
5
+ labels: ''
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ Please consider using the discussion board for more open-ended questions: https://github.com/orgs/SystemRDL/discussions
@@ -0,0 +1,11 @@
1
+ # Description of change
2
+
3
+ Describe what bug or feature your pull request addresses.
4
+ If applicable, provide a link to the relevant issue ticket or discussion about
5
+ this change.
6
+
7
+ # Checklist
8
+
9
+ - [ ] I have reviewed this project's [contribution guidelines](https://github.com/arnavsacheti/PeakRDL-BusDecoder/blob/main/CONTRIBUTING.md)
10
+ - [ ] This change has been tested and does not break any of the existing unit tests. (if unable to run the tests, let us know)
11
+ - [ ] If this change adds new features, I have added new unit tests that cover them.
@@ -0,0 +1,51 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+ workflow_dispatch:
9
+ workflow_call:
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ needs: [lint, typecheck, format, test]
15
+ permissions:
16
+ contents: read
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Set up uv
22
+ uses: astral-sh/setup-uv@v3
23
+
24
+ - name: Build package
25
+ run: uvx --from build pyproject-build --installer uv
26
+
27
+ - name: Upload build artifacts
28
+ uses: actions/upload-artifact@v4
29
+ with:
30
+ name: dist-packages
31
+ path: dist/
32
+
33
+ lint:
34
+ uses: ./.github/workflows/lint.yml
35
+ permissions:
36
+ contents: read
37
+
38
+ typecheck:
39
+ uses: ./.github/workflows/typecheck.yml
40
+ permissions:
41
+ contents: read
42
+
43
+ format:
44
+ uses: ./.github/workflows/format.yml
45
+ permissions:
46
+ contents: read
47
+
48
+ test:
49
+ uses: ./.github/workflows/test.yml
50
+ permissions:
51
+ contents: read
@@ -0,0 +1,54 @@
1
+ name: Documentation
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ build-docs:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Set up uv
18
+ uses: astral-sh/setup-uv@v3
19
+ with:
20
+ python-version: '3.12'
21
+
22
+ - name: Install dependencies
23
+ run: |
24
+ uv sync --group docs
25
+
26
+ - name: Build documentation
27
+ run: |
28
+ uv run make html -C docs
29
+
30
+ - name: Upload documentation artifacts
31
+ uses: actions/upload-artifact@v4
32
+ with:
33
+ name: documentation
34
+ path: docs/_build/html/
35
+
36
+ - name: Upload static files as artifact
37
+ id: deployment
38
+ uses: actions/upload-pages-artifact@v3
39
+ with:
40
+ path: docs/_build/html/
41
+
42
+ deploy-docs:
43
+ permissions:
44
+ pages: write
45
+ id-token: write
46
+ environment:
47
+ name: github-pages
48
+ url: ${{ steps.deployment.outputs.page_url }}
49
+ runs-on: ubuntu-latest
50
+ needs: build-docs
51
+ steps:
52
+ - name: Deploy to GitHub Pages
53
+ id: deployment
54
+ uses: actions/deploy-pages@v4
@@ -0,0 +1,23 @@
1
+ name: Format Check
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+ workflow_dispatch:
9
+ workflow_call:
10
+
11
+ jobs:
12
+ format:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up uv
20
+ uses: astral-sh/setup-uv@v3
21
+
22
+ - name: Run ruff format check
23
+ run: uvx ruff format --check .
@@ -0,0 +1,23 @@
1
+ name: Lint
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+ workflow_dispatch:
9
+ workflow_call:
10
+
11
+ jobs:
12
+ lint:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up uv
20
+ uses: astral-sh/setup-uv@v3
21
+
22
+ - name: Run ruff check
23
+ run: uvx ruff check .
@@ -0,0 +1,46 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ build:
11
+ uses: ./.github/workflows/build.yml
12
+ permissions:
13
+ contents: read
14
+
15
+ release:
16
+ runs-on: ubuntu-latest
17
+ needs: build
18
+ permissions:
19
+ contents: write
20
+ id-token: write
21
+
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+
25
+ - name: Set up uv
26
+ uses: astral-sh/setup-uv@v3
27
+
28
+ - name: Download build artifacts
29
+ uses: actions/download-artifact@v4
30
+ with:
31
+ name: dist-packages
32
+ path: dist/
33
+
34
+ - name: Create GitHub Release
35
+ uses: softprops/action-gh-release@v2
36
+ if: startsWith(github.ref, 'refs/tags/')
37
+ with:
38
+ files: dist/*
39
+ generate_release_notes: true
40
+
41
+ - name: Publish to PyPI
42
+ if: startsWith(github.ref, 'refs/tags/')
43
+ env:
44
+ TWINE_USERNAME: __token__
45
+ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
46
+ run: uvx twine upload dist/*
@@ -0,0 +1,49 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+ workflow_dispatch:
9
+ workflow_call:
10
+ schedule:
11
+ # Run weekly on Monday at 00:00 UTC
12
+ - cron: '0 0 * * 1'
13
+
14
+ jobs:
15
+ test:
16
+ runs-on: ubuntu-latest
17
+ permissions:
18
+ contents: read
19
+ strategy:
20
+ matrix:
21
+ python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
22
+
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+
26
+ - name: Set up uv
27
+ uses: astral-sh/setup-uv@v3
28
+ with:
29
+ python-version: ${{ matrix.python-version }}
30
+
31
+ - name: Install Verilator
32
+ run: |
33
+ sudo apt-get update
34
+ sudo apt-get install -y verilator
35
+ verilator --version
36
+
37
+ - name: Install dependencies
38
+ run: |
39
+ uv sync --all-extras --group test
40
+
41
+ - name: Run tests
42
+ run: uv run pytest tests/ -v --cov=peakrdl_busdecoder --cov-report=xml --cov-report=term
43
+
44
+ - name: Upload coverage to Codecov
45
+ uses: codecov/codecov-action@v4
46
+ if: matrix.python-version == '3.12'
47
+ with:
48
+ file: ./coverage.xml
49
+ fail_ci_if_error: false
@@ -0,0 +1,26 @@
1
+ name: Type Check
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+ workflow_dispatch:
9
+ workflow_call:
10
+
11
+ jobs:
12
+ typecheck:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Set up uv
20
+ uses: astral-sh/setup-uv@v3
21
+
22
+ - name: Install package
23
+ run: uv sync --extra cli
24
+
25
+ - name: Run pyrefly type check
26
+ run: uvx pyrefly check src/
@@ -0,0 +1,20 @@
1
+ **/__pycache__
2
+ **/.vscode
3
+ **/.venv
4
+ **/.coverage
5
+ **/*.rpt
6
+ **/.pytest_cache
7
+ **/_build
8
+ **/*.out
9
+ **/transcript
10
+ **/htmlcov
11
+ **/*.log
12
+ **/*.pb
13
+ **/.Xil
14
+ **/.coverage.*
15
+ coverage.xml
16
+
17
+ build/
18
+ dist/
19
+ *.egg-info/
20
+ .eggs/
@@ -0,0 +1,17 @@
1
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
2
+
3
+ version: 2
4
+
5
+ build:
6
+ os: ubuntu-22.04
7
+ tools:
8
+ python: "3.11"
9
+
10
+ sphinx:
11
+ configuration: docs/conf.py
12
+
13
+ python:
14
+ install:
15
+ - requirements: docs/requirements.txt
16
+ - method: pip
17
+ path: .
@@ -0,0 +1,53 @@
1
+ # Contributing to the PeakRDL-BusDecoder code generator
2
+ We love your input! We want to make contributing to this project as easy and
3
+ transparent as possible, whether it's:
4
+
5
+ - Reporting a bug
6
+ - Discussing the current state of the code
7
+ - Submitting a fix
8
+ - Proposing new features
9
+ - Becoming a maintainer
10
+
11
+
12
+ ## Open an issue using the [Issue Tracker](https://github.com/arnavsacheti/PeakRDL-BusDecoder/issues)
13
+ Talking to us is the easiest way to contribute! Report a bug or feature request by
14
+ [opening a new issue](https://github.com/arnavsacheti/PeakRDL-BusDecoder/issues).
15
+
16
+ Issue submission expectations:
17
+ * Please keep each issue submission limited to one topic. This helps us stay organized.
18
+ * Before opening an issue, check if one already exists for your topic. It may have already been discussed.
19
+ * If submitting a bug, provide enough details so we can reproduce it on our end. (version number, example SystemRDL, etc...)
20
+ * If submitting a feature request, please make sure ...
21
+ * ... it does not violate the semantics of the SystemRDL standard.
22
+ Submissions that would change the interpretation of the SystemRDL language
23
+ and are not faithful to the [Accellera SystemRDL specification](http://accellera.org/downloads/standards/systemrdl) will be rejected.
24
+ Additional notes on the spec's interpretation can be found in [our unofficial errata page](https://systemrdl-compiler.readthedocs.io/en/latest/dev_notes/rdl_spec_errata.html).
25
+ * Please be patient! This project is run by volunteers that are passionate about
26
+ improving the state of register automation. Much of the work is done in their free time.
27
+
28
+
29
+ ## Contribute code using a pull request
30
+ Pull requests are the best way to propose changes to the codebase. We actively
31
+ welcome your pull requests. To maximize the chance of your pull request getting accepted,
32
+ please review the expectations below.
33
+
34
+ Pull request expectations:
35
+ * Before starting a pull request, please consider discussing the change with us
36
+ first by **opening an issue ticket**. Unfortunately many of the PRs that get rejected
37
+ are because they implement changes that do not align with the mission of this
38
+ compiler project.
39
+ * PRs shall only contain only one feature/bug/concept change. **Bulk PRs that change numerous unrelated things will be rejected**.
40
+ * Your PR should provide proof that it works correctly and does not break the existing unit tests.
41
+ * Use meaningful commit messages, squash commits as appropriate.
42
+
43
+ How to submit a PR:
44
+ 1. Fork the repo and create your feature/bugfix branch from `main`.
45
+ 2. If you've added code that should be tested, add tests.
46
+ 3. Ensure the test suite passes.
47
+ 4. Submit the pull request!
48
+
49
+
50
+ ## Any contributions you make will be under the GNU LGPL-3.0 Software License
51
+ In short, when you submit code changes, your submissions are understood to be
52
+ under the same [LGPL-3.0 License](https://choosealicense.com/licenses/lgpl-3.0/) that
53
+ covers this project. Feel free to contact the maintainers if that's a concern.
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,2 @@
1
+ recursive-include src/peakrdl_busdecoder *.sv
2
+ prune tests
@@ -0,0 +1,40 @@
1
+ Metadata-Version: 2.4
2
+ Name: peakrdl-busdecoder
3
+ Version: 0.2.0
4
+ Summary: Generate a SystemVerilog bus decoder from SystemRDL for splitting CPU interfaces to multiple sub-address spaces
5
+ Author: Alex Mykyta
6
+ License: LGPLv3
7
+ Project-URL: Source, https://github.com/arnavsacheti/PeakRDL-BusDecoder
8
+ Project-URL: Tracker, https://github.com/arnavsacheti/PeakRDL-BusDecoder/issues
9
+ Project-URL: Changelog, https://github.com/arnavsacheti/PeakRDL-BusDecoder/releases
10
+ Project-URL: Documentation, https://peakrdl-busdecoder.readthedocs.io/
11
+ Keywords: SystemRDL,PeakRDL,bus decoder,address decoder,hierarchical addressing,compiler,tool,registers,generator,Verilog,SystemVerilog,register abstraction layer,FPGA,ASIC
12
+ Classifier: Development Status :: 5 - Production/Stable
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3 :: Only
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: jinja2>=3.1.6
24
+ Requires-Dist: systemrdl-compiler~=1.30.1
25
+ Provides-Extra: cli
26
+ Requires-Dist: peakrdl-cli>=1.2.3; extra == "cli"
27
+ Dynamic: license-file
28
+
29
+ [![Documentation Status](https://readthedocs.org/projects/peakrdl-busdecoder/badge/?version=latest)](http://peakrdl-busdecoder.readthedocs.io)
30
+ [![build](https://github.com/arnavsacheti/PeakRDL-BusDecoder/workflows/build/badge.svg)](https://github.com/arnavsacheti/PeakRDL-BusDecoder/actions?query=workflow%3Abuild+branch%3Amain)
31
+ [![Coverage Status](https://coveralls.io/repos/github/arnavsacheti/PeakRDL-BusDecoder/badge.svg?branch=main)](https://coveralls.io/github/arnavsacheti/PeakRDL-BusDecoder?branch=main)
32
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/peakrdl-busdecoder.svg)](https://pypi.org/project/peakrdl-busdecoder)
33
+
34
+ # PeakRDL-BusDecoder
35
+ Generate a SystemVerilog bus decoder from SystemRDL that splits CPU interface signals to multiple sub-address spaces. This tool is designed for creating hierarchical register address maps by decoding bus transactions and routing them to the appropriate child address maps.
36
+
37
+ For the command line tool, see the [PeakRDL project](https://peakrdl.readthedocs.io).
38
+
39
+ ## Documentation
40
+ See the [PeakRDL-BusDecoder Documentation](https://peakrdl-busdecoder.readthedocs.io) for more details
@@ -0,0 +1,12 @@
1
+ [![Documentation Status](https://readthedocs.org/projects/peakrdl-busdecoder/badge/?version=latest)](http://peakrdl-busdecoder.readthedocs.io)
2
+ [![build](https://github.com/arnavsacheti/PeakRDL-BusDecoder/workflows/build/badge.svg)](https://github.com/arnavsacheti/PeakRDL-BusDecoder/actions?query=workflow%3Abuild+branch%3Amain)
3
+ [![Coverage Status](https://coveralls.io/repos/github/arnavsacheti/PeakRDL-BusDecoder/badge.svg?branch=main)](https://coveralls.io/github/arnavsacheti/PeakRDL-BusDecoder?branch=main)
4
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/peakrdl-busdecoder.svg)](https://pypi.org/project/peakrdl-busdecoder)
5
+
6
+ # PeakRDL-BusDecoder
7
+ Generate a SystemVerilog bus decoder from SystemRDL that splits CPU interface signals to multiple sub-address spaces. This tool is designed for creating hierarchical register address maps by decoding bus transactions and routing them to the appropriate child address maps.
8
+
9
+ For the command line tool, see the [PeakRDL project](https://peakrdl.readthedocs.io).
10
+
11
+ ## Documentation
12
+ See the [PeakRDL-BusDecoder Documentation](https://peakrdl-busdecoder.readthedocs.io) for more details