From the course: Learning Verilog for FPGA Development
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Always blocks - FPGA Tutorial
From the course: Learning Verilog for FPGA Development
Always blocks
- [Instructor] Verilog supports most of the higher-level statements in programming languages. Up ahead we'll talk about always blocks, if-else statements, case statements, Boolean expressions, and the different types of value assignments available. Always blocks are special constructs that enable procedural blocks of code. Always blocks are evaluated every time some specified condition is met. The syntax for always blocks is simple. Just type always at, followed by a sensitivity list. Registers or signals present in this comma-separated list will be monitored for changes. If any of the variables change, the procedural block is evaluated. Now let's see some examples of procedural block constructs.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Verilog modules4m 13s
-
(Locked)
Instantiating modules4m 49s
-
(Locked)
Gates and primitives3m 3s
-
(Locked)
Registers and wires1m 46s
-
(Locked)
Range specification4m 30s
-
(Locked)
Numbers and constants4m 53s
-
(Locked)
Always blocks52s
-
(Locked)
The if-else statement2m 2s
-
(Locked)
Case statements2m 24s
-
(Locked)
Boolean algebra expressions56s
-
(Locked)
Continuous assignments2m 23s
-
(Locked)
Blocking assignments3m 20s
-
(Locked)
Nonblocking assignments3m 49s
-
(Locked)
Challenge: From schematic to code2m 16s
-
(Locked)
Solution: From schematic to code4m 31s
-
-
-
-
-