Skip to content

Verilog Compiler

Actions
Quickly run your Verilog code and verify it is error-free
1.0.0
Latest
Star (15)

GitHub Verilog-Compiler:

GitHub Workflow Status (with branch) GitHub release (latest SemVer) Verilog Build and Analysis GitHub package.json version

Purpose of Verilog Compiler:

To be able to quickly load your .v files to GitHub and run and test them. It will notify you of errors in your code just like a compiler should. It requires to files to run. First you need to create a directoy script/sh to run a script. Then you chose which .v files you want to run.

veriflog_compiler.v

name: Verilog Build and Analysis

on:
  schedule:
  - cron: '0 0,12 * * *' 
    # action will run everyday at 12 am and 12 pm
  workflow_dispatch:

jobs:
  build-and-analyze:
    runs-on: ubuntu-latest

    steps:
    - name: Verilog Compiler
      uses: jge162/verilog_compiler@1.0.0

    - run: |
        echo "Install required dependencies"
        sudo apt-get update
        sudo apt-get install iverilog
        sudo apt-get install verilator

    - run: |
        echo "Set executable permission on script file"
        chmod +x script/sh
        chmod +x ./verilog_test_case.v
        
    - run: |
        echo "Run, Build Application using script"
        ./script/sh

Script file you need to run your .v files:

#!/bin/bash

# Define the name of the project
PROJECT_NAME="verilog_test_case"

# Define the list of Verilog files to be included in the project
VERILOG_FILES="verilog_test_case.v"

# Compile the Verilog files into an executable
iverilog -o $PROJECT_NAME $VERILOG_FILES

# Run the simulation for scripts
vvp $PROJECT_NAME

# Print a message indicating that the script has finished running
echo "Success! Script has finished running."

Screenshot of verilog compiled in Action console.

image

Issues and/or bugs, please create an issue to help me squash them!:

Please report issues here for discussion and resolution please.

License info:

jge162/verilog_compiler is licensed under the GNU General Public License v3.0

Designed with 💙 by @jermyiah™

Verilog Compiler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Quickly run your Verilog code and verify it is error-free
1.0.0
Latest

Verilog Compiler is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.