VHDL coding tips and tricks: Example Codes

Example Codes

   A language cannot be just learn by reading a few tutorials.Its best learn when you try out new things.And for beginners I have written some basic as well as little bit advanced codes.Most of the posts have both the design and a testbench to verify the functionality of the design.Copy these codes and run them.Experiment with the codes and see how its working.Best Of Luck.

Just browse through some of the codes:

VHDL  codes for common Combinational Circuits:






Some more codes are available here:

Resettable counter with testbench program 

A programmable delay generator 

BCD to 7-segement display decoder 

Cyclic Reduntancy Check(CRC) Generator 

Illustration of cloaked for loop by example 

Usage of components in your design with example 

Basic model for a FIFO Queue 

Usage of "GENERIC" in VHDL using PISO example 

Digital Clock in VHDL 

Sine wave Generator 

Function for division of unsigned numbers 

Function for finding Square root of a number 

Function for Matrix multiplication 

Random number generator using PRSG 

   Keep checking this space for more example codes.If you think some thing is missing here request those examples here.I will try to work on your requests as soon as possible.

   Some of the codes and testbench programs can be downloaded from here.