Help Center
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:
  • Call Us
    9:00 - 18:00, Mon.- Fri. (GMT+8)
0

Verilog and VHDL

Published on 2/1/2017 7:55:46 PM

Description

<style>.e_editor{font:14px/24px Arial,'microsoft yahei','Times New Roman','b8bf53';}.e_editor div,e_editor p,e_editor td,e_editor th,e_editor li{font-weight:inherit;font-size:inherit;font-style:inherit;font-family:inherit;}.e_editor ul{margin:-10px 0 20px;}.e_editor li{padding:5px 0;}.e_table{width:96%;border-collapse:collapse;empty-cells:show;}.e_table th,.e_table td{padding:5px;border:2px solid #eee;}.e_img{padding:10px 0;text-align:center;}.e_p{line-height:20px;padding:0 0 20px;text-indent:0em;}</style><p><img src="https://jpfile1.oss-cn-shenzhen.aliyuncs.com/allpcb/web/image/20190604/6369526580529466792885207.png" width="602" height="362" title="undefined" alt="20160711133840_725.png"/> </p><p> If you want to be an FPGA programmer, which of the two dominant FPGA programming languages do you learn? This question is asked so often by engineers new to the field of digital design, you’d think there would be a definitive answer. In this article I’m going to cover the main differences, pros, and cons about each language. </p><p><strong>Before we start, let&#39;s review what are the 2 dominant FPGA programming languages?</strong> </p><p> What is VHDL? </p><p> VHDL (VHSIC Hardware Description Language) is a hardware description language used in electronic design automation to describe digital and mixed-signal systems such as field-programmable gate arrays and integrated circuits. VHDL can also be used as a general purpose parallel programming language. </p><p><img src="https://file.allpcb.com/bbs/p/jps-pcb/upfile/2016/07/20160711133346_675.png" width="610" height="414"/> </p><p> What is Verilog? </p><p> Verilog is a hardware description language (HDL) used to model electronic systems. It is most commonly used in the design and verification of digital circuits at the register-transfer level of abstraction. It is also used in the verification of analog circuits and mixed-signal circuits, as well as in the design of genetic circuits. </p><p><img src="https://jpfile1.oss-cn-shenzhen.aliyuncs.com/allpcb/web/image/20190604/6369526501683927298643064.png" alt="20160711133407_874.png"/></p><p><strong>The Right Question</strong> </p><p> The wrong question is, “which language should I learn?”. The better question is, “which language should I learn first?”. Surprisingly, it really doesn’t matter which language you learn now, because you’re going to end up working with both. It’s not as scary as it sounds! </p><p> Learning Verilog after VHDL (or vice versa) is like getting into shape by running and then switching to cycling after a few months. Either sport will get you into shape, and while the muscle groups you use in the two sports aren’t exactly the same, both activities will make your heart strong enough for either of the sports. Likewise, the concepts you learn in VHDL will transfer easily to Verilog, or the other way around. Don’t get caught up thinking that you’re pinning your FPGA programming career down to one language. </p><p><strong>Choose the Language That Suits Your Needs</strong> </p><p> To answer the question of VHDL vs Verilog, you should really keep in mind your goals and where you’ll be using the language. In the United States, the commercial industries tend to use more Verilog, while the aerospace and defense industries more heavily favor VHDL; the language you learn should reflect which industry you’re more interested in. </p><p> Also consider the depth and style you’re comfortable working at. VHDL lends itself to describing hardware at more abstracted levels (like case statements, if/then, etc.), while Verilog is good at describing hardware down to the gate level (nand, xor, etc.). If you’re not familiar with schematic layout or your background is heavy in computer programming, you might be better off using VHDL until you really get familiar with the physical FPGA constructs. </p><p><strong>VHDL: A Great Learning Language</strong> </p><p> If you have no language inclination either way, then my recommendation is VHDL. VHDL is a strongly-typed language, so syntax errors are found more easily by the compiler instead of manually combing through the code looking for an improper usage that is causing problems. </p><p> Verilog is somewhat more flexible, but the syntax rules will let you create circuit connections you probably didn’t intend to make, and some of the syntax nuances are confusing for a beginner (wire vs reg). Many engineers who learn Verilog first say that crossing to VHDL was difficult, while I’ve never heard that from the opposite view. </p><p> If you have guidance while you learn your first language, like an experienced colleague to help you learn and bounce questions off, then my prefered language is Verilog. </p><p><strong>Comparison and Contrast</strong> </p><p> Beyond considerations for learning your first language, both languages have their advantages and disadvantages. </p><p><strong>VHDL</strong> </p><p> </p><p><strong><img src="https://file.allpcb.com/bbs/p/jps-pcb/upfile/2016/07/20160711132250_466.png"/></strong> </p><p> </p><p><strong><img src="https://file.allpcb.com/bbs/p/jps-pcb/upfile/2016/07/20160711132303_972.png"/></strong> </p><p> </p><p><strong>Verilog</strong> </p><p> </p><p><strong><img src="https://file.allpcb.com/bbs/p/jps-pcb/upfile/2016/07/20160711132325_267.png"/></strong> </p><p> </p><p><strong><img src="https://file.allpcb.com/bbs/p/jps-pcb/upfile/2016/07/20160711132335_343.png"/></strong> </p><p> If you’re looking to learn either language, there are two “go-to” books for learning hardware description language (HDL). For VHDL, I recommend The Designer’s Guide to VHDL by Peter Ashenden. For Verilog, I recommend Verilog HDL by Samir Palnitkar. </p>

266

comment

All comments

Unknown

7649

0

266

Go to Order My Own PCB

Rules about cashback: 1. Valid time: ALLPCB cashback activity will end on April 1st. 2. Capped amount: The capped amount of cashback for each account is $5,000. Each order can get a maximum of $2,000 cashback. That means every author can get $5,000 max. 3. Cashback range: The cashback activity only covers the corresponding PCB order. The order amount for other combined payment products will be invalid. 4. Clicking your own promotional link will be invalid. The same email address, shipping address, contact information, and phone number are all recognized as the same account. 5. ALLPCB has the final interpretation right of the cashback activity.

ALLPCB will donate 2% to the author for this promotion link.

Other Projects

Home / Industrial Automation low Cost with Arduino an ESP01

2460

0

314

Alternate Text josemarjr