Use GNU tools in Linux to learn hardware logic design
Source: Internet
Author: User
Linux uses GNU tools to learn hardware logic design-general Linux technology-Linux programming and kernel information. The following is a detailed description. ASIC application field
The main Application fields of modern ASIC (Application Specific Intergrated Circuits) technology 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.
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.
Let's make a hardware design hello world:
Step 1. Install related software packages:
# Emerge iopengl gtkwave
Step 2: Compile the source code of the source code in the following example:
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.
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.
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