[pwm] add phase-correct PWM operation mode #37
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Verilog Conversion' | |
| on: | |
| push: | |
| paths: | |
| - 'rtl/**' | |
| - '.github/workflows/Verilog.yml' | |
| pull_request: | |
| paths: | |
| - 'rtl/**' | |
| - '.github/workflows/Verilog.yml' | |
| workflow_dispatch: | |
| jobs: | |
| convert: | |
| name: 'β»οΈ Convert to Verilog' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'π Repository Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'π¦ Install GHDL' | |
| uses: ghdl/setup-ghdl@v1 | |
| with: | |
| version: nightly | |
| backend: mcode | |
| - name: 'βοΈ Run conversion' | |
| run: | | |
| make -C rtl/verilog clean convert | |
| - name: 'π€ Archive generated Verilog code' | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: neorv32_verilog_wrapper | |
| path: rtl/verilog/neorv32_verilog_wrapper.v | |
| sim_iverilog: | |
| name: 'π₯οΈ Verilog simulation - Icarus Verilog' | |
| needs: convert | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'π Repository Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'π Checkout Conversion Artifact' | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: neorv32_verilog_wrapper | |
| path: rtl/verilog | |
| - name: 'π¦ Install Icarus Verilog' | |
| run: sudo apt install iverilog | |
| - name: 'βοΈ Run Simulation' | |
| run: | | |
| make -C rtl/verilog SIMULATOR=iverilog sim | tee iverilog.log | |
| grep 'Simulation successful!' iverilog.log | |
| sim_verilator: | |
| name: 'π₯οΈ Verilog simulation - Verilator' | |
| needs: convert | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'π Repository Checkout' | |
| uses: actions/checkout@v6 | |
| - name: 'π Checkout Conversion Artifact' | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: neorv32_verilog_wrapper | |
| path: rtl/verilog | |
| - name: 'π¦ Install Verilator' | |
| run: sudo apt install verilator | |
| - name: 'βοΈ Run Simulation' | |
| run: | | |
| make -C rtl/verilog SIMULATOR=verilator sim | tee verilator.log | |
| grep 'Simulation successful!' verilator.log |