+ All Categories
Home > Technology > Lecture verilog ii_c

Lecture verilog ii_c

Date post: 30-Jul-2015
Category:
Upload: konsta-anttila
View: 38 times
Download: 2 times
Share this document with a friend
13
ECE 287 – Lecture Verilog II Verilog HDL with Sequential Circuits
Transcript

ECE 287 – Lecture Verilog II

Verilog HDL with Sequential Circuits

Announcements

Next WednesdayExam II – Nov 15th

Last Day to Demo Labs – Nov 14th

Project Oral Proposal - Nov 1st

What you should know how to use in Verilog•The Golden Rule I•Combinational always blocks• If, Case

•Modules instantiated in other modules•? Operator•Groupings•Constants•Conditionals•Logic Operators

If you don’t talk to me…

Sequential Circuits … example

What’s different?

Second Golden Rule!!!• Use “=“ in combinational always blocks

• Use “<=“ in sequential always blocks

Circuit Reset This is how you’ll write most sequential circuits…

Include a reset !!!

Use fully defined if and case structures…

For the following example, what is the value of c?

Parameter

Problem…

Build a circuit that has 2, 8 bit multipliers and 1 32 bit multiplier and stores the result in flip-flops. It needs a reset and clock.

Problem as a group…

Build the ram from last class…

Problem Set

1. Build Verilog code for a counter that counts from 0 to 259 and then starts over.

2. Build Verilog code that multiplies by 5.


Recommended