FPGA #10 - Verilog == and === operators

  Рет қаралды 472

John's Basement

John's Basement

5 ай бұрын

A discussion of how Verilog comparators work.
Topics:
- 0, 1, x, and z values
- ==
- !=
- ===
- !==
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

Пікірлер: 8
@vasileceteras
@vasileceteras 5 ай бұрын
This is similar to database NULL. I would name the operators 'equal' and 'is not different from' .
@jrkorman
@jrkorman 5 ай бұрын
I remember running into these "problems" when writing a logic simulator many years back! Can make your head hurt! How many years back? I was using the "New" Turbo Pascal 5.5!
@b213videoz
@b213videoz 4 ай бұрын
What? Turbo Pascal wouldn't be that weird 😅 And yes 5.5 was fairly advanced, it did have OOP, didn't it ?
@jrkorman
@jrkorman 4 ай бұрын
@@b213videozTurbo Pascal wasn't weird at all. I first started using the CP/M version in 1984. Yes, Turbo Pascal 5.5 took a "swing" at OOP. What was weird was setting up the definitions of (truth tables if you will) of basic logic that included unknown values as well as how to describe pull-up/down and tri-state. No internet! No one to ask!
@barongerhardt
@barongerhardt 5 ай бұрын
In my mind it works. A normal comparison with an unknown should lead to undefined and undefined would be treated as false in most situations. The triple equals is a special operator to handle this special case. Kind of a similar situation where strings have value so they are true, but the language auto converts strings to other data types. Are the strings '0' and 'false' true or false?
@JohnsBasement
@JohnsBasement 5 ай бұрын
It is like comparing a value against a NAN. Anything compared to a NAN shall be false.
@barongerhardt
@barongerhardt 5 ай бұрын
@@JohnsBasement That makes me think of the phrase "not even wrong."
@JohnsBasement
@JohnsBasement 5 ай бұрын
@@barongerhardt I've been there! 😂
FPGA #11 - Priority Routing Network
7:36
John's Basement
Рет қаралды 643
Z8S180 Breakout Board Testing Pt. I
41:06
John's Basement
Рет қаралды 797
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 17 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 45 МЛН
3 PYTHON AUTOMATION PROJECTS FOR BEGINNERS
17:00
Internet Made Coder
Рет қаралды 1,6 МЛН
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 830 М.
FPGA #19 - A look at the iCE40 Technology Library
1:07:35
John's Basement
Рет қаралды 956
FPGA #12 - Verilog Always Pt. I (Combinational Circuits)
56:51
John's Basement
Рет қаралды 2,6 М.
FPGA #13 - Verilog Always Pt. II (Nonblocking Assignments)
34:28
John's Basement
Рет қаралды 541
An Introduction to VGA Signal Timing
1:03:27
John's Basement
Рет қаралды 1,1 М.
Python's Walrus Operator??
2:39
b001
Рет қаралды 123 М.
📱магазин техники в 2014 vs 2024
0:41
djetics
Рет қаралды 339 М.
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 351 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
Kumanda İle Bilgisayarı Yönetmek #shorts
0:29
Osman Kabadayı
Рет қаралды 2,3 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 28 МЛН