Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

VHDL coding tips and tricks

Get interesting tips and tricks in VHDL programming


Home

VHDL FAQs

Example Codes

Testimonials

About me

Disclaimer

Contact me for VHDL projects or assignments


Example Codes

A language cannot be just learn by reading a few tutorials.Its best learn when you try out new things.And for beginne
some basic as well as little bit advanced codes.Most of the posts have both the design and a testbench to verify the fu
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:


3 bit Magnitude Comparator Using logic gates
4 : 1 Multiplexer using case statements
1 : 4 Demultiplexer using case statements
4 bit comparator with testbench
4 bit Ripple Carry Adder using basic gates
3 : 8 Decoder using basic logic gates

VHDL codes for common Sequential Circuits:


Positive edge triggered JK flip-flop with reset
4-bit Synchronous UP counter using JK FF
PISO Using flip flops - Generate statement
Johnson Counter using flip flops - Generate statement
4 bit Johnson Counter - Behavior Model
4 bit Ring Counter - Behavior Model
Example for Gate and Behavior level modeling
Asynchronous D flip flop - Behavior model
Synchronous D flip flop - Behavior model
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
to work on your requests as soon as possible.
Some of the codes and testbench programs can be downloaded from here.

Home
Subscribe to: Posts (Atom)

Download this article as PDF

Total Pageviews

Simple template. Powered by Blogger

You might also like