Skip to content

Commit

Permalink
WIP: Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Czyz <[email protected]>
  • Loading branch information
mczyz-antmicro committed Mar 29, 2024
1 parent 1fd0056 commit 2b5420b
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 272 deletions.
26 changes: 0 additions & 26 deletions .github/actions/build/action.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/actions/cache/action.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/actions/free-disk/action.yml

This file was deleted.

94 changes: 0 additions & 94 deletions .github/actions/implementation/action.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/actions/test/action.yml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/scripts/validate_json.py

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/xls-modules-dma.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"dma": {
"name": "//xls/modules/dma",
"rules": [
{
"ir": "csr_opt_ir_benchmark",
"verilog": "verilog_csr",
"synthesis": "csr_benchmark_synth",
"pnr": "csr_place_and_route"
},
{
"ir": "axi_csr_opt_ir_benchmark",
"verilog": "verilog_axi_csr",
"synthesis": "axi_csr_benchmark_synth",
"pnr": "axi_csr_place_and_route"
},
{
"ir": "address_generator_opt_ir_benchmark",
"verilog": "verilog_address_generator",
"synthesis": "address_generator_benchmark_synth",
"pnr": "address_generator_place_and_route"
},
{
"ir": "frontend_reader_opt_ir_benchmark",
"verilog": "verilog_frontend_reader",
"synthesis": "frontend_reader_benchmark_synth",
"pnr": "frontend_reader_place_and_route"
},
{
"ir": "frontend_writer_opt_ir_benchmark",
"verilog": "verilog_frontend_writer",
"synthesis": "frontend_writer_benchmark_synth",
"pnr": "frontend_writer_place_and_route"
}
]
}
}
39 changes: 0 additions & 39 deletions .github/workflows/xls-modules.json

This file was deleted.

52 changes: 38 additions & 14 deletions .github/workflows/xls-modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@ jobs:
sudo apt install jq
echo "json_config=$(jq -c . .github/workflows/xls-modules.json)" | tee -a "$GITHUB_ENV"
- name: Validate json
id: validate-json
run: |
python .github/scripts/validate_json.py
implement:
needs: config-matrix
name: Implementation
Expand Down Expand Up @@ -129,15 +124,44 @@ jobs:
key: ${{env.CACHE_KEY}}
restore-keys: ${{env.CACHE_RESTORE_KEY}}

# - name: Implement CSR
# id: implementation
# uses: ./.github/actions/implementation
# with:
# xls_module: ${{ matrix.module.xls_module }}
# rule_ir: ${{ matrix.module.rule_ir }}
# rule_verilog: ${{ matrix.module.rule_verilog }}
# rule_synthesis: ${{ matrix.module.rule_synthesis }}
# rule_pnr: ${{ matrix.module.rule_pnr }}
- name: IR
run: |
bazel run ${{ env.BAZEL_RESOURCES_OPT }} -- ${{env.XLS_MODULE}}:${{ matrix.dma.rules.ir }}
- name: Verilog
run: |
bazel build ${{ env.BAZEL_RESOURCES_OPT }} -- ${{env.XLS_MODULE}}:${{ matrix.module.verilog }}
- name: Synthesis
run: |
bazel run ${{ env.BAZEL_RESOURCES_OPT }} -- ${{env.XLS_MODULE}}:${{ matrix.module.synthesis }}
- name: P&R
run: |
bazel build ${{ env.BAZEL_RESOURCES_OPT }} -- ${{env.XLS_MODULE}}:${{ matrix.module.pnr }}
# ${variable/character_to_replace/new_character}
# ${variable/ slash / underscore }
- name: Prepare artifact name
if: always()
shell: bash
run: |
name_input=${{env.XLS_MODULE}}/${{ matrix.module.rule_ir }}
name_output="${name_input//\//_}"
echo "artifact_name=${name_output}" >> "$GITHUB_ENV"
- name: Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: artifacts-impl-${{ env.artifact_name }}
path: |
./bazel-bin/${{env.XLS_MODULE}}/*.log
./bazel-bin/${{env.XLS_MODULE}}/*.textproto
./bazel-bin/${{env.XLS_MODULE}}/*.ir
./bazel-bin/${{env.XLS_MODULE}}/*.v
./bazel-bin/${{env.XLS_MODULE}}/*.sv
test:
needs: build
Expand Down

0 comments on commit 2b5420b

Please sign in to comment.