CN101324863A - Device and method for controlling synchronous static memory - Google Patents

Device and method for controlling synchronous static memory Download PDF

Info

Publication number
CN101324863A
CN101324863A CNA2007101109656A CN200710110965A CN101324863A CN 101324863 A CN101324863 A CN 101324863A CN A2007101109656 A CNA2007101109656 A CN A2007101109656A CN 200710110965 A CN200710110965 A CN 200710110965A CN 101324863 A CN101324863 A CN 101324863A
Authority
CN
China
Prior art keywords
read
write
static memory
synchronous static
data
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
Application number
CNA2007101109656A
Other languages
Chinese (zh)
Other versions
CN101324863B (en
Inventor
杨堃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2007101109656A priority Critical patent/CN101324863B/en
Publication of CN101324863A publication Critical patent/CN101324863A/en
Application granted granted Critical
Publication of CN101324863B publication Critical patent/CN101324863B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a control device of a synchronous static memory, and a method. The control device is connected with the synchronous static memory through a data wire, and comprises a memory interface unit, a timing unit, a time multiplexing controlling unit and a read-write source application queue, wherein the time multiplexing controlling unit is used for accepting the access of the read-write source application queue, and controls and selects the read-write source of the corresponding time slice in the read-write source application queue for performing data read-write operation according to the timing number sent by the timing unit; the timing unit is used for providing timing reference for the time multiplexing controlling unit, and notifies the time multiplexing controlling unit to enter next timing number, and the time slice of each read-write source is corresponding to different timing numbers. The control device and the method have the advantages that the read-write efficiency of the synchronous static memory is improved, the data bandwidth can be assigned according to the requirements of the data rate of each read-write source, and thereby the waiting time of the memory can be saved.

Description

A kind of control device of synchronous static memory and method
Technical field
The present invention relates to data communication technology field, particularly a kind of control device of synchronous static memory and method.
Background technology
Development along with data communication technology, the particularly appearance of the data communication technology of high bandwidth and high speed degree, in data communications equipment inside, various device such as central processing unit, network processing unit, interface special chips etc. are more and more higher to the requirement of memory access, big bit wide, high-speed visit makes the deviser become increasingly complex to the Interface design of storer, particularly at a plurality of access originators are arranged, a storer or access originator number are very many when having only, and when each access originator needs different bandwidth, at this moment memory access efficient is very low, even cause data to stop up, storer can't be visited, or dispatch, thereby increased the debugging difficulty of writing of software by software or ppu, the design complexities of hardware and resource consumption.
At present, the existing memory control device normally designs at dynamic storage specially, as patented claim CN200510100661, does not design at static memory specially; Or the processor that the controller outside must be arranged assists control, is the U.S. Patent application of US2005132145 as application number, must have at least a processor to assist the method for designing of its visit exactly when memory access.
Summary of the invention
The objective of the invention is to, a kind of control device of synchronous static memory is provided, can improve mutiread and write the source a static memory read-write efficiency.
Another object of the present invention is to, propose a kind of control method of synchronous static memory, can improve mutiread and write the source a static memory read-write efficiency.
The control device of synchronous static memory of the present invention, be connected by data line with synchronous static control store, comprise memory interface unit, timing unit, time division multiplex control module, read-write source application queue, wherein, described memory interface unit, be used for when write data, from described time division multiplex control module, obtain corresponding write data and address, send it to described synchronous static memory; When read data, obtain to read the address accordingly from described time division multiplex control module, send it to described synchronous static memory, and read corresponding data from described synchronous static memory and be sent to described time division multiplex control module; Described time division multiplex control module is used to accept the visit of described read-write source application queue, and the timing number that sends according to described timing unit, and the operation that reads and writes data accordingly of the read-write source of corresponding timeslice in the application queue of read-write source is selected in control; Described timing unit is used to described time division multiplex control module that the timing reference is provided, and every the schedule time, notifies described time division multiplex control module to enter next timing number, the corresponding different timing number of timeslice in each read-write source; Described read-write source application queue, comprise a plurality of First Input First Outputs, be used for respectively to a plurality of read-writes source read and write data and/or buffer memory is carried out in the address, and under the control of described time division multiplex control module, the data in the respective queue are sent to described time division multiplex control module.
Wherein, the timeslice in described each read-write source is in advance according to the number in the total bandwidth of synchronous static memory and read-write source, distributes in mode impartial or that do not wait.
Wherein, described time division multiplex control module is further used for determining whether in the read-write source application queue of its selection be empty, when formation is non-NULL, carries out the operation that reads and writes data accordingly.
In addition, the number of the First Input First Output that comprises in the application queue of described read-write source is corresponding with the number in read-write source.
The control device of synchronous static memory of the present invention may further include read-write source data interface, is used for the data and/or the address translation of different-format are become synchronous static memory energy recognition data form and/or address format.
Wherein, described memory interface unit, according to the sequential of synchronous static memory with corresponding write data and address and/or read the address and be sent to synchronous static memory.
The control method of synchronous static memory of the present invention comprises the following steps:
Steps A: respectively with a plurality of read-writes source read and write data and/or address caching in corresponding a plurality of First Input First Outputs, and the timeslice that read-write operation is carried out in each read-write source is set, and the timing number in the timing unit is provided with, wherein, the corresponding different timing number of timeslice in each read-write source;
Step B: timing unit picks up counting, enter next timing number every the schedule time,, control the read-write source of corresponding timeslice and carry out corresponding read-write operation according to the timing number in the timing unit, when write data, corresponding write data and address are sent to synchronous static memory; When read data, will read the address accordingly and be sent to synchronous static memory, and read corresponding data from synchronous static memory.
Wherein, the timeslice in described each read-write source is in advance according to the number in the total bandwidth of synchronous static memory and read-write source, distributes in mode impartial or that do not wait.
Wherein, in described step B, before corresponding read-write operation is carried out in the read-write source of the corresponding timeslice of control, comprise the following steps: further to judge whether the buffer queue in corresponding read-write source is empty, if when be non-NULL, the execution operation that reads and writes data accordingly.
In addition, the number of the First Input First Output in described read-write source is corresponding with the number in read-write source.
In addition, in described steps A, respectively with a plurality of read-writes source read and write data and/or address caching before corresponding a plurality of First Input First Outputs, further comprise the following steps: to become the synchronous static memory can recognition data form and/or address format the data of different-format and/or address translation.
Wherein, in described step B, when corresponding read-write operation is carried out in the read-write source, according to the sequential of synchronous static memory with corresponding write data and address and/or read the address and be sent to synchronous static memory.
The invention has the beneficial effects as follows: according to the control device and the method for synchronous static memory of the present invention, solved the read-write bottleneck problem of a plurality of read-writes source to a static memory, improved mutiread and write the source a static memory read-write efficiency, reached the effect that needs the distribute data bandwidth that to read and write source data rate according to each, saved memory latency time, reduce the design of hardware and software difficulty of system, and improved the overall performance of system.
Description of drawings
Fig. 1 is the structural representation of the control device of synchronous static memory of the present invention;
Fig. 2 is a time division multiplex time slot distribution plan of the present invention;
Fig. 3 is the flow chart of data processing figure of the time division multiplexing controller of the embodiment of the invention.
Embodiment
Below, with reference to the control device and the method for figure 1~3 detailed description synchronous static memory of the present invention.
As shown in Figure 1, structural representation for the control device of synchronous static memory of the present invention, this control device is connected by data line with synchronous static control store, comprises memory interface unit, timing unit, time division multiplex control module, read-write source application queue.
Wherein: memory interface unit, be used for when write data, from the time division multiplex control module, obtain corresponding write data and address, send it to synchronous static memory; When read data, obtain to read the address accordingly from the time division multiplex control module, send it to synchronous static memory, and read corresponding data from this synchronous static memory and be sent to the time division multiplex control module.
Wherein, memory interface unit, according to the sequential of synchronous static memory with corresponding write data and address and read the address and be sent to synchronous static memory.
Time division multiplex control module, the visit that is used to accept to read and write the source application queue, and the timing number that sends according to timing unit, control are selected in the application queue of read-write source the operation that reads and writes data of corresponding certain read-write source.
Wherein, according to the design needs, for example the user is to the different requirements of bandwidth, in advance according to the total bandwidth of synchronous static memory and the number in read-write source, distribute a plurality of timeslices for each read-write source in mode impartial or that do not wait, the timeslice in each read-write source is corresponding with the timing number in the timing unit.
For example, the bandwidth of synchronous static memory is 2.4Gbit/s, and the timing number remembers 24 from 0, comprises four read-write sources, and the timeslice scope in read-write source 1 is 0~3; The timeslice scope in read-write source 2 is 4~8; The timeslice scope in read-write source 3 is 9~15; The timeslice scope in read-write source 4 is 16~24; When timing unit timing number was 5, then Dui Ying read-write source was read-write source 2, carries out corresponding read-write operation; The timing number for the treatment of timing unit is 9 o'clock, then selects read-write source 3 to carry out corresponding read-write operation; When the timing number of timing unit reaches 24, and read-write source 4 executes after its corresponding read-write operation, and timer makes zero, and starts from scratch and restarts the timing circulation.
In addition, according to shown in Figure 2, read-write source 1 occupied bandwidth 0.4Gbit/s; Read-write source 2 occupied bandwidth 0.5Gbit/s; Read-write source 3 occupied bandwidth 0.7Gbit/s; Read-write source 4 occupied bandwidth 0.8Gbit/s.Therefore, can arrange taking of bandwidth for it, avoid the very little read-write source of occupied bandwidth to take the synchronous static memory of high bandwidth, thereby improve read-write efficiency according to each size of reading and writing the source occupied bandwidth.
In addition, the time division multiplex control module is further used for also determining whether in the read-write source application queue of its selection be empty, when formation is non-NULL, when the read-write application is promptly arranged in the formation, carries out the operation that reads and writes data accordingly.
Timing unit is used to the time division multiplex control module that the timing reference is provided, and every the schedule time, notice time division multiplex control module enters next timing number.
Read-write source application queue, comprise a plurality of first-in first-out (FIFO) formation, be used for respectively to each read-write source reading and writing data and/or buffer memory is carried out in the address, and under the control of time division multiplex control module, the data in the respective queue are sent to the time division multiplex control module.
Wherein, the number of the fifo queue that comprises in the application queue of read-write source is corresponding with the number in read-write source.
Because each read-write source has different data bit widths, different addresses is divided, and therefore data in each read-write source and/or address need be unified into data layout and/or the address format that meets above-mentioned synchronous static memory.
Therefore, based on as mentioned above, the control device of synchronous static memory of the present invention also further comprises read-write source data interface, is used for becoming the synchronous static memory can recognition data form and/or address format the data of different-format and/or address translation.
Particularly, when the timing number of timing unit corresponds to a certain read-write source, the time division multiplex control module can judge whether the application queue in this read-write source is non-NULL, if formation is a non-NULL, be that the read-write application is arranged in the formation, when carrying out write operation, from the application queue of read-write source, take out address and data to be written and send to memory interface unit, thereby execute this time write operation; When carrying out read operation, from the application queue of read-write source, take out address information to be read and send to memory interface unit, and the feedback of wait memory interface unit, when the memory interface unit feedback reads data, be sent to corresponding read-write source in the application queue of read-write source with reading the data of coming, thereby execute this time read operation.
More than, the control device of synchronous static memory of the present invention is described, describe the control method of synchronous static memory of the present invention below in detail, this method comprises the following steps:
Steps A: respectively with a plurality of read-writes source read and write data and/or address caching in corresponding a plurality of First Input First Outputs, and the timeslice that read-write operation is carried out in each read-write source is set, and the timing number in the timing unit is provided with, wherein, the corresponding different timing number of timeslice in each read-write source.
Wherein, the number of the First Input First Output in read-write source is corresponding with the number in read-write source.
In addition, because each read-write source has different data bit widths, different addresses is divided, and therefore data in each read-write source and/or address need be unified into data layout and/or the address format that meets above-mentioned synchronous static memory.
Therefore, in described steps A, respectively with a plurality of read-writes source read and write data and/or address caching before corresponding a plurality of First Input First Outputs, may further include the following step: become the synchronous static memory can recognition data form and/or address format the data of different-format and/or address translation.
Step B: timing unit picks up counting, enter next timing number every the schedule time,, control the read-write source of corresponding timeslice and carry out corresponding read-write operation according to the timing number in the timing unit, when write data, corresponding write data and address are sent to synchronous static memory; When read data, will read the address accordingly and be sent to synchronous static memory, and read corresponding data from synchronous static memory.
Wherein, the timeslice in each read-write source is in advance according to the number in the total bandwidth of synchronous static memory and read-write source, distributes in mode impartial or that do not wait.
In addition, in described step B, before corresponding read-write operation is carried out in the read-write source of the corresponding timeslice of control, comprise the following steps: further to judge whether the buffer queue in corresponding read-write source is empty, if when be non-NULL, the execution operation that reads and writes data accordingly.
In described step B, when corresponding read-write operation is carried out in the read-write source, according to the sequential of synchronous static memory with corresponding write data and address and/or read the address and be sent to synchronous static memory.
As shown in Figure 3, be the flow chart of data processing figure of the time division multiplexing controller of the embodiment of the invention.
In sum, control device and method according to synchronous static memory of the present invention, solved the read-write bottleneck problem of a plurality of read-writes source to a static memory, improved mutiread and write the source a static memory read-write efficiency, reached the effect that needs the distribute data bandwidth that to read and write source data rate according to each, save memory latency time, reduced the design of hardware and software difficulty of system, and improved the overall performance of system.
More than be in order to make those of ordinary skills understand the present invention; and to detailed description that the present invention carried out; but can expect; in the scope that does not break away from claim of the present invention and contained, can also make other variation and modification, these variations and revising all in protection scope of the present invention.

Claims (12)

1. the control device of a synchronous static memory is connected by data line with synchronous static control store, it is characterized in that, comprises memory interface unit, timing unit, time division multiplex control module, read-write source application queue, wherein,
Described memory interface unit is used for when write data, obtains corresponding write data and address from described time division multiplex control module, sends it to described synchronous static memory; When read data, obtain to read the address accordingly from described time division multiplex control module, send it to described synchronous static memory, and read corresponding data from described synchronous static memory and be sent to described time division multiplex control module;
Described time division multiplex control module is used to accept the visit of described read-write source application queue, and the timing number that sends according to described timing unit, and the operation that reads and writes data accordingly of the read-write source of corresponding timeslice in the application queue of read-write source is selected in control;
Described timing unit is used to described time division multiplex control module that the timing reference is provided, and every the schedule time, notifies described time division multiplex control module to enter next timing number, the corresponding different timing number of timeslice in each read-write source;
Described read-write source application queue, comprise a plurality of First Input First Outputs, be used for respectively to a plurality of read-writes source read and write data and/or buffer memory is carried out in the address, and under the control of described time division multiplex control module, the data in the respective queue are sent to described time division multiplex control module.
2. the control device of synchronous static memory as claimed in claim 1 is characterized in that, the timeslice in described each read-write source is in advance according to the number in the total bandwidth of synchronous static memory and read-write source, distributes in mode impartial or that do not wait.
3. the control device of synchronous static memory as claimed in claim 1, it is characterized in that described time division multiplex control module is further used for determining whether in the read-write source application queue of its selection be empty, when formation is non-NULL, carry out the operation that reads and writes data accordingly.
4. as the control device of each described synchronous static memory in the claim 1 to 3, it is characterized in that the number of the First Input First Output that comprises in the application queue of described read-write source is corresponding with the number in read-write source.
5. as the control device of each described synchronous static memory in the claim 1 to 3, it is characterized in that, further comprise read-write source data interface, be used for the data and/or the address translation of different-format are become synchronous static memory energy recognition data form and/or address format.
6. as the control device of each described synchronous static memory in the claim 1 to 3, it is characterized in that, described memory interface unit, according to the sequential of synchronous static memory with corresponding write data and address and/or read the address and be sent to synchronous static memory.
7. the control method of a synchronous static memory is characterized in that, comprises the following steps:
Steps A: respectively with a plurality of read-writes source read and write data and/or address caching in corresponding a plurality of First Input First Outputs, and the timeslice that read-write operation is carried out in each read-write source is set, and the timing number in the timing unit is provided with, wherein, the corresponding different timing number of timeslice in each read-write source;
Step B: timing unit picks up counting, enter next timing number every the schedule time,, control the read-write source of corresponding timeslice and carry out corresponding read-write operation according to the timing number in the timing unit, when write data, corresponding write data and address are sent to synchronous static memory; When read data, will read the address accordingly and be sent to synchronous static memory, and read corresponding data from synchronous static memory.
8. the control method of synchronous static memory as claimed in claim 7 is characterized in that, the timeslice in described each read-write source is in advance according to the number in the total bandwidth of synchronous static memory and read-write source, distributes in mode impartial or that do not wait.
9. the control method of synchronous static memory as claimed in claim 7, it is characterized in that, in described step B, before corresponding read-write operation is carried out in the read-write source of the corresponding timeslice of control, comprise the following steps: further to judge whether the buffer queue in corresponding read-write source is empty, if when being non-NULL, carry out the operation that reads and writes data accordingly.
10. as the control method of each described synchronous static memory in the claim 7 to 9, it is characterized in that the number of the First Input First Output in described read-write source is corresponding with the number in read-write source.
11. control method as each described synchronous static memory in the claim 7 to 9, it is characterized in that, in described steps A, respectively with a plurality of read-writes source read and write data and/or address caching before corresponding a plurality of First Input First Outputs, further comprise the following steps: to become the synchronous static memory can recognition data form and/or address format the data of different-format and/or address translation.
12. control method as each described synchronous static memory in the claim 7 to 9, it is characterized in that, in described step B, when corresponding read-write operation is carried out in the read-write source, according to the sequential of synchronous static memory with corresponding write data and address and/or read the address and be sent to synchronous static memory.
CN2007101109656A 2007-06-12 2007-06-12 Device and method for controlling synchronous static memory Expired - Fee Related CN101324863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101109656A CN101324863B (en) 2007-06-12 2007-06-12 Device and method for controlling synchronous static memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101109656A CN101324863B (en) 2007-06-12 2007-06-12 Device and method for controlling synchronous static memory

Publications (2)

Publication Number Publication Date
CN101324863A true CN101324863A (en) 2008-12-17
CN101324863B CN101324863B (en) 2012-07-04

Family

ID=40188409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101109656A Expired - Fee Related CN101324863B (en) 2007-06-12 2007-06-12 Device and method for controlling synchronous static memory

Country Status (1)

Country Link
CN (1) CN101324863B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729421B (en) * 2009-12-11 2013-03-20 杭州华三通信技术有限公司 Storage method and device based on time division multiplex
CN105589819A (en) * 2015-12-20 2016-05-18 苏州长风航空电子有限公司 Method for operating EEPROM chip based on IIC interface
CN107924370A (en) * 2015-09-29 2018-04-17 上海宝存信息科技有限公司 Processing is associated with the method for the return entity of multiple requests and the device using this method in single Interrupt Service Routine thread
CN111782561A (en) * 2020-09-07 2020-10-16 新华三半导体技术有限公司 SRAM storage space allocation method, device and chip

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6779055B2 (en) * 2001-06-20 2004-08-17 Freescale Semiconductor, Inc. First-in, first-out memory system having both simultaneous and alternating data access and method thereof
CN1320823C (en) * 2002-07-19 2007-06-06 三星电子株式会社 Image processing device and method
CN100426793C (en) * 2005-10-22 2008-10-15 华为技术有限公司 Storage controller and control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729421B (en) * 2009-12-11 2013-03-20 杭州华三通信技术有限公司 Storage method and device based on time division multiplex
CN107924370A (en) * 2015-09-29 2018-04-17 上海宝存信息科技有限公司 Processing is associated with the method for the return entity of multiple requests and the device using this method in single Interrupt Service Routine thread
CN105589819A (en) * 2015-12-20 2016-05-18 苏州长风航空电子有限公司 Method for operating EEPROM chip based on IIC interface
CN105589819B (en) * 2015-12-20 2018-11-16 苏州长风航空电子有限公司 A method of based on IIC interface operation eeprom chip
CN111782561A (en) * 2020-09-07 2020-10-16 新华三半导体技术有限公司 SRAM storage space allocation method, device and chip

Also Published As

Publication number Publication date
CN101324863B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN100517236C (en) Intelligent card embedded operation system and its control method
CN106790599B (en) A kind of symbiosis virtual machine communication method based on multicore without lock buffer circle
CN103593306A (en) Design method for Cache control unit of protocol processor
CN103019810A (en) Scheduling and management of compute tasks with different execution priority levels
CN105247817A (en) A method, apparatus and system for a source-synchronous circuit-switched network on a chip (NoC)
CZ290716B6 (en) Multimedia computer system
US9032162B1 (en) Systems and methods for providing memory controllers with memory access request merging capabilities
CN103077132B (en) A kind of cache handles method and protocol processor high-speed cache control module
CN106325758B (en) A kind of queue storage space management method and device
US7603544B2 (en) Dynamic allocation of a buffer across multiple clients in multi-threaded processor without performing a complete flush of data associated with allocation
US8341344B2 (en) Techniques for accessing a resource in a processor system
US8954644B2 (en) Apparatus and method for controlling memory
CN104778025B (en) The circuit structure of pushup storage based on random access storage device
US9569381B2 (en) Scheduler for memory
CN107391400A (en) A kind of memory expanding method and system for supporting complicated access instruction
CN102855214B (en) Realize the method for data consistency and a kind of multiple nucleus system
US20240143392A1 (en) Task scheduling method, chip, and electronic device
CN101324863B (en) Device and method for controlling synchronous static memory
CN104461970B (en) Dma controller, mobile terminal and data method for carrying
US20180212894A1 (en) Fork transfer of data between multiple agents within a reconfigurable fabric
JP2010501951A (en) Management module, producer and consumer processor, configuration thereof, interprocessor communication method via shared memory
WO2024027140A1 (en) Data processing method and apparatus, and device, system and readable storage medium
US10205666B2 (en) End-to-end flow control in system on chip interconnects
CN108958903A (en) Embedded multi-core central processing unit method for scheduling task and device
JPH10260895A (en) Semiconductor storage device and computer system using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120704

Termination date: 20160612

CF01 Termination of patent right due to non-payment of annual fee