Unlock instant, AI-driven research and patent intelligence for your innovation.

A dual-port ram anti-collision method based on programmable logic

A programming logic and anti-collision technology, which is applied in the direction of instrumentation, electrical digital data processing, etc., can solve the problems that the anti-collision mechanism cannot be used, the software and hardware cannot be changed, and does not support it, so as to achieve a wide market use space, low requirements, and simple implementation Effect

Active Publication Date: 2020-04-28
CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] 1) The mechanism of the BUSY signal is adopted, and the memory access mechanism of the CPU at both ends of the dual port must support this insertion waiting mechanism, but in the actual use process, many CPUs do not support this memory access waiting insertion mechanism;
[0010] 2) The semaphore mechanism is adopted, and the CPU software at both ends of the dual port must formulate a communication protocol, such as the number of semaphores and the division of the storage area controlled by each semaphore. The CPUs at both ends of the dual port are often in different modules. In some transformation projects, it often happens that the state of one side of the CPU has been fixed, and the software and hardware cannot be changed. Only the software and hardware of the other side of the CPU can be changed. If the semaphore mechanism is not used or agreed upon in the old state, then During the transformation process, the semaphore-based anti-collision mechanism cannot be used

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A dual-port ram anti-collision method based on programmable logic
  • A dual-port ram anti-collision method based on programmable logic
  • A dual-port ram anti-collision method based on programmable logic

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0023] The invention proposes a dual-port RAM anti-collision method based on programmable logic, which makes up for the limitation of the traditional dual-port RAM anti-collision method. In this scheme, even if the detection mechanism provided by the dual-port RAM is not used at both ends of the dual-port RAM, the software and hardware of the dual-port RAM side (master end) can be kept unchanged. By writing the slave-end programmable logic and application software , which can ensure reliable data interaction between the CPUs at both ends of the dual-port RAM. The main implementation steps are as follows:

[0024] 1) In the programmable logic, add the following first logic module:

[0025] Input the chip select signal PORT_A_CS_RAM on the chip select pin of the dual-port RAM master into the NOT gate, and connect the output of the NOT gate wit...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a programmable logic-based double-port RAM conflict prevention method. The method is applied to a double-port RAM slave end, and comprises the following steps of: when a slave end CPU accesses a double-port RAM, if a master end also accesses the double-port RAM, immediately cutting off a control signal of the slave end through logic so as to ensure safety access of the master end; marking an access conflict in the logic; after each reading of the slave end, judging whether a conflict occurs or not through reading a mark in the logic; and if the conflict occurs, discarding the data and re-initiating reading and writing. According to the method, only logic and software of a CPU at one side are changed, and software and hardware of a CPU at the other side do not need any change, so that a new scheme is provided for the traditional double-port conflict prevention mechanism.

Description

technical field [0001] The invention belongs to the field of processor data exchange Background technique [0002] With the development of electronic technology, the complexity of the system is getting higher and higher, and multiple processors are often required to work together to realize product functions. Dual-port RAM is a dual-port volatile memory widely used in data exchange between multiple CPUs. Generally, each dual-port RAM has two completely independent ports, and each port has its own data line, address line, and control line. However, when the CPUs at both ends of the dual-port RAM perform read and write operations on a storage unit at the same time, conflicts will occur in the dual-port RAM, resulting in errors in reading and writing data. [0003] The anti-collision mechanism currently used mainly relies on the anti-collision mechanism provided by the dual-port RAM chip, which mainly includes: [0004] 1) Insert the anti-collision mechanism of the waiting st...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/376
CPCG06F13/376
Inventor 廖科吴伯春夏欢
Owner CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST