Author Topic: Verilog or VDHL.  (Read 20197 times)

0 Members and 1 Guest are viewing this topic.

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Verilog or VDHL.
« on: October 05, 2018, 08:46:50 pm »
I'm about to dive into learning FPGA's.    It seems its almost a religous level war, if you choose to use Verilog or VDHL..   

Any suggestions about a path to follow.
On a quest to find increasingly complicated ways to blink things
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11258
  • Country: us
    • Personal site
Re: Verilog or VDHL.
« Reply #1 on: October 05, 2018, 08:51:01 pm »
Try both, see which one you like most.

I personally like Verilog. VHDL is far too verbose for me. On the other hand, VHDL has some nice features that were only added in SystemVerilog. But with SystemVerilog, you basically get all you will realistically need.

Just anecdotally, I see more Verilog in the industry.
Alex
 

Online langwadt

  • Super Contributor
  • ***
  • Posts: 4427
  • Country: dk
Re: Verilog or VDHL.
« Reply #2 on: October 05, 2018, 09:02:10 pm »
Try both, see which one you like most.

I personally like Verilog. VHDL is far too verbose for me. On the other hand, VHDL has some nice features that were only added in SystemVerilog. But with SystemVerilog, you basically get all you will realistically need.

Just anecdotally, I see more Verilog in the industry.

afaict it is also a regional thing, Europe mostly VHDL, USA mostly verilog
 
The following users thanked this post: jancumps

Offline jmelson

  • Super Contributor
  • ***
  • Posts: 2765
  • Country: us
Re: Verilog or VDHL.
« Reply #3 on: October 05, 2018, 10:08:58 pm »
I'm about to dive into learning FPGA's.    It seems its almost a religous level war, if you choose to use Verilog or VDHL..   

Any suggestions about a path to follow.
It ** IS ** a religious war!
If you think of FPGA design like coding a program in C (big mistake) Verilog looks real comfortable, but that leads you into a fallacy.
Verilog does a lot of type conversions, etc. on the sly, and these can bite you.

VHDL requires you to specify any type conversions where there could be unpleasant side effects, but will do certain ones where it is deemed safe.
I really have not seen VHDL as being more verbose IN THE THINGS that I tend to do, so it doesn't bother me.  I do admit if you are doing numerical algorithms (digital filtering, image manipulation, cipher work, etc.) then Verilog may be much better to express it, but if you are doing state machines, registers, address decoding, etc. then I find VHDL works fine, too.

Jon
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: Verilog or VDHL.
« Reply #4 on: October 05, 2018, 10:26:05 pm »
IMHO it is more important to use a HDL to describe what functionality you need instead of thinking in logic and feed that to the synthesizer. Thinking in logic and thus taking over the job from the synthesizer is like using inline assembly in C to create a program. Whatever HDL you use, it will be much harder to work this way. Just like using inline assembly building the logic yourself is only necessary where size and/or speed really matter.

Unfortunately there are very few examples floating around that really use the power of an HDL. Most just approach problems in a dumb & very verbose way which ends with writing an endless amount of code with a lot of nearly similar lines being repeated over and over. For fun Google a priority encoder in Verilog or VHDL. 9 out of 10 write a single line for each input condition  :palm:  Like any programming language a HDL will take time to learn on how to use it's full potential.
« Last Edit: October 05, 2018, 10:58:28 pm by nctnico »
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11258
  • Country: us
    • Personal site
Re: Verilog or VDHL.
« Reply #5 on: October 05, 2018, 10:28:25 pm »
The reason for this is that HDL tools (at least for FPGA) suck at inferring stuff. And the worst of all, they suck differently for different vendors. So in many cases you have to write strange code that you would not otherwise.

This is especially frustrating with memories and trying to get tools to infer BRAMs. Altera is horrible at it.
Alex
 

Online NorthGuy

  • Super Contributor
  • ***
  • Posts: 3146
  • Country: ca
Re: Verilog or VDHL.
« Reply #6 on: October 05, 2018, 11:28:39 pm »
I'm about to dive into learning FPGA's.    It seems its almost a religous level war, if you choose to use Verilog or VDHL..   

Any suggestions about a path to follow.

Doesn't really matter. Try both and see what you like.
 
The following users thanked this post: mrpackethead

Offline martinayotte

  • Regular Contributor
  • *
  • Posts: 64
Re: Verilog or VDHL.
« Reply #7 on: October 06, 2018, 12:08:30 am »
It seems its almost a religous level war, if you choose to use Verilog or VDHL..   

As other mentioned, I personally think that Verilog is more concise and more readable, but if you need sometime some opencore included in your project, sometime you can't force original author to publish it in Verilog. So, your project will then need to mixed both ...
It is up to you to choose in which language the top level will be ...
 

Online rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: Verilog or VDHL.
« Reply #8 on: October 06, 2018, 12:23:48 am »
It's kind of like Pascal vs C.  Yes, Pascal is relatively verbose but the upside is it won't let you shoot yourself in the foot.  C doesn't provide much in the language to prevent mistakes and, instead, relies on the programmer to know what they are doing.

I started with VHDL and I'm going to stay with VHDL.  Every time I look at Verilog I just get confused.  I'm sure the reverse could be true for others.

The other side of the deal is that had I started with Verilog, I would probably find VHDL wordy.  In the end, you probably need to learn both languages (or substitute SystemVerilog for Verilog) and you should probably alternate between projects.  Or even in the same project - it should work!

One of the big contributors on this forum is hamster_nz.  Look at his wiki for examples of VHDL code.

http://hamsterworks.co.nz/mediawiki/index.php/Main_Page
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Verilog or VDHL.
« Reply #9 on: October 06, 2018, 04:19:27 am »
I have some project ideas in mind but am wanting to explore, that will probably require devices that are bigger and more complicated.    I saw on crowdsupply.com some EasyFPGA modules, using the LatticeXO-2 IC's, which were very low cost.   Thats interesting for another reason as they may be useful for some other projects, but also, its a very low cost investement.

What would you recommend if you had a budget of $500 to buy some dev boards / tools etc for starting out.
On a quest to find increasingly complicated ways to blink things
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Verilog or VDHL.
« Reply #10 on: October 06, 2018, 04:38:21 am »
Try both. I personally prefer VHDL and find Verilog to be a bit to abbreviated looking and hard to follow. In the end it doesn't really matter though, both languages have identical capabilities, you can infer exactly the same logic with either one.

If I had $500 to spend, I'd buy a $15 Cyclone II FPGA dev board and USB programming cable and save the other $480 for more advanced stuff once I was proficient. It was a couple years before I was making anything too big to fit in the cheap boards and I still use them in a lot of projects because they're good enough to fit a complete 8 bit ocmputer in the FPGA and they're cheap.

Do you know what you want to make?
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Verilog or VDHL.
« Reply #11 on: October 06, 2018, 05:06:05 am »
I've got some LED driver projects, which are quite simple.  ( but do not scale well with microprocessors )...

But What i want to do, is some projects with SDI video and IP over ethernet.

On a quest to find increasingly complicated ways to blink things
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Verilog or VDHL.
« Reply #12 on: October 06, 2018, 05:08:45 am »
Video will take a bit more, but you should be able to get a suitable FPGA dev board for <$100 that has HDMI or other LVDS ports on it, many have ethernet too. Either way something cheap will get you started and by the time you run out of resources you'll probably have a pretty good idea of what you need.
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Verilog or VDHL.
« Reply #13 on: October 06, 2018, 05:40:20 am »
the lattice XO2 on paper looks attractive, as i dont' need to attach anything next to it, to make it useful.. Thoughts?    Lattice, altera? Xilinx?
On a quest to find increasingly complicated ways to blink things
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11258
  • Country: us
    • Personal site
Re: Verilog or VDHL.
« Reply #14 on: October 06, 2018, 05:44:20 am »
Altera MAX10 does not need anything either.
Alex
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Verilog or VDHL.
« Reply #15 on: October 06, 2018, 05:45:51 am »
Try the software, that's the important part. Those are the big three FPGA vendors, Lattice is a distant third in terms of hobbyist use/support. They all offer parts with similar capabilities, and in all cases you are stuck with the software package provided by the vendor of the parts you choose to use.

Nice thing about HDL is you can write rather platform agnostic code so porting between FPGA vendors/families is quite easy.
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Verilog or VDHL.
« Reply #16 on: October 06, 2018, 05:49:56 am »
Try the software, that's the important part. Those are the big three FPGA vendors, Lattice is a distant third in terms of hobbyist use/support.

Don't intend to be doing this as a hobby.   What makes their software third?

Quote

They all offer parts with similar capabilities, and in all cases you are stuck with the software package provided by the vendor of the parts you choose to use.


whats similar to somethign like an XO2-1200       ( i was lookign at the 32 pin one, in a QFN package )..


On a quest to find increasingly complicated ways to blink things
 

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: Verilog or VDHL.
« Reply #17 on: October 06, 2018, 06:14:18 am »
I've got some LED driver projects, which are quite simple.  ( but do not scale well with microprocessors )...

But What i want to do, is some projects with SDI video and IP over ethernet.

For SDI at any decent speed you pretty much have to engineer/design own board - you need to use high speed transcievers, add line drivers, and set up the required reference clocks.

IP (usually UDP) is relatively easy. TCP/IP requires a lot of resources and is a very complex protocol (e.g. MTU path discovery, slow start, fragmentation, retransmits...). TCP is best left to a (either hard or soft) CPU.
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 

Offline martinjaymckee

  • Contributor
  • Posts: 16
Re: Verilog or VDHL.
« Reply #18 on: October 06, 2018, 06:25:01 am »
If this is just for your own projects, I would absolutely suggest (with everyone else!) that you try them both out.  I did that when I was starting out and I am very glad that I did.  They both have strengths.

Cheers,
Martin Jay McKee
 

Online iMo

  • Super Contributor
  • ***
  • Posts: 4784
  • Country: pm
  • It's important to try new things..
Re: Verilog or VDHL.
« Reply #19 on: October 06, 2018, 06:35:05 am »
My own stuff is written in verilog. As there is a lot of open source VHDL code you have to understand VHDL as well. Soon or later you have to mess with both.
 

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Verilog or VDHL.
« Reply #20 on: October 06, 2018, 06:38:39 am »
For SDI at any decent speed you pretty much have to engineer/design own board - you need to use high speed transcievers, add line drivers, and set up the required reference clocks.
I'm wanting to insert and remove the audio channels that are on the SDI.   Semtech make some all in one front ends for the SDI, which look like a good starting point.    For most systems the audio will turn up as either AES digital or Line level Audio.   What i want to do is take the audio and use it as a Dante  ( AoIP ) source.  ( or insert dante based audio ).

IP (usually UDP) is relatively easy. TCP/IP requires a lot of resources and is a very complex protocol (e.g. MTU path discovery, slow start, fragmentation, retransmits...). TCP is best left to a (either hard or soft) CPU.
[/quote]
On a quest to find increasingly complicated ways to blink things
 

Offline AG7CK

  • Regular Contributor
  • *
  • Posts: 131
  • Country: th
Re: Verilog or VDHL.
« Reply #21 on: October 06, 2018, 06:52:46 am »
This reminds me of the test equipment forum: An amazing amount of people find it necessary to ask which oscilloscope THEY should buy - even if there are hundreds of posts on all instruments already.

Here are 100+ posts from 2016: Verilog or VHDL?

https://www.eevblog.com/forum/microcontrollers/verilog-or-vhdl/

(Easily found by the string "site:https://www.eevblog.com/forum/ verilog vhdl" or similar in a web search field.)
 
The following users thanked this post: Bassman59

Offline mrpacketheadTopic starter

  • Super Contributor
  • ***
  • Posts: 2845
  • Country: nz
  • D Size Cell
Re: Verilog or VDHL.
« Reply #22 on: October 06, 2018, 08:15:33 am »
This reminds me of the test equipment forum: An amazing amount of people find it necessary to ask which oscilloscope THEY should buy - even if there are hundreds of posts on all instruments already.

Here are 100+ posts from 2016: Verilog or VHDL?

https://www.eevblog.com/forum/microcontrollers/verilog-or-vhdl/

(Easily found by the string "site:https://www.eevblog.com/forum/ verilog vhdl" or similar in a web search field.)

Thanks for such a useful post.  Strangley enough i'd already read most of those.  There have been quite a few folks quite happy to discuss the topic.   Your welcome too.  Whats your preference verilog or VDHL AG7CK
On a quest to find increasingly complicated ways to blink things
 

Online NorthGuy

  • Super Contributor
  • ***
  • Posts: 3146
  • Country: ca
Re: Verilog or VDHL.
« Reply #23 on: October 06, 2018, 02:36:01 pm »
Lattice, altera? Xilinx?

You can start from software. They're all huge and slow. Install all the tools. Select the one you like the most (or hate the least). There are lots of things you can learn before even buying a board. You can do simulations. You can build example projects and see what size FPGA you may need - it's nearly impossible to figure out before you start.
 

Offline dmills

  • Super Contributor
  • ***
  • Posts: 2093
  • Country: gb
Re: Verilog or VDHL.
« Reply #24 on: October 06, 2018, 02:58:01 pm »
So you just want a de-embedder and AoIP output?

Dante will cause you problems because Audinate keep some bits closed, but AES67 should be workable (Or ST2110-30, pretty much the same thing), and AES67 will interrop with Dante in at least some Brooklyn II versions.
For 3G-SDI stuff something like an Artex-7 is a good fit, having the transceivers you will need, and Yea, Semtech or TI for the line equalisers.

The elephant in the room with that project is clocking, because unless the SDI and PTP clocks are locked to the same reference you will need an ASRC core in there to avoid glitches. Also on the subject of clocking make sure you connect a suitable clock generator for the transceivers and SDI processing, 148.5MHz and 148.35MHz  are the conventional choices for 274M video, SIlabs parts are the common answer.

Regards, Dan.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf