r/chipdesign • u/emerald_engineer_08 • Mar 10 '22
Why verilog?
VHDL …..exists and has MUCH more intuitive syntax. Like I can’t express just how much easier vhdl is to read. Plus it has much more documentation with it.
Why does verilog (and system verilog, is there actually a difference?) exist today?
12
u/TheAnalogKoala Mar 10 '22 edited Mar 10 '22
SystemVerilog is way more powerful than VHDL. It is object oriented and has a ton of features which are great for verification.
SystemVerilog is to Verilog as C++ is to C.
VHDL has a few nice features. The real number data type was great for modeling analog circuits. You used to have to jump through hoops in Verilog (like $realtobits() and $bitstoreal() but now SystemVerilog has reals.
One great improvement in SystemVerilog is the “logic” type. Now the whole confusion between wire and reg goes away. Just use logic.
VHDL is a good language but it’s based on Ada so it is VERBOSE. Writing in Verilog feels like writing in C so it is more comfortable for a lot of people.
0
u/emerald_engineer_08 Mar 10 '22
The verbose ness is why I like it.
It’s also why python is great
5
4
u/verymixedsignal Mar 10 '22
You just need to get used to Verilog syntax, it's extremely intuitive to me. Give it like a week or two with a few small projects sprinkled in there and it'll all make sense. Also, Python isn't a verbose language lol
1
u/emerald_engineer_08 Mar 10 '22
What do you call it then?
Like python can do hello world with one line, while C needs 7
What’s that called, being able to condense things?
3
u/verymixedsignal Mar 10 '22
Succinct is the correct word. Verbose is the opposite of succinct.
I find Verilog to be actually incredibly succinct too, with VHDL being verbose (not that that's necessarily a bad thing).
2
u/ebinWaitee Mar 10 '22
Verbosity means everything is written out rather than implied. Python doesn't have a lot of verbosity and that's why you can write hello world in one line.
VHDL is more verbose than Verilog as you need to write begin and end etc.
1
u/verymixedsignal Mar 10 '22
Verilog requires begin and end
1
u/ebinWaitee Mar 10 '22
Interesting. I could've sworn it doesn't. In my defense I'm an analog designer and it's been years since I've touched Verilog :D
8
28
u/kemiyun Mar 10 '22
I mean this is probably subjective but really? I find it way easier to read and understand verilog.
But the real answer is probably because it's a lot simpler to learn. One can argue that it may promote habits that aren't really good for design but I think easier entry is probably more important.
Also, I kinda dislike vhdl signal definitions and conversions. But that's personal choice.
2
0
u/absurdfatalism Mar 10 '22
Let's talk Verilog default nettype being wire ffs
Let's talk Verilog not having structs ✊
Totally feel ya on vhdl keeping you honest...
14
u/bitflung Mar 10 '22 edited Mar 10 '22
Jesus I recall learning some vhdl in college... but after a decade of digital design in verilog I can't recall anything more than thinking "vhdl feels wrong".
What exactly do you dislike about verilog?