FPGA #13 - Verilog Always Pt. II (Nonblocking Assignments)

  Рет қаралды 541

John's Basement

John's Basement

4 ай бұрын

Using the Verilog always construct with nonblocking assignments.
Related Github repo:
github.com/johnwinans/Verilog...
You can support this channel on Patreon! / johnsbasement
This video is part of a KZfaq Playlist: • FPGA
Music used in this video (Vibe Tracks, Alternate) was downloaded from the KZfaq Audio Library: kzfaq.info_...
#verilog

Пікірлер: 9
@flexaris
@flexaris 4 ай бұрын
This is really excellent. Getting the details of how something like this works under the hood is so valuable for me. It really helps to give an understanding instead of someone just giving you different examples of blocking and non-blocking while explaining how you should think about them but not why they work that way. I'll certainly be following this series
@JohnsBasement
@JohnsBasement 4 ай бұрын
Thanks! I'm glad to be able to help.
@DavidLatham-productiondave
@DavidLatham-productiondave 4 ай бұрын
Thanks for clarifying this. I found some wierd "delayed by one clock" results on my test bench plots and now I know why. Basically, I'd only see the results of my assignments in the subsequent clock cycles. Perhaps that's how it's supposed to be. Looking forward to the techniques for handling it.
@JohnsBasement
@JohnsBasement 4 ай бұрын
Yeah. That is how it is supposed to be. However, there is some leeway depending on your situation. I was just gathering around my notes for recording the next video in this series. It turns out that the background of this topic lies in the design of your Finite State Machines. Fortunately, I already have videos (and handouts) that discuss this: faculty.cs.niu.edu/~winans/CS463/2022-fa/#seq faculty.cs.niu.edu/~winans/CS463/2022-fa/#fsm You might want to put an eyeball on the 'Mealy & Moore Finite State Machines' video. I will also link then into my FPGA playlist.
@JohnsBasement
@JohnsBasement 4 ай бұрын
There was a mistake in the handout that the FSM video was based on. I corrected the handout (see my course web site links in the video description) and put a note in the video. Meh... it is not too embarrassing. :-D
@captaindunsell8568
@captaindunsell8568 4 ай бұрын
Simulation may run multithreaded or not .. multithreaded tasks may run in a different order every run because you generally don’t control dispatch and scheduling of the underlying os
@JohnsBasement
@JohnsBasement 2 ай бұрын
Yeah. If you need to control the order of handing async events, you need to do it explicitly with some sort of semaphores.
@JanEringa8k
@JanEringa8k 4 ай бұрын
Dumb Question time: If the dependency chain in the active list loops A -> B -> C which affects A. Will such an infinite loop form? Or will it detect it? Or will it never form because its going to use the "old" value of the inputs and only update once its evaluated all the blocks?
@JohnsBasement
@JohnsBasement 4 ай бұрын
if an always block has nothing within it that waits and it has an edge in its sensitivity list then the body runs ONCE each time an edge occurs. If its output is used back at its input (directly or indirectly) then said output will impact it on the NEXT edge... like the counters in the current example. When the loop goes across multiple always blocks then the looping of the data back around can take more than one edge. Draw up a circuit that has one endge-triggered latch for each always block. That might help. Also, note that there will be more discussion on how to use all of this coming up.
FPGA #14 - Verilog Always Pt. III (Synthesizable Design Patterns)
41:36
Z8S180 Breakout Board Testing Pt. I
41:06
John's Basement
Рет қаралды 797
Женская драка в Кызылорде
00:53
AIRAN
Рет қаралды 505 М.
Telephone Line Voltages
12:20
PRESENTaLINK Walter Bak
Рет қаралды 5 М.
3D in TypeScript using Ray Casting
3:14:03
Tsoding Daily
Рет қаралды 37 М.
An Introduction to VGA Signal Timing
1:03:27
John's Basement
Рет қаралды 1,1 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 829 М.
FPGA #15 - Verilog Modules, Parameters, and Localparams
1:26:24
John's Basement
Рет қаралды 388
Z8S180 Breakout Board Testing Pt. II
39:43
John's Basement
Рет қаралды 628
FPGA #19 - A look at the iCE40 Technology Library
1:07:35
John's Basement
Рет қаралды 956
Tag him😳💕 #miniphone #iphone #samsung #smartphone #fy
0:11
Pockify™
Рет қаралды 2,8 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 8 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 8 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН