CN109614350A - A kind of interruption system communicated for dual port RAM between processor - Google Patents
A kind of interruption system communicated for dual port RAM between processor Download PDFInfo
- Publication number
- CN109614350A CN109614350A CN201811264377.2A CN201811264377A CN109614350A CN 109614350 A CN109614350 A CN 109614350A CN 201811264377 A CN201811264377 A CN 201811264377A CN 109614350 A CN109614350 A CN 109614350A
- Authority
- CN
- China
- Prior art keywords
- processor
- fifo
- data
- dual port
- port ram
- 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.)
- Granted
Links
- 230000009977 dual effect Effects 0.000 title claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims abstract description 9
- 238000012545 processing Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 14
- 238000013461 design Methods 0.000 description 5
- 230000007547 defect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/24—Handling requests for interconnection or transfer for access to input/output bus using interrupt
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
- Information Transfer Systems (AREA)
Abstract
The present invention provides a kind of interruption systems communicated for dual port RAM between processor to be used for transmission the FIFO of interruption when communicating between processor 1 and processor 2 by dual port RAM, which realizes by fifo chip or by programmable logic;Port is written by the data that parallel bus connects FIFO in processor 1, and processor 2 connects the data reading port of FIFO by parallel bus, while by the external interrupt input port of the empty indication signal EMPTY connection processor 2 of FIFO.The present invention improves the real-time of dual port RAM communication between processor, guarantees the reliability and high efficiency of interrupting transmitting, while can realize IRQ sharing.
Description
Technical field
The present invention relates to Embedded System Design technical field, especially a kind of interruption system for dual port RAM communication.
Background technique
Dual port RAM communication be embedded system processing device between the common means of communication of data interaction, communication mode not by
Specialized protocol constraint customizes degree height, and low to bottom hardware resource requirement, parallel transmission mode ensure that the band centainly communicated
Width, while its data buffer storage mechanism can reduce the synchronous of communicating pair processor operation and require, and guarantee the reliability of communication data.
Therefore.At present in airborne equipment, dual port RAM communication is the frequently-used data communication based on printed board interconnection between embeded processor
Internal bus.
In dual port RAM communication, there are biggish defects in terms of real-time by the way of software cycle inquiry, therefore
Need to design interruption transmission mechanism.It interrupts between conventional processors and is transmitted using general discrete amount interface, this mode is continuous more
When interrupting transmission, existing defects in terms of reliability and efficiency, therefore how to design it is a kind of it is reliable, efficiently interrupt transmission mechanism,
Be we there is an urgent need to the projects of research.
Summary of the invention
For overcome the deficiencies in the prior art, the present invention provides a kind of interruption system communicated for dual port RAM between processor
System.The object of the present invention is to provide a kind of design of interruption communicated for dual port RAM between processor, to improve dual port RAM communication
Real-time and reliability.To achieve the above object, the present invention can be realized based on dedicated fifo chip, can also be patrolled programmable
It is completed in volume by standard hardware programming language.
The technical solution adopted by the present invention to solve the technical problems is:
The described interruption system communicated for dual port RAM between processor, when passing through twoport between processor 1 and processor 2
When RAM is communicated, it is used for transmission the FIFO of interruption, which realizes by fifo chip or by programmable logic;Processor 1 is logical
The data write-in port of parallel bus connection FIFO is crossed, processor 2 reads port by the data that parallel bus connects FIFO, together
When by the external interrupt input port of the empty indication signal EMPTY connection processor 2 of FIFO.
It is communicated between processor 1 and processor 2 by dual port RAM, when processor 1 needs to transmit different channels to processor 2
Communication data when, data block is written in dual port RAM in data block corresponding address, then will represent the interruption of the address to
Amount is written in FIFO, once being written into data in FIFO, empty indication signal EMPTY is invalid, which triggers the outer of processor 2
Portion is interrupted, and processor 2 enters after interrupt service routine the interrupt vector read in FIFO, and according to interrupt vector from dual port RAM
Middle corresponding address reads data, completes interrupt processing, and since the data in FIFO are read, empty indication signal EMPTY is effective, place
The interruption of reason device 2 cancels automatically.
The beneficial effects of the present invention are the real-time that dual port RAM communicates between processor is improved, guarantee to interrupt transmitting
Reliability and high efficiency, while can realize IRQ sharing.
Detailed description of the invention
Fig. 1 is the design of interruption block diagram the present invention is based on FIFO.
Specific embodiment
Present invention will be further explained below with reference to the attached drawings and examples.
A kind of interruption system communicated for dual port RAM between processor of the invention, when logical between processor 1 and processor 2
When crossing dual port RAM communication, it is used for transmission the FIFO of interruption, which can realize by fifo chip or by programmable logic;
Port is written by the data that parallel bus connects FIFO in processor 1, and processor 2 is read by the data that parallel bus connects FIFO
Exit port, while by the external interrupt input port of the empty indication signal EMPTY connection processor 2 of FIFO.
A kind of interruption system communicated for dual port RAM between processor of the invention, workflow are as follows: 1 He of processor
It is communicated between processor 2 by dual port RAM, when processor 1 needs to transmit the communication data in different channels to processor 2, will be counted
It is written in dual port RAM in data block corresponding address according to block, then the interrupt vector for representing the address is written in FIFO,
Once being written into data in FIFO, empty indication signal EMPTY is invalid, which triggers the external interrupt of processor 2, processor 2
The interrupt vector in FIFO is read after into interrupt service routine, and corresponding address is read from dual port RAM according to interrupt vector
Data complete interrupt processing, and since the data in FIFO are read, empty indication signal EMPTY is effective, and the interruption of processor 2 is certainly
Dynamic revocation.
The FIFO of Transmission is designed between processor 1 and processor 2, which can pass through dedicated integrated circuits
Chip or programmable logic are realized;
Port is written by the data that parallel bus connects FIFO in processor 1, and processor 2 connects FIFO by parallel bus
Data read port, while by the external interrupt input port of the empty indication signal EMPTY connection processor 2 of FIFO;
When processor 1 needs to transmit the communication data in different channels to processor 2, write data into dual port RAM
Address is formulated, then the interrupt vector for representing the address is written in FIFO, once being written into data in FIFO, sky instruction letter
Number EMPTY is invalid, which triggers the external interrupt of processor 2, and processor 2 is read in FIFO after entering interrupt service routine
Interrupt vector, and according to interrupt vector, corresponding address reads data from dual port RAM, interrupt processing is completed, due in FIFO
Data are read, and empty indication signal EMPTY is effective, and the interruption of processor 2 cancels automatically.
Claims (1)
1. a kind of interruption system communicated for dual port RAM between processor, it is characterised in that:
The interruption system communicated for dual port RAM between processor, when logical by dual port RAM between processor 1 and processor 2
When letter, it is used for transmission the FIFO of interruption, which realizes by fifo chip or by programmable logic;Processor 1 is by simultaneously
Port is written in the data that row bus connects FIFO, and processor 2 reads port by the data that parallel bus connects FIFO, simultaneously will
The external interrupt input port of the empty indication signal EMPTY connection processor 2 of FIFO;
It is communicated between processor 1 and processor 2 by dual port RAM, when processor 1 needs to transmit the logical of different channels to processor 2
When letter data, data block is written in dual port RAM in data block corresponding address, is then write the interrupt vector for representing the address
Enter into FIFO, once being written into data in FIFO, empty indication signal EMPTY is invalid, which triggers in the outside of processor 2
It is disconnected, the interrupt vector in FIFO is read after the entrance interrupt service routine of processor 2, and right from dual port RAM according to interrupt vector
Address reading data is answered, completes interrupt processing, since the data in FIFO are read, empty indication signal EMPTY is effective, processor
2 interruption cancels automatically.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811264377.2A CN109614350B (en) | 2018-10-29 | 2018-10-29 | Interrupt system for dual-port RAM communication between processors |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811264377.2A CN109614350B (en) | 2018-10-29 | 2018-10-29 | Interrupt system for dual-port RAM communication between processors |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109614350A true CN109614350A (en) | 2019-04-12 |
CN109614350B CN109614350B (en) | 2022-03-15 |
Family
ID=66001723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811264377.2A Active CN109614350B (en) | 2018-10-29 | 2018-10-29 | Interrupt system for dual-port RAM communication between processors |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109614350B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5515329A (en) * | 1994-11-04 | 1996-05-07 | Photometrics, Ltd. | Variable-size first in first out memory with data manipulation capabilities |
CN101101586A (en) * | 2006-07-06 | 2008-01-09 | 大唐移动通信设备有限公司 | Method and device transmitting information between processor |
CN101719115A (en) * | 2009-11-04 | 2010-06-02 | 北京中星微电子有限公司 | Communication method, device and system for main control processor and coprocessor system |
CN101937232A (en) * | 2010-09-07 | 2011-01-05 | 北京航空航天大学 | Embedded real-time simulation and fault simulation system based on multi-channel data bus |
CN105573931A (en) * | 2015-12-05 | 2016-05-11 | 中国航空工业集团公司洛阳电光设备研究所 | Access method and device of double-port RAM |
CN205374618U (en) * | 2015-11-23 | 2016-07-06 | 深圳中科华恒科技有限公司 | 32 high -speed speed regulator tester device of gathering of passageway analog signal |
CN106372029A (en) * | 2016-09-06 | 2017-02-01 | 北方电子研究院安徽有限公司 | Point-to-point on-chip communication module based on interruption |
CN107861850A (en) * | 2017-11-30 | 2018-03-30 | 瑞斯康达科技发展股份有限公司 | One kind interrupts checking system and its application method, computer equipment, storage medium |
CN107967231A (en) * | 2017-12-07 | 2018-04-27 | 天津天地伟业机器人技术有限公司 | A kind of system of Spi Multipexers full duplex serial ports |
-
2018
- 2018-10-29 CN CN201811264377.2A patent/CN109614350B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5515329A (en) * | 1994-11-04 | 1996-05-07 | Photometrics, Ltd. | Variable-size first in first out memory with data manipulation capabilities |
CN101101586A (en) * | 2006-07-06 | 2008-01-09 | 大唐移动通信设备有限公司 | Method and device transmitting information between processor |
CN101719115A (en) * | 2009-11-04 | 2010-06-02 | 北京中星微电子有限公司 | Communication method, device and system for main control processor and coprocessor system |
CN101937232A (en) * | 2010-09-07 | 2011-01-05 | 北京航空航天大学 | Embedded real-time simulation and fault simulation system based on multi-channel data bus |
CN205374618U (en) * | 2015-11-23 | 2016-07-06 | 深圳中科华恒科技有限公司 | 32 high -speed speed regulator tester device of gathering of passageway analog signal |
CN105573931A (en) * | 2015-12-05 | 2016-05-11 | 中国航空工业集团公司洛阳电光设备研究所 | Access method and device of double-port RAM |
CN106372029A (en) * | 2016-09-06 | 2017-02-01 | 北方电子研究院安徽有限公司 | Point-to-point on-chip communication module based on interruption |
CN107861850A (en) * | 2017-11-30 | 2018-03-30 | 瑞斯康达科技发展股份有限公司 | One kind interrupts checking system and its application method, computer equipment, storage medium |
CN107967231A (en) * | 2017-12-07 | 2018-04-27 | 天津天地伟业机器人技术有限公司 | A kind of system of Spi Multipexers full duplex serial ports |
Non-Patent Citations (1)
Title |
---|
杨文方等: "基于双CPU和RS-485总线的多路信号测控系统的设计", 《煤》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109614350B (en) | 2022-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108595353B (en) | PCIe bus-based data transmission control method and device | |
CN108712626B (en) | A multi-channel image acquisition system | |
CN102841871B (en) | Pipeline read-write method of direct memory access (DMA) structure based on high-speed serial bus | |
KR101289011B1 (en) | Device for processing a stream of data words | |
CN106933760A (en) | A kind of dma controller and data uploading method based on AXI protocol | |
CN102253913A (en) | Device for carrying out state acquisition and output control on multi-board-card port | |
CN109308283A (en) | A kind of SoC system on chip and its peripheral bus switching method | |
KR20160037114A (en) | Serial peripheral interface | |
CN104298639A (en) | Embedded connecting method for host processor and multiple coprocessors and connecting interface | |
CN103823785B (en) | Multi-way ARINC429 data transmit-receive circuit structure based on development of DSP and CPLD | |
CN102841870A (en) | General direct memory access (DMA) structure based on high-speed serial bus and pre-read method | |
CN111490946B (en) | FPGA connection realization method and device based on OpenCL framework | |
CN102073611A (en) | I2C bus control system and method | |
CN105718396B (en) | A kind of I of big data master transmissions2C bus units and its means of communication | |
CN109614350A (en) | A kind of interruption system communicated for dual port RAM between processor | |
CN111124985A (en) | Read-only control method and device for mobile terminal | |
CN206431607U (en) | A kind of LCD drive circuit systems | |
US9229895B2 (en) | Multi-core integrated circuit configurable to provide multiple logical domains | |
CN106339338B (en) | A kind of data transmission method and device that system performance can be improved | |
KR20130045894A (en) | Interrupt source management device and interrupt processing system | |
US6874043B2 (en) | Data buffer | |
CN206363303U (en) | A kind of CPU module based on VPX structures | |
CN105573931A (en) | Access method and device of double-port RAM | |
US20220269642A1 (en) | Method and apparatus for eliminating glitch, and state machine | |
US20020046307A1 (en) | A data buffer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | 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 |