CN1264166C - Non-synchronous first in first out controller using biedge sampling processing control signal - Google Patents
Non-synchronous first in first out controller using biedge sampling processing control signal Download PDFInfo
- Publication number
- CN1264166C CN1264166C CNB031148492A CN03114849A CN1264166C CN 1264166 C CN1264166 C CN 1264166C CN B031148492 A CNB031148492 A CN B031148492A CN 03114849 A CN03114849 A CN 03114849A CN 1264166 C CN1264166 C CN 1264166C
- Authority
- CN
- China
- Prior art keywords
- data
- control signal
- processing module
- signal
- rising edge
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
The present invention discloses a non-synchronous first-in-first-out controller for processing control signals by using double-edge sampling, which comprises a rising edge processing module, a falling edge processing module, a comprehensive processing module and a memory, wherein the rising edge processing module latches a first external control signal and data thereof which are input by directly using the rising edge of a double data rate clock signal as the latching time, and is processed by logical operation together with a second external control signal and data thereof which are output by the falling edge processing module so as to output a third control signal and data thereof; the falling edge processing module latches the first external control signal and the data thereof by directly using the falling edge of the double data rate clock signal, and is processed by logical operation together with a fourth external control signal and data thereof which are output by the rising edge processing module so as to output a fifth control signal and data thereof; the comprehensive processing module selects one edge of the double data rate clock signal as the latching time, and meanwhile, samples the third control signal and the data thereof, and the fifth control signal and the data thereof so as to output a sixth control signal and data thereof according to the agreement of the memory; the memory is used for memorizing the sixth control signal and the data thereof.
Description
Technical field
The invention belongs to a kind of first-in first-out (FIFO) controller, relate in particular to a kind of asynchronous first-in first-out (FIFO) controller that utilizes two along the sampling processing control signal.
Technical background
Existing first-in first-out (FIFO) controller is exactly in the negative edge sampling because latch register (flip-flop) is not in the rising edge sampling, so be equivalent to two different clock sampling data along sampling with clock is two.Owing to be not with same clock signal sampled data, can't directly data be put into fifo controller according to external signal, need carry out level cache in addition, utilize one to be data in the clock sampling buffer memory of extraneous clock signal at least again.But processing at first needs an internal clock signal that additionally doubles extraneous clock like this, secondly because double data rate (DDR) clock of this clock signal and input has no relation, consider whether over-sampling and Time Created (setup time) and retention time (hold time) be satisfied, complicated and wayward, and clock skew and dutycycle had relatively high expectations.
Summary of the invention
Might the generation problem relevant in order to solve with Time Created or retention time by internal clocking sampling external data, also make circuit inside when the relative sampled data of frequency of operation is low, need not additionally to generate a clock sampled data, the objective of the invention is to, directly utilize the relation safety sampled data stably between interface clock and the data, compared with the prior art, whole device only needs a frequency of operation, inside need not a frequency and additionally doubles extraneous clock, thereby simplified control to Time Created between data and the clock and retention time, make structure simpler, the later stage circuit synthesis is also convenient.
To achieve these goals, the present invention by the following technical solutions, a kind of asynchronous first-in first-out controller that utilizes two along the sampling processing control signal is characterized in that, comprising:
The rising edge processing module, directly latch the time with the conduct of double data rate rising edge clock signal, first external control signal of input and data are obtained the portion's control signal and the data all round after latching, described then rising edge processing module is passed through logical operation with described first external control signal that latchs and data with second external control signal and the data of the output of negative edge processing module, exports the 3rd control signal and data;
Negative edge is handled module, directly with double data rate clock signal negative edge as the time of latching, obtain second external control signal and data after latching described first external control signal and data, then with rising edge processing module output all round portion's control signal and data pass through logical operation, export the 5th control signal and data;
The overall treatment module, an edge choosing the double data rate clock signal is as latching the time, simultaneously described the 3rd control signal and data and described the 5th control signal and data are sampled, obtain exporting the 6th control signal and data according to the agreement of storer;
Storer is used for storing described the 6th control signal and data.
Description of drawings
Below in conjunction with accompanying drawing structure of the present invention is elaborated, the those skilled in the art that are familiar with the present technique field can understand the features and advantages of the present invention from describe.
Fig. 1 is the system architecture diagram of controller of the present invention;
Fig. 2 is a storer control signal protocol figure;
Fig. 3 represents the example oscillogram of rising edge processing module, negative edge processing module and overall treatment module;
Fig. 4 is the example oscillogram of signal in the storer.
Embodiment
See also Fig. 1, be depicted as a kind of structured flowchart that utilizes two asynchronous FIFO controllers along the sampling processing control signal, handle module 2, overall treatment module 3 and storer 4 parts by rising edge processing module 1, negative edge and form.
Wherein, rising edge and negative edge are handled module 1 and 2 and are directly risen with the DDR clock signal respectively, negative edge is as latching the time, external control signal and the data A that receives latched, rising edge processing module 1 is handled the address that obtains after external control signal that module 2 latchs and data and the processing thereof with this latch signal and negative edge and is handled the output signal C that obtains rising edge processing module 1 then, it is also similar that negative edge is handled module 2 whole processes, and negative edge is handled the address that obtains after external control signal that module 2 latchs its latched signal and rising edge processing module 1 and data and the processing thereof and handled the output signal E that obtains negative edge processing module 1.In signal C, the E input overall treatment module 3 of two module outputs, this overall treatment module 3 is sampled to module 1 and 2 according to the storer 4 concrete agreements that adopt and is handled, and consequential signal is input in the storer 4 stores.
Below the symbol of using among Fig. 2,3,4 is described.Wherein: input signal: clock represents the DDR clock, but the equal sampled data of rising edge and negative edge; Whether Valid represents to work as the forward position data effective; Data is the transmission data of 8bit width.
See also the control signal protocol figure of storer 4 shown in Figure 2, and Fig. 3 represents the example oscillogram of rising edge processing module, negative edge processing module and overall treatment module, wherein, in rising edge processing module 1, d0 is illustrated in the data that rising edge clock samples; Valid0 is illustrated in the useful signal that rising edge clock samples; Wrt_addr0 represents the address of next d0 write store 4.At the rising edge of clock, if the valid0 signal is effective, show that this needs write store 4 along data, the address that so next data deposit in should be the next unit that previous data deposit the address in.Because the rising edge and the negative edge of clock all can write data, so the address that previous data write not is wrt_addr0 represented address now, but the represented address of wrt_addr1.Therefore, inserting the value of wrt_addr0 this moment is that wrt_addr1 adds 1.If the valid0 invalidating signal shows this along no datat write store 4, then directly the value of wrt_addr1 is inserted wrt_addr0 and get final product.
Handle in the module 2 at negative edge, d1 is illustrated in the data that the clock negative edge samples; Valid1 is illustrated in the useful signal that the clock negative edge samples; Wrt_addr1 represents the address of next d1 write store 4, and its principle is identical with above-mentioned wrt_addr0, if valid1 is effective, the value of then inserting wrt_addr1 is that wrt_addr0 adds 1 when negative edge; Otherwise, insert the value of wrt_addr1.
In the overall treatment module 3, choose the sampling edge of rising edge as overall treatment module 3, according to the signal valid0 of rising edge processing module output, wrt_addr0 and negative edge are handled the signal valid1 of module 2 outputs, and wrt_addr1 draws the required control signal of storer 4.And latch data d0 and d1 obtain the input data of storer 4.
How comprehensive rising edge processing module 1 and negative edge overall treatment module 3 is described below is and handle the signal of module 2, the control signal of above-mentioned static memory and data produced.
At the rising edge of clock, at first judge signal valid0 and valid1, judgement will write several data; Secondly judge the position that writes, the data that decision writes.Specific practice is as follows:
1. if signal valid0 and valid1 are 1, two static memories all will be written into data so, so signal cen_odd, cen_even, wen_odd, wen_even will put 0, judge wrt_addr0 simultaneously the 0th, if 1, be expressed as the odd address, aa_odd gets the front three of wrt_addr0, and da_odd gets the value of d0, aa_even then gets the front three of wrt_addr1, and da_even gets the value of d1; Otherwise if the 0th of wrt_addr0 is 0, expression is an even address, and then aa_odd gets the front three of wrt_addr1, and da_odd gets the value of d1, and aa_even then gets the front three of wrt_addr0, and da_even gets the value of d0.As the zone that S0 indicated among the figure.
2. if signal valid0 is 1, and valid1 is 0, judge wrt_addr0 so the 0th, if 1, be expressed as the odd address, cen_odd, wen_odd puts 0, and aa_odd gets the front three of wrt_addr0, da_odd gets putting of d0, and cen_even, wen_even puts 1, and aa_even and da_even keep initial value; As S1 among the figure, zone that S2 indicates.
3. if signal valid1 is 1, and valid0 is 0, determination methods is the same, just to judge according to the address of wrt_addr1, but not wrt_addr0, valid data are d1 simultaneously; As scheme zone that S3 indicates.
4. if signal valid0 and valid1 are 0, expression does not have data will write static memory so.So all control signal cen_odd, cen_even, wen_odd, wen_even will put 1, aa_odd, aa_even, da_odd, da_even keeps initial value.
It is 16 that storer 4 has adopted the degree of depth of two UMC, and width is 8 high speed both-end synchronous static memory, storage odd number data, called after sram_odd; Another sheet is stored the even number data, called after sram_even.Which sheet static memory data d0 or d1 write depends on the address, if the address is an odd number, then deposits sram_odd in, otherwise deposits sram_even in.Its signal waveforms is seen shown in Figure 4, and every static memory has clock signal CLKA, and CLKB selects signal CENA, CENB, written allowance signal WENA, WENB, input data DA, DB, and output QA, QB.In this embodiment, only adopt PORT A as writing inlet.So overall treatment module 3 must provide signal CLKA, CENA, WENA and data DA.Pass between its signal is: at the rising edge of clock signal clk A, CLKB, when elected signal CENA, WENA are low simultaneously, data DA is write address AA.
The front provides the description to preferred embodiment, so that any technician in this area can use or utilize the present invention.Various modifications to these embodiment are conspicuous to those skilled in the art, can be applied to other embodiment to total principle described here and not use creativeness.Thereby, the embodiment shown in the present invention will be not limited to here, and the wide region of principle that should disclose and new feature according to meeting here.
Claims (3)
1, a kind of asynchronous first-in first-out controller that utilizes two along the sampling processing control signal is characterized in that, comprising:
The rising edge processing module, directly latch the time with the conduct of double data rate rising edge clock signal, first external control signal of input and data are obtained the portion's control signal and the data all round after latching, described then rising edge processing module is passed through logical operation with described first external control signal that latchs and data with second external control signal and the data of the output of negative edge processing module, exports the 3rd control signal and data;
Negative edge is handled module, directly with double data rate clock signal negative edge as the time of latching, obtain second external control signal and data after latching described first external control signal and data, then with rising edge processing module output all round portion's control signal and data pass through logical operation, export the 5th control signal and data;
The overall treatment module, an edge choosing the double data rate clock signal is as latching the time, simultaneously described the 3rd control signal and data and described the 5th control signal and data are sampled, obtain exporting the 6th control signal and data according to the agreement of storer;
Storer is used for storing described the 6th control signal and data.
2, the two asynchronous first-in first-out controllers along the sampling processing control signal of utilization according to claim 1 is characterized in that described the 6th control signal and data comprise address, sheet selected control system signal and data.
3, the two asynchronous first-in first-out controllers along the sampling processing control signal of utilization according to claim 1 is characterized in that described storer comprises static memory, dynamic RAM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031148492A CN1264166C (en) | 2003-01-13 | 2003-01-13 | Non-synchronous first in first out controller using biedge sampling processing control signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB031148492A CN1264166C (en) | 2003-01-13 | 2003-01-13 | Non-synchronous first in first out controller using biedge sampling processing control signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1517883A CN1517883A (en) | 2004-08-04 |
CN1264166C true CN1264166C (en) | 2006-07-12 |
Family
ID=34284006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB031148492A Expired - Fee Related CN1264166C (en) | 2003-01-13 | 2003-01-13 | Non-synchronous first in first out controller using biedge sampling processing control signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1264166C (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4896450B2 (en) | 2005-06-30 | 2012-03-14 | 株式会社東芝 | Storage device |
CN103078624B (en) | 2011-10-26 | 2014-07-16 | 迈实电子(上海)有限公司 | Signal input circuit, method and chip with signal input circuit |
CN107797956B (en) * | 2017-11-14 | 2019-04-23 | 深圳锐越微技术有限公司 | Double edge triggering circular buffers and communication system |
CN109738681B (en) * | 2018-12-26 | 2021-04-13 | 中电科思仪科技股份有限公司 | Dual-path acquisition path multiplexing circuit, sampling control method and data splicing method |
CN112416276B (en) * | 2020-10-13 | 2021-07-23 | 北京匠数科技有限公司 | Display picture analysis device, system and method |
CN115148252B (en) * | 2022-09-05 | 2022-12-23 | 浙江力积存储科技有限公司 | Input signal processing method and memory circuit structure |
-
2003
- 2003-01-13 CN CNB031148492A patent/CN1264166C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1517883A (en) | 2004-08-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1326150C (en) | Synchronous random semiconductor memory | |
US6115320A (en) | Separate byte control on fully synchronous pipelined SRAM | |
CN1264166C (en) | Non-synchronous first in first out controller using biedge sampling processing control signal | |
CN101261575B (en) | Asynchronous FIFO memory accomplishing unequal breadth data transmission | |
CN1637935A (en) | Semiconductor memory device having external data load signal and serial-to-parallel data prefetch method thereof | |
CN108038068A (en) | One kind reads method of data synchronization and system based on DDR | |
US6259648B1 (en) | Methods and apparatus for implementing pseudo dual port memory | |
CN1504900B (en) | Control circuit and method for reading data from a memory | |
CN109918332A (en) | SPI is from equipment and SPI equipment | |
CN1860460A (en) | Echo clock on memory system having wait information | |
US7559003B2 (en) | Semiconductor memory test apparatus | |
KR100275182B1 (en) | Sequential memmory | |
CN110097902B (en) | Read-write control module and method for same port and dual-port memory | |
CN106158012A (en) | Sequential processing method, on-chip SRAM and the FPGA of FPGA on-chip SRAM | |
CN103592489A (en) | Method for designing deep storage of digital oscilloscope | |
US6400642B1 (en) | Memory architecture | |
CN101192197B (en) | De-interleaver, deinterleaving method and doppler's ultrasonic diagnosis apparatus adopting same | |
CN101277378B (en) | Apparatus for scaling image and line buffer thereof | |
CN112711393B (en) | Real-time multichannel accumulation method based on FPGA | |
US6260106B1 (en) | Synchronous data storage system having re-drive circuits for reduced signal line loading | |
CN103377029B (en) | parameterized universal FIFO control method | |
EP1046172B1 (en) | Device containing a multi-port memory | |
CN1119815C (en) | One-chip clock synchronized memory device | |
CN2689399Y (en) | Synchronous single-interface SRAM for realizing synchronous double-interface SRAM function | |
CN1169154C (en) | Semiconductive memory device capable of carrying out write-in operation at high speed |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20060712 Termination date: 20140113 |