Histograms are often a useful tool for analyzing digital data. However, to obtain reliable results from a histogram, a large amount of data must be obtained, usually 100,000 to 1 million points. If you need to analyze the digital output of an ADC, you can use an FPGA (Figure 1).
The figure shows the histogram, RAM, and pulse generator sections used to capture and display the histogram calculated based on 14-bit data. The RAM block is the built-in RAM of the FPGA, while the histogram block is the VHDL (High-Level Design Language) code used for the calculation. The 14-bit parallel data Device_ Data[13..0] from the ADC enters the histogram block and enters the Rd_Addr input of the RAM. The RAM provides data at its address location RAMDataOut[ 15..0]. This data is looped back to the histogram block, which is incremented by 1 and sent to a 16-bit data output terminal DataOut[15..0]. When the WREN (write enable) terminal is at logic level 1, the data is written to the address at pin Wr_Addr[13..0]. This method is the same as if the data comes from Device_Data[13..0].
RAM has a fixed delay from input to output. That is, when the input is Rd_Addr, the data appears at its output RAMDataOut after a fixed delay. This delay varies with different FPGAs. Pay attention to this delay so that there is a delay of two clocks to Device_Data and then calculate the histogram. The delay in RAM should be less than two clock cycles; otherwise, there may be data loss. This constraint limits the maximum frequency of Device_Clk.
Cntr_Value gives the number of input data used to calculate the histogram. The Pulse_Gen block generates a pulse into the input Rst_Cntr to reset the counter. At this point, the histogram part calculates the histogram again with the next set of input data from Cntr_Value. Cntr_Value is 15 bits, but it can be increased to get more histogram data.
The Sel_Data and Rst_RAM signals reset the data stored in the FPGA RAM. When the Rst_RAM pin is high, all bits of the DataOut pin of the histogram block are 0. When the Sel_Data input pin of the histogram block is high, the output of RAM_Wr_Addr is not Device_Data, but an internally generated ramp that rises from 0 to 16384. The histogram block does not perform calculations because doing so would reset the address of the RAM.
Figure 1. The histogram calculation circuit obtains data from a RAM block in an FPGA.
When the FPGA has completed the histogram calculation, the RAM can select Sel_Data to be logic high and keep Rst_RAM to be logic low to read the histogram data. The data in the RAM address exits the output pins sequentially and the data can be transmitted to a PC. Since all blocks operate with a single clock Device_Clk, this design is simple and helps meet the timing constraints. This design can be easily modified to obtain 16-bit or 12-bit data histograms.
Previous article:Building a UWB Pulse Generator on an FPGA
Next article:Improvement strategy of TMR method based on FPGA
Recommended ReadingLatest update time:2024-11-16 19:34
- Popular Resources
- Popular amplifiers
- Analysis and Implementation of MAC Protocol for Wireless Sensor Networks (by Yang Zhijun, Xie Xianjie, and Ding Hongwei)
- MATLAB and FPGA implementation of wireless communication
- Intelligent computing systems (Chen Yunji, Li Ling, Li Wei, Guo Qi, Du Zidong)
- Summary of non-synthesizable statements in FPGA
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Linux self-study notes (Part 3) Linux system startup process
- [Raspberry Pi 4B Review] + TCP Server and HTTP Communication
- 【TGF4042 Signal Generator】+8th issue AM modulation
- It’s the last day. Who can name more RISC-V core products?
- Measuring poles and zeros from a Bode plot
- LM324 mask
- MSP430 default MCLK, SMCLK, ACLK clock frequency
- Excellent Award-winning Works: High Power Factor Power Supply
- Download the information and get free gifts! A century of technology, a decade of disruption: How to survive in the electric vehicle revolution?
- DSP28335 R&D Notes