Source: http://blog.sina.com.cn/s/blog_3ef1296d0101aob6.html
three, FPGA pin allocation file Preservation methodWhen using someone else's project, sometimes can't find his pin file, but can save his already bound pin, output to the file.method One:View pin bindings, Quartus-Assignment, Pins, open the FPGA pin interface, where the pin file can be saved in CSV format (tabular format) and TCL format in t
ArticleDirectory
Introduction
Build HDL
Hardware settings
Software Development
Statement: This article is original works, copyright belongs to the author of this blog, If You Need To reprint, please indicate the source of http://www.cnblogs.com/kingst/
Introduction
As an embedded software-core processor built on FPGA, niosii can add any provided peripherals as needed, you can also customize user logic peripherals and Custom Us
1. Asynchronous resetAlways @ (Posedge sclk or Negedge s_rst_n)if (!s_rst_n)D_out else D_out The consolidated RTL view is as follows:You can see that the register d_out has a low-level effective reset signal S_rst_n port, even if the design is high power level, the actual synthesis will also reverse the asynchronous reset signal back to the CLRN end;2. Synchronous resetAlways @ (Posedge sclk)if (!s_rst_n)D_out else D_out The consolidated RTL view is as follows:It can be seen that the synchronous
1 speed and area
The overall speed and area optimization will implement the logical topology that RTL will use. For FPGA, because of the lack of backend knowledge, comprehensive tools will mainly implement door-level optimization. Generally, higher speed requires higher concurrency and larger area, but this is not the case in some special cases. Because the layout and wiring of FPGA have a second-order effe
When FPGA area optimization 1 does not require high speed, we can design the pipeline into an iterative form to reuse resources with the same FPGA functionality.
2. When the control logic is smaller than the sharing logic, the control logic resources can be used for reuse. For example, in the implementation of the FIR filter, the multiplier is a shared resource. We can implement the state machine by contro
Link: http://www.altera.com.cn/literature/wp/wp-01166-bdti-altera-floating-point-dsp.pdf
In the future, it will be more meaningful to conduct a comparison test of Xilinx DSP architecture FPGA based on the testing method in this article.
But remember: the human brain is the best optimizer!
Introduction:
OverviewFPGAs are increasingly used as Parallel Processing engines for demanding digitalSignal processing applications. benchmark results show that on
I. Summary
Summarize the distribution and storage methods of FPGA pins in US us II.
Ii. Pin Allocation Method
In addition to qii software, you can select the "assignments-> pin" label (or click the button) to open the pin planner and assign the pin. The following two methods are available for Pin allocation.
Method 1: Import assignments
Step 1:
Use notepad or similar software to create a TXT file (or CSV file) and write the pin distribu
In FPGA code design, remember to have a "principle". For three-state ports, try to use three-state ports in the top-layer modules instead of internal sub-modules. Otherwise, there will be a series of problems, I have always followed this principle to design the code. The figure shows a little curious. in the computer, most modules mounted on the bus are in three states, as a result, each of the three-state sub-modules connects to the outside through a
to be followed when they are used.
7. Unexpected pain points may occur when IP addresses are used. Therefore, do not use assumptions to imagine the Module Settings. Instead, try to adapt to the environment and configure your own design. As an FPGA player, this ability to change according to the environment is required.
8. Considering cashes settings, there are two types of cash: one is used for instruction caching and the other is used for d
prompting you to design the output of the BUFG to a non-clock pin, which is the ILA logic.In S6, it is recommended that the global clock output only connect to the clock pins, otherwise it is difficult to cause cabling problems easily. The constraint of adding clock_dedicated_route can reduce this error to alarm and continue to run layout and cabling. It is important to note that this constraint does not force the CLK_WE signal to pass through BUFG, but rather tells the tool to ignore such non-
Fanout, that is, fan-out, refers to the module directly called the number of sub-modules, if this value is too large, the FPGA directly displayed as net delay is larger, not conducive to timing convergence. Therefore, you should try to avoid high fan-out when writing code. However, in some special cases, the need of the overall structure design or the inability to modify the code constraints, you need to solve the problem of high fan out through other
) Synchronization of data between MCU side and FPGA end.SPI data from the MCU output, MCU and FPGA is not the same clock domain, you can use the simplest D trigger to achieve data synchronization. The edge detection of the rising edge requires two D flip-flops, in order to ensure the synchronization of the SPI data, the other signals are also synchronized through two levels of trigger output.Access Spi_data
Design Concept of FPGA Asynchronous FIFO (2)
First, we will discuss the Gray code encoding method:
Let's first look at the 4-bit gray code. When MSB is 0, the positive count is displayed. When MSB is 1, that is, the pointer has already passed through, and the highest digit is flipped. At this time, the gray code is counted in reverse order, the entire set of data is symmetric centered on the maximum value (depth), and each number meets the Gray code
The zero crossing detection method is the function of the comparator. It can convert a sine wave of a certain frequency into a square wave or a pulse wave. This is necessary in the test frequency and other places, because FPGA only recognizes the edge, but does not recognize the sine wave.
The algorithm is divided into two parts: the determination of the zero point and the generation of the pulse wave.
Why do we need to determine the zero point. We
compile-compile all.
5. Select the library tag, find work, and click + to expand
6. Right-click the compiled. V file and select simulate without optimization.
7. The sim tab is displayed. Right-click the file to be simulated and select Add wave.
8. Set the simulation time, for example, 1000ns
9. Click Run in the toolbar.
Figure 3 shows lfsr simulation results
Figure 3: lfsr simulation waveform
Analysis:
The software used for analysis is mainly chipscope pro. For details about how to use chipsc
FPGA simulation, mainly including FPGA manufacturer software simulation and third-party edatool simulation.
If you use quartuⅱ software, there are two methods: function and timing.
Function:After synthesis, execute the generate function simulation netlist to implement it, with a door latency.
Timing:It must be completed after compile, including the door latency and path latency.
If Modelsim edatool
In a digital logic system, there are only high voltage and low level. Therefore, it indicates that a number is only in the integer form, and there are three Representation Methods: original code representation (symbol plus absolute value), reverse code notation (symbol plus reverse code) and complement code notation (symbol plus complement ). These three methods are widely used in FPGA development.
1. Original code representation
The original code rep
Fanout, that is, the number of lower-level modules directly called by the module. If this value is too large, the FPGA directly shows a large value of net delay, which is not conducive to Time Series Convergence. Therefore, you should try to avoid high fan-out situations when writing code. However, in some special cases, it is necessary to use other optimization methods to solve the problems caused by high fan output due to the need for the overall st
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.