Learning hardware logic design with GNU tools

Source: Internet
Author: User
Article Title: Use GNU tools to learn hardware logic design. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. 1. ASIC application field;

The above topic is the main Application field of modern ASIC (Application Specific Intergrated Circuits) technology. It can be roughly divided into three aspects.

First: Chip Design and verification, which is currently the most popular field;

Second: in the field of numerical control, automation, special instruments, and special equipment, it is difficult to find general-purpose chips for mass production due to special requirements, therefore, using CPLD/FPGA to implement hard logic becomes the only choice;
  
Third: In scenarios where on-site system reconstruction is required, such as mobile phones and on-board electronic devices, on-site programming of CPLD/FPGA based on real-time tasks of different systems, to adapt to different algorithms and control tasks;

It is not commensurate with the wide application of CPLD/FPGA. It is because open-source and free software are still relatively primitive in ASIC, to be like Apach, GCC... I am afraid there is still a long way to go when these open-source software are as mature as they are, but as learning or circuit simulation of a limited number of small and medium sizes, the existing GNU tool should be a good choice, because the current commercial ASIC tool is too expensive.

This article is just an introductory article. It uses a simple example of an open-source project to describe the basic concept of hardware design. You can learn the knowledge involved in this article by yourself. Interested friends can go to open source hardware design site http://opencores.org look at the above from the CPU, memory to a variety of communication controller design everything.

This article describes how to use Gentoo Linux as a system. If you use other distributions, install the corresponding software package (iopengl, gtkwave ). The hardware description language is in OpenGL.


2. Install the application;

Let's make a hardware design hello world:

Step 1: Install related software packages

# emerge iverilog gtkwave


Step 2: Compile the source code

$ cp -rv /usr/share/doc/iverilog-0.8 ~
$ gunzip ~/iverilog-0.8/*.gz

We will copy and decompress the iopengl document to our user directory, which contains some examples and articles of iopengl. You can read them on your own. Now let's use a simple example of Memory Design to practice.

$ cp ~/iverilog-0.8
$ iverilog -o show_vcd show_vcd.vl

This will compile a simulation script command. /show_vcd: Run this command to get a simulation file show_vcd.vcd. We can use another GNU Project gtkwave to view the pins of the chip design and the timing of various registers.

$ ./show_vcd
$ gtkwave ./show_vcd.vcd &

The above command opened the simulation file, but under normal circumstances, you still cannot see anything. In the gtkwave window, select "Search"-> "Signal Search Tree". The Signal viewing selection window is displayed. Click the chip pin or register you want to view, and then click "Append, the corresponding time series signal is displayed in the main gtkwave window.

The two appendixes in this article are the simulation results of I used iopengl + gtkwave and commercial software Xilinx ModelSim respectively. We can see that the simulation results of the GNU tool are exactly the same as those of the commercial ASIC tool.

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.