CH5 Guides & Tutorials - jlmayorgaco/fpga-kalman-filter GitHub Wiki

VHDL Testing

https://vhdlwhiz.com/formal-verification-in-vhdl-using-psl/ https://vhdlwhiz.com/product/course-vunit-testbench-and-bfm-design/

VHDL in MAC OS X

Installing GHDL To simulate and test the VHDL code, you will need to install GHDL, a free and open-source VHDL simulator. Follow these steps to install GHDL on your system:

Step 1: Download GHDL Visit the GHDL GitHub repository at https://github.com/ghdl/ghdl and download the latest release package for your operating system.

Step 2: Install GHDL Follow the installation instructions provided in the GHDL repository for your specific operating system. This typically involves extracting the downloaded package and running installation scripts or commands.

Step 3: Verify Installation Once GHDL is installed, open a terminal or command prompt and run the following command to verify the installation: ghdl --version

If GHDL is installed correctly, you should see the version information printed in the terminal.

Step 4 : How does it works pip install pyvcd

ghdl -a full_adder.vhd ghdl -a full_adder_testbench.vhd ghdl -r full_adder_testbench --vcd=wave.vcd

Using the Makefile This project includes a Makefile to simplify the compilation, simulation, and plotting of VHDL files. Follow these steps to use the Makefile:

Step 1: Clone the Repository Clone this repository to your local machine using Git: git clone https://github.com/your-username/your-repository.git

Replace your-username with your GitHub username and your-repository with the name of your repository.

Step 2: Navigate to the Repository Directory Open a terminal or command prompt and navigate to the directory of the cloned repository: cd your-repository

Step 3: Compile VHDL Files To compile the VHDL files, run the following command:

make compile

Step 4: Simulate To simulate the VHDL testbench, run the following command:

make simulate

Step 5: Plot Waveform To plot the waveform using Python, run the following command:

make plot

Step 6: Clean Up To clean up generated files, run the following command:

make clean

Feel free to customize the instructions further based on your specific project setup and requirements. Make sure to replace your-username and your-repository placeholders with your actual GitHub username and repository name.