CN106502630B - A kind of system based on the soft core acquisition ASCII form data of FPGA - Google Patents
A kind of system based on the soft core acquisition ASCII form data of FPGA Download PDFInfo
- Publication number
- CN106502630B CN106502630B CN201610877594.3A CN201610877594A CN106502630B CN 106502630 B CN106502630 B CN 106502630B CN 201610877594 A CN201610877594 A CN 201610877594A CN 106502630 B CN106502630 B CN 106502630B
- Authority
- CN
- China
- Prior art keywords
- data
- dual port
- fifo
- port ram
- fpga
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/3004—Arrangements for executing specific machine instructions to perform operations on memory
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The invention discloses a kind of systems based on the soft core acquisition ASCII form data of FPGA, which includes one piece of digital signal processing chip and fpga chip;It include serial data receiving module, first in, first out buffer area FIFO, soft core, data conversion module and the first dual port RAM in fpga chip;Serial data receiving module receives externally input ASCII form data, and is sent in FIFO;The second dual port RAM is created in soft core, the second dual port RAM data bit is 32;Soft core reads data parallel parsing in FIFO, extracts information needed, sends the information needed in the second dual port RAM;Information needed is read out carry out data conversion by data conversion module from the second dual port RAM, and transformation result is stored in the first dual port RAM;First dual port RAM is connected with digital signal processing chip;Digital signal processing chip reads above-mentioned transformation result from the first dual port RAM, realizes reception of the digital signal processing chip to ASCII form data.
Description
Technical field
The invention belongs to electrical engineering technical field, be related to a kind of be based on the soft core acquisition ASCII form data of FPGA
System.
Background technique
Since FPGA is good at compared in terms of timing control in combinational logic, it is not so good as to use C language in terms of parsing ASCII protocol
Speech parsing is convenient.Therefore, it is desirable to solve the problems, such as this by the soft core (microblaze) of FPGA, microblaze is as FPGA's
A kind of embeded processor can be adopted and show a C language program and avoid the weakness of FPGA in this respect.
However ASCII is 8 data modes, the 32 data bit forms and digital signal that can be handled with the soft core of FPGA
The 16 of processor are that data bit form is different, therefore has certain difficulty using fpga chip processing ascii data, at present
There has been no effective solution methods.
Summary of the invention
In view of this, can be realized the present invention provides a kind of system based on the soft core acquisition ASCII form data of FPGA
Fast resolving of the FPGA to ASCII form data.
In order to achieve the above object, the technical scheme is that:One kind acquiring ASCII form data based on the soft core of FPGA
System, the system include one piece of digital signal processing chip and fpga chip.
It include serial data receiving module, first in, first out buffer area FIFO, soft core microblaze, data in fpga chip
Conversion module and the first dual port RAM.
Serial data receiving module is the software module created in FPGA, for receiving externally input ASCII form
Data, and the ASCII form data are sent in FIFO.
FIFO is created in the IP kernel of FPGA, and data fifo type is 8, and FIFO output interface includes 8 output datas
Line, 1 place reading are according to line and 1 non vacuum data line.
Microblaze has 10 GPIO mouthfuls and connects one to one respectively with 10 data lines of FIFO;?
The second dual port RAM is created in microblaze, the second dual port RAM data bit is 32;The non-empty of microblaze reading FIFO
Current potential in data line, when there is data in FIFO, FIFO non vacuum data line becomes low potential, which is obtained by microblaze
After taking, microblzae carries out set by the read data line to FIFO, and after the read data line set of FIFO, microblaze is logical
8 output data lines for crossing FIFO read data in FIFO, and microblaze parses the data of reading, extract wherein institute
Information is needed, sends the information needed in the second dual port RAM in microblaze.
Data conversion module reads out information needed from the second dual port RAM, and will be needed in the second dual port RAM
Information carries out data bit transition and 32 data is converted to 16, and transformation result is stored in the first dual port RAM.
First dual port RAM creates in the IP kernel of FPGA, and the data bit of the first dual port RAM is 16;First dual port RAM with
Digital signal processing chip is connected;Digital signal processing chip reads above-mentioned transformation result from the first dual port RAM, realizes number
Reception of the word signal processing chip to ASCII form data.
Beneficial effect:
The core data processing board of this system is made of one piece of digital signal processing chip (OMAPL138) with FPGA, system
Operation needs two chips to cooperate.Using FPGA as the interface interacted with exogenous data, cooperate OMAPL138 work.When
When external serial communication data protocol is ASCII mode, FPGA is able to carry out fast resolving.
Detailed description of the invention
Fig. 1 is system block diagram.
Specific embodiment
The present invention will now be described in detail with reference to the accompanying drawings and examples.
The system block diagram of the system is as shown in Figure 1, including includes string in one piece of digital signal processing chip and FPGA, FPGA
Mouth data reception module (realizes) that FIFO (can be created, data fifo type is 8, data fifo in IP kernel using code
Output includes 8 output data lines, and 1 place reading is according to line, 1 non vacuum data line), embeded processor (microblaze, insertion
There are formula processor 10 GPIO mouthfuls 10 data lines respectively at FIFO to connect;It needs to add twoport in embeded processor
RAM controller and dual port RAM, the dual port RAM data are defaulted as 32), data conversion module (employs codes to realize 32
Position data are converted to 16), dual port RAM (can create, dual port RAM data type is 16) in IP kernel.
The serial data of ASCII form enters serial data receiving module, and serial data receiving module will receive
Data are sent in FIFO, and when there is data in FIFO, FIFO non-empty flag data line (empty) becomes low potential, the low electricity
After position is obtained by microblaze, microblzae passes through the read data line of control FIFO, and microblaze passes through 8 of FIFO
Output data line reads data in FIFO, and microblaze parses the data of reading, wherein information needed is extracted, by this
Information needed is sent in the dual port RAM of microblazede, is read out the information from dual port RAM by data conversion module
Come, and carry out providing conversion, transformation result is stored in 16 dual port RAMs, 16 dual port RAMs and Digital Signal Processing
Chip is connected.Digital signal processing chip can read above-mentioned transformation result from the dual port RAM.
Embodiment 1:
By taking deep water compass system (its core board is made of digital signal processor OMAPL138 and FPGA) as an example, deep water sieve
Through needing to receive GPS information in water general work.GPS provides the information such as position and speed, sends the data to depth by serial ports
Water compass system, specific serial port protocol are as follows:
$GPRMC,010006.00,A,3650.1230000,N,11250.0000345,E,12.000,40.0,16,0.0,
Wherein $ GPRMC is data head by W, N*3F, and 010006.00 is the time, and A is that data are effective, and 3650.1230000 be latitude,
11250.0000345 being longitude.
Deep water compass system serial ports receive pin (RX) be connected with the transmission pin (TX) of GPS, when GPS pass through serial ports to
When outer transmission data, the FPGA of deep water compass system detects reception leg signal, and FPGA passes through serial ports receiving module for data
Character type data storage is converted into FIFO, indicates that data line (empty) is dragged down when there are data in FIFO.Due to empty
Pin is connect with microblaze, and microblaze is believed after detecting the low level of empty by the reading that control is connect with FIFO
Number RD sends read signal, passes through data line and obtains data in FIFO.A packet is obtained by operating above, in microblaze
The completion data of GPS.In microblzae, we extract location information therein (above such as by writing C programmer
Latitude 3650.1230000, longitude 11250.0000345), location information is stored in the dual port RAM of itself, data turn
Change the mold block will microblaze RAM data convert after storage to digital signal processor (omapl138) to the twoport of connection
In RAM, reads and use for digital signal processor.
To sum up, the above is merely preferred embodiments of the present invention, it is not intended to limit the scope of the present invention.It is all
Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention
Within the scope of.
Claims (1)
1. a kind of system based on the soft core acquisition ASCII form data of FPGA, which is characterized in that the system is believed including a block number word
Number processing chip and fpga chip;
It include serial data receiving module, first in, first out buffer area FIFO, soft core microblaze, data in the fpga chip
Conversion module and the first dual port RAM;
The serial data receiving module is the software module created in FPGA, for receiving externally input ASCII form
Data, and the ASCII form data are sent in FIFO;
The FIFO is created in the IP kernel of FPGA, and data fifo type is 8, and FIFO output interface includes 8 output datas
Line, 1 place reading are according to line and 1 non vacuum data line;
The microblaze has 10 GPIO mouthfuls and connects one to one respectively with 10 data lines of FIFO;?
The second dual port RAM is created in microblaze, the data bit of second dual port RAM is 32;Microblaze reads FIFO
Non vacuum data line in current potential, when there is data in FIFO, FIFO non vacuum data line becomes low potential, the low potential by
After microblaze is obtained, microblaze carries out set by the read data line to FIFO, after the read data line set of FIFO,
Microblaze reads data in FIFO by 8 output data lines of FIFO, and microblaze solves the data of reading
Analysis extracts wherein information needed, sends the information needed in the second dual port RAM in microblaze;
The data conversion module reads out information needed from the second dual port RAM, and will be described in the second dual port RAM
Information needed carries out data bit transition and 32 data is converted to 16, and transformation result is stored in the first dual port RAM;
First dual port RAM creates in the IP kernel of FPGA, and the data bit of the first dual port RAM is 16;First dual port RAM with
Digital signal processing chip is connected;The digital signal processing chip reads above-mentioned transformation result from the first dual port RAM, real
Existing reception of the digital signal processing chip to ASCII form data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610877594.3A CN106502630B (en) | 2016-10-09 | 2016-10-09 | A kind of system based on the soft core acquisition ASCII form data of FPGA |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610877594.3A CN106502630B (en) | 2016-10-09 | 2016-10-09 | A kind of system based on the soft core acquisition ASCII form data of FPGA |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502630A CN106502630A (en) | 2017-03-15 |
CN106502630B true CN106502630B (en) | 2018-11-20 |
Family
ID=58294754
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610877594.3A Active CN106502630B (en) | 2016-10-09 | 2016-10-09 | A kind of system based on the soft core acquisition ASCII form data of FPGA |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502630B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597749B (en) * | 2019-08-23 | 2021-10-22 | 锐捷网络股份有限公司 | Serial port switching method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101470436A (en) * | 2007-12-28 | 2009-07-01 | 中国科学院沈阳计算技术研究所有限公司 | Shaft movement control card with absolute coding value receiving function and its data conversion method |
CN101771700A (en) * | 2010-01-06 | 2010-07-07 | 哈尔滨工业大学 | Modbus protocol communication node based on FPGA |
CN205545305U (en) * | 2016-03-01 | 2016-08-31 | 杜江淮 | Based on dark embedded data interchange device of xilinx FPGA |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2512061A (en) * | 2013-03-18 | 2014-09-24 | Rapid Addition Ltd | Transactional message format data conversion |
-
2016
- 2016-10-09 CN CN201610877594.3A patent/CN106502630B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101470436A (en) * | 2007-12-28 | 2009-07-01 | 中国科学院沈阳计算技术研究所有限公司 | Shaft movement control card with absolute coding value receiving function and its data conversion method |
CN101771700A (en) * | 2010-01-06 | 2010-07-07 | 哈尔滨工业大学 | Modbus protocol communication node based on FPGA |
CN205545305U (en) * | 2016-03-01 | 2016-08-31 | 杜江淮 | Based on dark embedded data interchange device of xilinx FPGA |
Non-Patent Citations (3)
Title |
---|
FPGA Implementation of Cryptographic Algorithm Using ASCII Conversions for Secure Communications;J. Saritha等;《International Journal of Science and Research(IJSR)》;20160430;第5卷(第4期);第1603-1609页 * |
一种新的基于FPGA的数据格式转换方法;唐小明等;《现代电子技术》;20110815;第34卷(第16期);第110-112页 * |
基于Microblaze软核的嵌入式系统设计;单超等;《单片机与嵌入式系统应用》;20110331(第3期);第18-21页 * |
Also Published As
Publication number | Publication date |
---|---|
CN106502630A (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9347990B2 (en) | Communication device, test system and test method thereof | |
CN104680853B (en) | A kind of ADS B Double Data chain automatic switching control equipment based on height | |
CN108234264A (en) | A kind of data packet forwarding method and device based on the extension of PCIe signaling interfaces | |
CN106502630B (en) | A kind of system based on the soft core acquisition ASCII form data of FPGA | |
CN109542818A (en) | A kind of general 1553B interface arrangement | |
CN103378994A (en) | Method and terminal for testing communication equipment | |
CN103944707A (en) | Full-duplex and half-duplex converter and conversion method | |
CN104656103A (en) | Wireless GPS positioning system and method based on Android mobile terminal | |
CN105279123A (en) | Serial port conversion structure and method of dual-redundancy 1553B bus | |
CN108415874B (en) | Interface expansion device and method based on EIM bus | |
CN105872060A (en) | Communication method and system, and data collection end device | |
CN205232236U (en) | Pulse code modulation ware based on field programmable gate array | |
CN109068238A (en) | microphone and intelligent sound box | |
CN107577216A (en) | A kind of method that debugging signal is captured outside FPGA platform upper piece | |
CN101950037A (en) | Safety inspection system with embedded Ethernet transmission based on SOPC | |
CN105939238B (en) | SOC isolation Memory-based 10Gbps Ethernet real-time data acquisition method | |
CN205582254U (en) | Absolute encoder circuit board | |
CN109408444A (en) | A kind of dedicated serial interface suitable for MEMS sensor signal processing | |
CN202149941U (en) | User terminal applied to Big Dipper satellite navigation system | |
CN104238412A (en) | Optoelectronic isolation type SPI-like channel based on DSP driving | |
CN109669892A (en) | A kind of MCBSP interface circuit based on FPGA | |
CN210428141U (en) | Digital sensor | |
CN211479673U (en) | Speech recognition sensor and speech control system in intelligent toy system | |
CN102761486B (en) | A kind of mono-point-to-multipoint of GOOSE of low discreteness and multiple spot are to the receiving/transmission method of single-point | |
CN202167017U (en) | Data receiving circuit based on management control DSP in the internet of things |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |