Lecture verilog ii_c
-
Upload
konsta-anttila -
Category
Technology
-
view
28 -
download
1
Transcript of Lecture verilog ii_c
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.