HDL Express

Verilog Tutorials

 

 

Jan. 2015: The UART Project.

This project does use a simple UART that interfaces to a terminal/console window on a PC, but it's to show how to create a project from scratch using the Xilinx ISE tools as well as a briefly showing how to create IP with COREGEN for this project. Anyway, hope you enjoy it.

Download project files here and the hi res video tutorial MPEG here.

 

Mar. 31, 2013: CORDIC Design and Simulation using Verilog

This is a newer presentation than the one below and hopefully a little better. This is a generic CORDIC to produce sine and cosine type outputs and does not have some extra baggage as the older version did, due to its use in a Software Defined Radio.

The design and simulation files can be downloaded from here and a good resolution MP4 here.

 

CORDIC - as used in a Software Defined Radio Implementation.

This tutorial was created to show how to design a CORDIC that can produce both sine and cosine functions in Verilog. Simulation in ModelSim is also shown as well as a few other things. This is from a live online presentation given to a group of individuals involved in Software Defined Radio. Click here to see the full resolution version on YouTube. Click here to download and save the Verilog code and ModelSim setup mentioned in this lecture.

CORDIC webinar: I did not explain something in the kordic.v code that I should have. There are several equations in Stage 0 that are of the following format:

X[0] <= {Xin[WI-1], Xin} << (EXTRA_BITS-1); // since An = 1.647, divide input by 2 and then multiply by 2^EXTRA_BITS
Y[0] <= {Yin[WI-1], Yin} << (EXTRA_BITS-1);

I told you that we divide by 2 then multiply by 2^EXTRA_BITS but I didnt tell you WHY we divide by 2. Notice that the overal gain due to the CORIDC iterative process where the Ki's are removed from each iteration gives us an overall gain of 1.647. Therefore to get the gain back to unity we should multiply by 1/1.647 = .6073. This implementation in kordic.v as well as that of cordic.v takes a simplistic approach and multiples by 1/2 = .5. Not the ideal .6073, but OK. We could get closer to unity by doing something like 1/2+1/16+1/32 = .59375 or maybe something even better.

Keep in mind this was for a Software Defined Radio project and the CORDIC code has a couple extra things in it that are not necessary such as a angle_accumulator and EXTRA_BITS. I am currently working on creating a better presentation about CORDIC that doesn't have any SDR related stuff in it and will be a general purpose sin/cos CORDIC. I may work on presentations using CORIDC for other functions in the future.

Using GTKWave

This brief tutorial is about getting GTKWave up and running on Windows. Click here to download GTKWave3.1.6

Click here to see the full resolution video on YouTube