This repository contains VHDL codes with their tests.
It also includes a simple Makefile to compile and run the test bench.
Install ghdl to compile codes and gtkwave to show signals visually.
sudo apt-get install ghdl gtkwave
You can also install scansion instead of gtkwave.
brew install ghdl gtkwave
Install make, ghdl and gtkwave using msys2
Clone this repo
git clone https://github.com/JulyWitch/vhdl_ghdl_examples.git
navigate to repo directory
cd vhdl_ghdl_examples
Create your vhdl file and it's test bench,
then run the following command.
make I=<input_file> T=<test_bench_file> E=<test_bench_entity_name>
example
make I=test/counter.vhdl T=test/counter.test.vhdl E=counter_tb
This will generate wave and vcd files to the waves directory.
Then open generated .ghw or .vcd file with gtkwave.
To change simulation time pass S_TIME = <time>
to make command. Time can be in ns, us, and ms.
example:
make I=test/counter.vhdl T=test/counter.test.vhdl E=counter_tb S_TIME=1ms
@elahe-dastan / @1995parham training and testing repository 📚 🤓
Easily show beautiful snack bars directly using overlays. Create custom snack bars and show them with awesome animations.
implement convolution neural network on FPGA based on VHDL design
A multi-cycle RISC CPU (processor) like MIPS-CPU architecture in VHDL ( a hardware-side implementation )
easy and beautiful tool to calculate body mass index
The implementation of some modules and basic projects of CAD in VHDL
🏓 A Ping Pong game written in VHDL with VGA support