runHDLsim

버전 1.0.0.1 (16.4 KB) 작성자: Abhishek Kumar Singh
Easily verify your HDL simulations in MATLAB! Refer README to get started.
다운로드 수: 7
업데이트 날짜: 2024/7/23

runHDLsim Function Overview

The runHDLsim function is a MATLAB script designed to simulate HDL (Hardware Description Language) files. It supports both Verilog (.v) and VHDL (.vhdl) files. The function verifies the existence of necessary tools (i.e., iverilog, ghdl, and gtkwave) and runs the appropriate simulation.

Prerequisites

Ensure that the following tools are installed on your system:

  • iverilog (for Verilog simulation)
  • ghdl (for VHDL simulation)
  • gtkwave (for waveform viewing)

Usage

runHDLsim(module_path, testbench_path)

Parameters

  • module_path: Path to the HDL module file (either .v for Verilog or .vhdl for VHDL).
  • testbench_path: Path to the testbench file corresponding to the HDL module.

Example

runHDLsim('path/to/module.v', 'path/to/testbench.v')

Steps Performed by the Function

  1. File Verification: Checks if the specified module and testbench files exist.
  2. Tool Check: Verifies the installation of required tools (iverilog for Verilog, ghdl for VHDL, and gtkwave for waveform viewing).
  3. Simulation:
    • For Verilog: Compiles the code using iverilog, runs the simulation with vvp, and launches gtkwave to view the waveform.
    • For VHDL: Analyzes and elaborates the design using ghdl, runs the simulation, and launches gtkwave to view the waveform.

Notes

  • Ensure that the paths provided to the function are correct and that the files exist.
  • If any required tool is not installed, the function will output an error message along with a download link.

Error Handling

The function includes error handling to:

  • Notify if the specified files do not exist.
  • Inform if any required tool is not installed and provide a download link.

License

This script is distributed under the GNU General Public License. See the included LICENSE file for more details.

More Information

For more information, refer to the respective tool documentation:

인용 양식

Abhishek Kumar Singh (2024). runHDLsim (https://github.com/singham-hdl/runHDLing), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2023a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0.1

Updated README

1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.