CN102142268B - Control device and related control method - Google Patents
Control device and related control method Download PDFInfo
- Publication number
- CN102142268B CN102142268B CN201010121046.0A CN201010121046A CN102142268B CN 102142268 B CN102142268 B CN 102142268B CN 201010121046 A CN201010121046 A CN 201010121046A CN 102142268 B CN102142268 B CN 102142268B
- Authority
- CN
- China
- Prior art keywords
- delay
- circuit
- signal
- retardation
- control
- 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
Images
Landscapes
- Pulse Circuits (AREA)
Abstract
Description
技术领域 technical field
本发明涉及控制装置与其相关控制方法技术领域,更具体地说,涉及一单端口先进先出存储器的控制装置与其相关控制方法。The present invention relates to the technical field of a control device and its related control method, more specifically, to a control device of a single-port FIFO memory and its related control method.
背景技术 Background technique
在一存取系统中,一储存装置,例如一单端口先进先出(One-port FIFO)存储器,通常会被指派给具有不同时钟特性(例如不同时钟频率或工作周期)的控制电路来进行存取的动作。以该单端口先进先出存储器为例,该单端口先进先出存储器的一输出入端口就必须常常在不同的控制电路之间进行切换。然而,在切换的过程中,为了避免时钟突发讯号(Glitch)的产生,传统的存取系统的韧体(firmware)会执行一保护机制来确保不会产生突发讯号。更进一步来说,当具有一第一时钟的一第一控制电路正在存取该单端口先进先出存储器时,该韧体欲切换存取(使用)该单端口先进先出存储器的电路,将存取(使用)该单端口先进先出存储器的电路从第一控制电路切换至一第二控制电路。其中该第一控制电路具有一第一控制时钟以及该第二控制电路具有一第二控制时钟,此时传统存取系统的韧体会将输入该单端口先进先出存储器的该第一控制时钟切换为该第二控制时钟。接着,该韧体会计数一特定延迟时间后,才控制该第二控制电路得以开始存取该单端口先进先出存储器。换句话说,该特定延迟时间必须够长才能保证该单端口先进先出存储器所接收到的该第一控制时钟成功切换为该第二控制时钟之后,该第二控制电路才开始存取该单端口先进先出存储器以避免产生时钟突发讯号。然而,当该第一控制时钟以及该第二控制时钟的时钟频率为高频率时,则其周期时间相对的减少了,因此该第一控制时钟切换为该第二控制时钟所需的时间亦减少了。但是,若此时该特定延迟时间仍维持不变的话,则该特定延迟时间就显得过长而产生不必要的时间浪费,进而拖慢了一控制电路存取一单端口先进先出存储器的速度。因此,要如何可适性地调整该特定延迟时间以提高一控制电路存取一单端口先进先出存储器的速度已成为一存取系统所亟需解决的问题。In an access system, a storage device, such as a single-port first-in-first-out (One-port FIFO) memory, is usually assigned to control circuits with different clock characteristics (such as different clock frequencies or duty cycles) for storage. take action. Taking the single-port FIFO memory as an example, an I/O port of the single-port FIFO memory must often be switched between different control circuits. However, in the switching process, in order to avoid the generation of clock glitch, the firmware of the traditional access system will implement a protection mechanism to ensure that the glitch will not be generated. Furthermore, when a first control circuit with a first clock is accessing the single-port FIFO memory, the firmware intends to switch the circuit that accesses (uses) the single-port FIFO memory, and will A circuit for accessing (using) the single-port FIFO memory is switched from a first control circuit to a second control circuit. Wherein the first control circuit has a first control clock and the second control circuit has a second control clock, at this time, the firmware of the conventional access system will switch the first control clock input to the single-port FIFO memory is the second control clock. Then, the firmware counts a specific delay time before controlling the second control circuit to start accessing the single-port FIFO memory. In other words, the specific delay time must be long enough to ensure that the first control clock received by the single-port FIFO memory is successfully switched to the second control clock before the second control circuit starts to access the single port. Port FIFO memory to avoid clock bursts. However, when the clock frequencies of the first control clock and the second control clock are high, their cycle time is relatively reduced, so the time required for switching from the first control clock to the second control clock is also reduced up. However, if the specific delay time remains unchanged at this time, the specific delay time will be too long to cause unnecessary waste of time, thereby slowing down the speed of a control circuit accessing a single-port FIFO memory. . Therefore, how to adaptively adjust the specific delay time to increase the speed of a control circuit to access a single-port FIFO memory has become an urgent problem to be solved for an access system.
发明内容 Contents of the invention
本发明要解决的技术问题在于,针对现有技术的上述缺陷,提供一单端口先进先出存储器的控制装置与其相关控制方法,以解决习知技术所面临的问题。The technical problem to be solved by the present invention is to provide a single-port first-in-first-out memory control device and its related control method to solve the problems faced by the prior art.
本发明解决其技术问题所采用的技术方案之一是:构造一种控制装置。该控制装置包含有一第一延迟电路、一第二延迟电路、一第一控制电路、一第三延迟电路以及一第二控制电路。该第一延迟电路具有一第一延迟量,并用来依据一选择讯号来选择性地延迟一第一输入时钟以及一第二输入时钟中之一以产生一输出时钟至一储存装置。该第二延迟电路耦接于该第一延迟电路,并用来对该选择讯号延迟一第二延迟量以产生一第二延迟选择讯号。该第一控制电路操作于该第一输入时钟并耦接于该第二延迟电路,并用来依据该第二延迟选择讯号来选择性地存取该储存装置。该第三延迟电路耦接于该第一延迟电路,并用来对该选择讯号延迟一第三延迟量以产生一第三延迟选择讯号。该第二控制电路操作于该第二输入时钟并耦接于该第三延迟电路,并用来依据该第三延迟选择讯号来选择性地存取该储存装置。One of the technical solutions adopted by the present invention to solve the technical problem is to construct a control device. The control device includes a first delay circuit, a second delay circuit, a first control circuit, a third delay circuit and a second control circuit. The first delay circuit has a first delay amount and is used for selectively delaying one of a first input clock and a second input clock according to a selection signal to generate an output clock to a storage device. The second delay circuit is coupled to the first delay circuit and used to delay the selection signal by a second delay amount to generate a second delayed selection signal. The first control circuit operates on the first input clock and is coupled to the second delay circuit for selectively accessing the storage device according to the second delay selection signal. The third delay circuit is coupled to the first delay circuit and used to delay the selection signal by a third delay amount to generate a third delayed selection signal. The second control circuit operates on the second input clock and is coupled to the third delay circuit for selectively accessing the storage device according to the third delay selection signal.
本发明所述的控制装置,其中当该第二延迟选择讯号允许该第一控制电路存取该储存装置时,该第三延迟选择讯号不允许该第二控制电路存取该储存装置。In the control device of the present invention, when the second delay selection signal allows the first control circuit to access the storage device, the third delay selection signal does not allow the second control circuit to access the storage device.
本发明所述的控制装置,其中该第二延迟量以及该第三延迟量中至少其一大于该第一延迟量。In the control device of the present invention, at least one of the second delay amount and the third delay amount is greater than the first delay amount.
本发明所述的控制装置,其中该第二延迟电路包含有:The control device of the present invention, wherein the second delay circuit includes:
多个第一特定延迟单元,前后串接以分别提供一延迟量,该多个第一特定延迟单元包含有至少一第一延迟单元以及一第二延迟单元,其中该第一延迟单元操作于该第一输入时钟之下,以及该第二延迟单元操作于该第二输入时钟之下。A plurality of first specific delay units are connected in series to respectively provide a delay amount, and the plurality of first specific delay units include at least one first delay unit and a second delay unit, wherein the first delay unit operates on the under the first input clock, and the second delay unit operates under the second input clock.
本发明所述的控制装置,其中该第一延迟单元与该第二延迟单元的延迟量总和大致上等于该第二延迟量。In the control device of the present invention, the sum of the delays of the first delay unit and the second delay unit is substantially equal to the second delay.
本发明所述的控制装置,其中该第三延迟电路包包含有:The control device of the present invention, wherein the third delay circuit includes:
多个第二特定延迟单元,前后串接以分别提供一延迟量,该多个第二特定延迟单元包含有至少一第三延迟单元以及一第四延迟单元,其中该第三延迟单元操作于该第一输入时钟之下,以及该第四延迟单元操作于该第二输入时钟之下;以及A plurality of second specific delay units are connected in series to respectively provide a delay amount, and the plurality of second specific delay units include at least one third delay unit and a fourth delay unit, wherein the third delay unit operates on the under the first input clock, and the fourth delay unit operates under the second input clock; and
一反相器,串接于该多个第二特定延迟单元中一延迟单元。An inverter is serially connected to a delay unit among the plurality of second specific delay units.
本发明所述的控制装置,其中该第三延迟单元以及该第四延迟单元的延迟量总和大致上等于该第三延迟量。In the control device of the present invention, the sum of the delays of the third delay unit and the fourth delay unit is substantially equal to the third delay.
本发明所述的控制装置,另包含有:The control device of the present invention further includes:
一选择电路,耦接于该第一延迟电路、该第二延迟电路、该第三延迟电路、该第一控制电路以及该第二控制电路,用来依据由该第一控制电路所产生一第一控制讯号以及该第二控制电路所产生的一第二控制讯号来产生该选择讯号至该第一延迟电路、该第二延迟电路以及该第三延迟电路。a selection circuit, coupled to the first delay circuit, the second delay circuit, the third delay circuit, the first control circuit, and the second control circuit, used to generate a first delay circuit based on the first control circuit A control signal and a second control signal generated by the second control circuit are used to generate the selection signal to the first delay circuit, the second delay circuit and the third delay circuit.
本发明所述的控制装置,其中该第二延迟电路、该第三延迟电路以及该选择电路为纯硬件电路。In the control device of the present invention, the second delay circuit, the third delay circuit and the selection circuit are pure hardware circuits.
本发明所述的控制装置,其中该选择电路包含有:The control device of the present invention, wherein the selection circuit includes:
一第一触发(toggle)电路,受控于该第一输入时钟,用来依据该第一控制讯号来触发一第一触发输出讯号;A first trigger (toggle) circuit, controlled by the first input clock, is used to trigger a first trigger output signal according to the first control signal;
一第二触发电路,受控于该第二输入时钟,用来依据该第二控制讯号来触发一第二触发输出讯号;以及A second trigger circuit, controlled by the second input clock, is used to trigger a second trigger output signal according to the second control signal; and
一逻辑门,耦接于该第一触发电路以及该第二触发电路,用来依据该第一触发输出讯号以及该第二触发输出讯号来产生该选择讯号。A logic gate, coupled to the first trigger circuit and the second trigger circuit, is used to generate the selection signal according to the first trigger output signal and the second trigger output signal.
本发明所述的控制装置,其中该逻辑门为一异或门。In the control device of the present invention, the logic gate is an exclusive OR gate.
本发明解决其技术问题所采用的技术方案之二是:构造一种控制方法。该控制方法包含有下列步骤:依据一选择讯号来选择性地延迟一第一输入时钟以及一第二输入时钟中之一以产生一输出时钟至一储存装置;对该选择讯号延迟一第二延迟量以产生一第二延迟选择讯号;依据该第二延迟选择讯号来指示一第一控制电路选择性地存取该储存装置;对该选择讯号延迟一第三延迟量以产生一第三延迟选择讯号;以及依据该第三延迟选择讯号来指示一第二控制电路选择性地存取该储存装置。The second technical solution adopted by the present invention to solve the technical problem is to construct a control method. The control method includes the following steps: selectively delaying one of a first input clock and a second input clock according to a selection signal to generate an output clock to a storage device; delaying the selection signal by a second delay amount to generate a second delay selection signal; instruct a first control circuit to selectively access the storage device according to the second delay selection signal; delay the selection signal by a third delay amount to generate a third delay selection signal; and instruct a second control circuit to selectively access the storage device according to the third delay selection signal.
本发明所述的控制方法,其中当该第二延迟选择讯号指示该第一控制电路允许存取该储存装置时,该第三延迟选择讯号指示该第二控制电路不允许存取该储存装置。In the control method of the present invention, when the second delay selection signal indicates that the first control circuit allows access to the storage device, the third delay selection signal indicates that the second control circuit does not allow access to the storage device.
本发明所述的控制方法,其中该第二延迟量以及该第三延迟量中至少其一大于该第一延迟量。In the control method of the present invention, at least one of the second delay amount and the third delay amount is greater than the first delay amount.
本发明所述的控制方法,另包含有:The control method of the present invention further includes:
依据一第一控制讯号以及一第二控制讯号来产生该选择讯号。The selection signal is generated according to a first control signal and a second control signal.
本发明所述的控制方法,其中依据该第一控制讯号以及该第二控制讯号来产生该选择讯号的步骤包含有:In the control method of the present invention, the step of generating the selection signal according to the first control signal and the second control signal includes:
依据该第一控制讯号来触发一第一触发输出讯号;triggering a first trigger output signal according to the first control signal;
依据该第二控制讯号来触发一第二触发输出讯号;以及triggering a second trigger output signal according to the second control signal; and
依据该第一触发输出讯号以及该第二触发输出讯号来产生该选择讯号。The selection signal is generated according to the first trigger output signal and the second trigger output signal.
实施本发明的控制装置及其控制方法,具有以下有益效果:本发明可以纯硬件电路而不需通过韧体的方式来加以实作,不仅具有较快的反应时间(亦即时钟切换时间),亦同时克服了时钟突发讯号的问题,提高了一控制电路存取一单端口先进先出存储器的速度。Implementing the control device and the control method thereof of the present invention has the following beneficial effects: the present invention can be implemented in the form of a pure hardware circuit without firmware, not only has a faster response time (that is, clock switching time), At the same time, the problem of clock burst signal is overcome, and the speed of accessing a single-port FIFO memory by a control circuit is improved.
附图说明 Description of drawings
下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, in the accompanying drawing:
图1是本发明一种控制装置的一实施例示意图;Fig. 1 is a schematic diagram of an embodiment of a control device of the present invention;
图2是本发明一第一延迟电路的一选择讯号、一第一输入时钟、一第二输入时钟以及其多个讯号的时序图;2 is a timing diagram of a selection signal, a first input clock, a second input clock and multiple signals of a first delay circuit of the present invention;
图3是本发明该控制装置的一第一控制讯号、一第二控制讯号、一第一触发输出讯号、一第二触发输出讯号以及该选择讯号的一波形时序图;Fig. 3 is a waveform timing diagram of a first control signal, a second control signal, a first trigger output signal, a second trigger output signal and the selection signal of the control device of the present invention;
图4是本发明该控制装置的一第一延迟电路的另一实施例示意图;4 is a schematic diagram of another embodiment of a first delay circuit of the control device of the present invention;
图5是依据本发明一种控制方法的一实施例流程图。Fig. 5 is a flowchart of an embodiment of a control method according to the present invention.
【主要组件符号说明】[Description of main component symbols]
100 控制装置100 controls
101、201 第一延迟电路101, 201 The first delay circuit
102 第二延迟电路102 Second delay circuit
103 第一控制电路103 first control circuit
104 第三延迟电路104 The third delay circuit
105 第二控制电路105 Second control circuit
106 选择电路106 selection circuit
107 储存装置107 storage device
101a、101b、101c、101d、201a、201b、201c、201d 与门101a, 101b, 101c, 101d, 201a, 201b, 201c, 201d AND gate
101e、101f、101g、101h、201e、201f、1022a、1022b、1024a、1024b、1042a、1042b、1044a、1044b D型正反器101e, 101f, 101g, 101h, 201e, 201f, 1022a, 1022b, 1024a, 1024b, 1042a, 1042b, 1044a, 1044b D-type flip-flops
101i、201g 或门101i, 201g OR gate
101j 反相器101j Inverter
1022 第一延迟单元1022 first delay unit
1024 第二延迟单元1024 second delay unit
1042 第三延迟单元1042 third delay unit
1044 第四延迟单元1044 fourth delay unit
1062 第一触发电路1062 first trigger circuit
1064 第二触发电路1064 second trigger circuit
1066 逻辑门1066 logic gates
具体实施方式Detailed ways
在说明书及后续的申请专利范围当中使用了某些词汇来指称特定的组件。所属领域中具有通常知识者应可理解,硬件制造商可能会用不同的名词来称呼同一个组件。本说明书及后续的申请专利范围并不以名称的差异来作为区分组件的方式,而是以组件在功能上的差异来作为区分的准则。在通篇说明书及后续的请求项当中所提及的「包含」为一开放式的用语,故应解释成「包含但不限定于」。此外,「耦接」一词在此包含任何直接及间接的电气连接手段,因此,若文中描述一第一装置耦接于一第二装置,则代表该第一装置可直接电气连接于该第二装置,或者通过其它装置或连接手段间接地电气连接至该第二装置。Certain terms are used in the specification and subsequent claims to refer to particular components. It should be understood by those skilled in the art that hardware manufacturers may refer to the same component by different terms. This specification and subsequent patent applications do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. The "comprising" mentioned throughout the specification and subsequent claims is an open term, so it should be interpreted as "including but not limited to". In addition, the term "coupled" here includes any direct and indirect means of electrical connection. Therefore, if it is described in the text that a first device is coupled to a second device, it means that the first device can be directly electrically connected to the second device. second device, or indirectly electrically connected to the second device through other devices or connection means.
请参考图1。图1所示依据本发明一种控制装置100的一实施例示意图。控制装置100包含有一第一延迟电路101、一第二延迟电路102、一第一控制电路103、一第三延迟电路104、一第二控制电路105以及一选择电路106。Please refer to Figure 1. FIG. 1 shows a schematic diagram of an embodiment of a
第一延迟电路101具有一第一延迟量D1,用来依据一选择讯号Ss来选择性地延迟一第一输入时钟C1以及一第二输入时钟C2中之一以产生一输出时钟Cout至一储存装置107。The
第二延迟电路102耦接于第一延迟电路101,用来对选择讯号Ss延迟一第二延迟量D2以产生一第二延迟选择讯号Ssd2。第一控制电路102操作于第一输入时钟C1并耦接于第二延迟电路102,用来依据第二延迟选择讯号Ssd2来选择性地存取储存装置107。The
第三延迟电路104耦接于第一延迟电路101,用来对选择讯号Ss延迟一第三延迟量D3以产生一第三延迟选择讯号Ssd3。第二控制电路105操作于第二输入时钟C2并耦接于第三延迟电路104,用来依据第三延迟选择讯号Ssd3来选择性地存取储存装置107。The
选择电路106耦接于第一延迟电路101、第二延迟电路102、第三延迟电路104、第一控制电路103以及第二控制电路105,用来依据由第一控制电路103所产生一第一控制讯号Sc1以及第二控制电路105所产生的一第二控制讯号Sc2来产生选择讯号Ss至第一延迟电路101、第二延迟电路102以及第三延迟电路104。在本实施例中,储存装置107以一单埠先进先出(One-portFIFO)存储器来加以实作,然其并不作为本发明的限制所在。The
第一延迟电路101包含有与门(And Gate)101a、101b、101c、101d、D型正反器(D Flip-Flop)101e、101f、101g、101h、一或门(Or Gate)101i以及一反相器101j。D型正反器101e、101f互相串接,用来依据第一输入时钟C1来提供一延迟量1、5Ta,其中Ta为第一输入时钟C1的周期。D型正反器101g、101h互相串接,用来依据第二输入时钟C2来提供一延迟量1、5Tb,其中Tb为第二输入时钟C2的周期。与门101a的一输入端N1用来接收选择讯号Ss,一输出端N2耦接于D型正反器101e的一输入端。D型正反器101f的一正相输出端N3耦接于与门101c的一输入端。与门101c另一输入端N4接收第一输入时钟C1。此外,反相器101j耦接于输入端N1与与门101b的一输入端N5之间。与门101b的另一输入端N6耦接于D型正反器101f的一反相输出端,与门101b的一输出端N7耦接于D型正反器101g的一输入端。D型正反器101h的一正相输出端N8耦接于与门101d的一输入端。与门101d的另一输入端N9接收第二输入时钟C2。与门101c和与门101d个别的输出端N10、N11分别耦接于或门(Or Gate)101i的二输入端。或门101i的输出端N12用来输出输出时钟Cout。请注意,第一延迟电路101的细部连接关系请参照本发明图1,在此不另赘述。The
由于第一延迟电路101的结构,故自第一控制电路103/第二控制电路105产生第一控制讯号Sc1/第二控制讯号Sc2以表示欲存取(使用)储存装置107起,直到储存装置107收到改变后的输出时钟Cout为止,共将需要1、5Ta+1、5Tb的延迟时间。由于在切换时钟时常常会产生时钟突发讯号(Glitch),为了避免储存装置107收到具有时钟突发讯号的时钟讯号而误动作,故利用第一延迟电路101延迟一段时间(例如1、5Ta+1、5Tb),待时钟改变后的时钟信号稳定后再输入储存装置107。图1所示的第一延迟电路101仅为一示范性实施例,而非本发明的限制,熟悉此项技艺者当得在本发明的教导之下,改变第一延迟电路101中的D型正反器数目,而以各种变化例实现第一延迟电路101,例如可产生2、5Ta+1、5Tb的第一延迟电路101或可产生2、5Ta+2、5Tb第一延迟电路101等。Due to the structure of the
第二延迟电路102包含有多个第一特定延迟单元,其前后串接以分别提供一延迟量。在本实施例中,该多个第一特定延迟单元包含有一第一延迟单元1022以及一第二延迟单元1024,其中第一延迟单元1022操作于第二输入时钟C2之下,以及第二延迟单元1024操作于第一输入时钟C1之下。第一延迟单元1022包含有D型正反器1022a、1022b,其前后串接以提供一延迟量2Tb。第二延迟单元1024包含有D型正反器1024a、1024b,其前后串接以提供一延迟量2Ta。请注意到,在本实施例中D型正反器1022a、1022b、1024a、1024b的串接顺序仅为说明之用,而非本发明之限制,D型正反器1022a、1022b、1024a、1024b的串接顺序得任意调整。在本实施例中,第一延迟单元1022与第二延迟单元1024的延迟量总和大致上等于第二延迟量D2,亦即2Ta+2Tb=D2。换句话说,第二延迟电路102用来提供延迟量2Ta+2Tb于选择讯号Ss,并延迟后所产生的第二延迟选择讯号Ssd2输出于D型正反器1024b的一输出端N13。The
另一方面,第三延迟电路104包含有多个第二特定延迟单元,其前后串接以分别提供一延迟量。在本实施例中,该多个第二特定延迟单元包含有一第三延迟单元1042以及一第四延迟单元1044,其中第三延迟单元1042操作于第一输入时钟C1之下,以及第四延迟单元1044操作于第二输入时钟C2之下。第三延迟单元1042包含有D型正反器1042a、1042b,其前后串接以提供一延迟量2Ta。第四延迟单元1044包含有D型正反器1044a、1044b,其前后串接以提供一延迟量2Tb。请注意到,在本实施例中D型正反器1042a、1042b、1044a、1044b的串接顺序仅为说明之用,而非本发明之限制,D型正反器1042a、1042b、1044a、1044b的串接顺序得任意调整。此外,本发明的第三延迟电路104另包含有一反相器1046耦接于输入端N1与D型正反器1042a的一输入端N14之间以依据选择讯号Ss来产生一反相选择讯号Ssb。在本实施例中,第三延迟单元1042与第四延迟单元1044的延迟量总和大致上等于第三延迟量D3,亦即2Ta+2Tb=D3。换句话说,第三延迟电路104用来提供延迟量2Ta+2Tb于反相选择讯号Ssb,并将延迟后所产生的第三延迟选择讯号Ssd3输出于D型正反器1044b的一输出端N15。请注意,本发明并未限制反相器1046的耦接方式,换句话说,只要是串接于第三延迟单元1042与第四延迟单元1044均为本发明的范畴所在。举例来说,反相器1046亦可以耦接于第四延迟单元1044与第二控制电路105之间。On the other hand, the
此外,本实施例的选择电路106包含有一第一触发(toggle)电路1062、一第二触发电路1064以及一逻辑门1066。第一触发电路1062操作于第一输入时钟C1之下,用来依据第一控制讯号Sc1来触发一第一触发输出讯号St1。第二触发电路1064操作于第二输入时钟Sc2之下,用来依据第二控制讯号Sc2来触发一第二触发输出讯号St2。逻辑门1066耦接于第一触发电路1062以及第二触发电路1064,用来依据第一触发输出讯号St1以及第二触发输出讯号St2来产生选择讯号Ss。在本实施例中,逻辑门1066以一异或(ExclusiveOR)门加以实作。In addition, the
请参考图2。图2为本发明实施例第一延迟电路101的选择讯号Ss、第一输入时钟C1、第二输入时钟C2、讯号S1、讯号S2、讯号S3、讯号S4、讯号S5、讯号S6、讯号S7、讯号S8、讯号S9的时序图,其中讯号S1为与门101a的输出端N2的讯号,讯号S2为D型正反器101e的一输出端N16的讯号,讯号S3为D型正反器101f的输出端N3的讯号、讯号S4为D型正反器101f的反相输出端N17的讯号,讯号S5为与门101b的输出端N7的讯号,讯号S6为D型正反器101g的一输出端N18的讯号,讯号S7为D型正反器101h的输出端N8的讯号、讯号S8为D型正反器101h的反相输出端N19的讯号、讯号S9为反相器101j的输出端N5的讯号。Please refer to Figure 2. 2 shows the selection signal Ss, the first input clock C1, the second input clock C2, the signal S1, the signal S2, the signal S3, the signal S4, the signal S5, the signal S6, the signal S7, The timing diagram of the signal S8 and the signal S9, wherein the signal S1 is the signal of the output terminal N2 of the AND
为了方更叙述本发明的精神所在,本实施例假设第一输入时钟C1同步于第二输入时钟C2。当选择讯号Ss于时间T1从一低电压准位切换至一高电压准位时,讯号S9以及讯号S5亦会从该高电压准位切换至该低电压准位。由于D型正反器101g为一上升边缘触发的D型正反器,因此第二输入时钟C2会于时间T2触发D型正反器101g以使得讯号S6从该高电压准位切换至该低电压准位。接着,由于D型正反器101h为一下降边缘触发的D型正反器,因此第二输入时钟C2会于时间T3触发D型正反器101h以使得讯号S7从该高电压准位切换至该低电压准位。同时,D型正反器101h的讯号S8会从该低电压准位切换至该高电压准位,进而使得讯号S1从该低电压准位切换至该高电压准位。同理,第一输入时钟C1会于时间T4触发D型正反器101e(D型正反器101e为一上升边缘触发的D型正反器)以使得讯号S2从该低电压准位切换至该高电压准位。接着,第一输入时钟C1会于时间T5触发D型正反器101f(D型正反器101f为一下降边缘触发的D型正反器)以使得讯号S3从该低电压准位切换至该高电压准位。因此,在时间T5以后,与门101d的输出讯号就会为该低电压准位,而与门101c的输出讯号就会为第一输入时钟C1。换句话说,在时间T5以后,输出时钟Cout(亦即或门101i的输出端)就会从第二输入时钟C2切换为第一输入时钟C1。In order to further describe the spirit of the present invention, this embodiment assumes that the first input clock C1 is synchronized with the second input clock C2. When the selection signal Ss is switched from a low voltage level to a high voltage level at time T1, the signal S9 and the signal S5 are also switched from the high voltage level to the low voltage level. Since the D-type flip-
另一方面,请再次参考图2,当选择讯号Ss于时间T6从该高电压准位切换至该低电压准位时(即,欲将输出时钟Cout从第一输入时钟C1切换为第二输入时钟C2),讯号S1亦会从该高电压准位切换至该低电压准位。由于D型正反器101e为一上升边缘触发的D型正反器,因此第一输入时钟C1会于时间T7触发D型正反器101e以使得讯号S2从该高电压准位切换至该低电压准位。接着,由于D型正反器101f为一下降边缘触发的D型正反器,因此第一输入时钟C1会于时间T8触发D型正反器101f以使得讯号S3从该高电压准位切换至该低电压准位。同时,D型正反器101f的讯号S4会从该低电压准位切换至该高电压准位,进而使得讯号S5从该低电压准位切换至该高电压准位。同理,第二输入时钟C2会于时间T9触发D型正反器101g以使得讯号S6从该低电压准位切换至该高电压准位。接着,第二输入时钟C2会于时间T10触发D型正反器101h以使得讯号S7从该低电压准位切换至该高电压准位。因此,在时间T10以后,与门101c的输出讯号就会为该低电压准位,而与门101d的输出讯号就会为第二输入时钟C2。换句话说,在时间T10以后,输出时钟Cout(亦即或门101i的输出端)就会从第一输入时钟C1切换为第二输入时钟C2。On the other hand, please refer to FIG. 2 again, when the selection signal Ss is switched from the high voltage level to the low voltage level at time T6 (that is, the output clock Cout is to be switched from the first input clock C1 to the second input clock C2), the signal S1 will also switch from the high voltage level to the low voltage level. Since the D-type flip-
更进一步来说,D型正反器101g以及101h所构成的延迟单元最长可对讯号S5延迟1、5Tb,而D型正反器101e以及101f所构成的延迟单元最长可对讯号S1延迟1、5Ta,因此第一延迟电路101的第一延迟量D1最长可具有1、5Ta+1、5Tb的延迟时间。换句话说,当选择讯号Ss从该低电压准位切换至该高电压准位时,输出时钟Cout最久不会超过1、5Ta+1、5Tb的延迟时间就会从第二输入时钟C2切换为第一输入时钟C1。反之,当选择讯号Ss从该高电压准位切换至该低电压准位时,输出时钟Cout最久不会超过1、5Ta+1、5Tb的延迟时间就会从第一输入时钟C1切换为第二输入时钟C2。因此,当选择讯号Ss从该低电压准位切换至该高电压准位时,只要第一控制电路103能够在超过第一延迟电路101的延迟时间(1、5Ta+1、5Tb)后才对储存装置107进行存取的话,则储存装置107(亦即输出端N12)就可以避免因时钟突发讯号(Glitch)的产生而造成的误动作。请注意到,熟悉此项技艺者,在本发明的教导之下,当得改变第一延迟电路101中正反器的数目、类型(D型正反器或其它类型的正反器)及触发态样(上升边缘触发或下降边缘触发)以改变第一延迟电路101的延迟时间。Furthermore, the delay unit formed by the D-type flip-
因此,针对于选择讯号Ss,本实施例的第二延迟电路102就提供了2Ta+2Tb的延迟时间,来产生第二延迟选择讯号Ssd2。而第一控制电路103就会依据第二延迟选择讯号Ssd2来存取储存装置107。从图1可以得知,第二延迟电路102中的D型正反器1022a、1022b提供了2Tb的延迟时间,而D型正反器1024a、1024b提供了2Ta的延迟时间,故第二延迟电路102总共提供了2Ta+2Tb的延迟时间。Therefore, for the selection signal Ss, the
另一方面,针对于选择讯号Ss,第三延迟电路104亦提供了2Ta+2Tb的延迟时间,来产生第三延迟选择讯号Ssd3,其原因如同第二延迟电路102,故不另赘述。请注意,本发明并不受限于上述的实施方式,只要第二延迟电路102以及第三延迟电路104所提供的延迟时间比第一延迟电路101所提供的延迟时间来得长的电路组合均为本发明的范畴所在,亦即,熟悉此项技艺者,在本发明的教导之下,当得改变第二延迟电路102或第三延迟电路104中正反器的数目、类型及触发态样以改变第一延迟电路101的延迟时间。因此,经过了第一延迟量D1(亦即2Ta+2Tb),第二延迟选择讯号Ssd2就会从该低电压准位切换至该高电压准位以允许第一控制电路103存取储存装置107。请注意,此领域具有通常知识者在阅读完上述所揭露的技术内容后,应可了解控制装置100对应的运作,亦即当选择讯号Ss从一高电压准位切换至一低电压准位时的运作,其亦具有上述所描述的优点,故在此不另赘述。On the other hand, for the selection signal Ss, the
请注意,本实施例控制装置100的第二延迟电路102、第三延迟电路104以及选择电路106为纯硬件电路。换句话说,在一实施例中,控制装置100可不通过韧体(Firmware)的方式来控制第一控制电路103或第二控制电路105以存取储存装置107。因此,当第一控制电路103需要存取储存装置107时,第一控制电路103就会产生第一控制讯号Sc1至选择电路106来产生选择讯号Ss。同理,当第二控制电路105需要存取储存装置107时,第二控制电路105就会产生第二控制讯号Sc2至选择电路106来产生选择讯号Ss。举例来说,假设当第二控制电路105正在存取储存装置107,而第一控制电路103欲存取储存装置107时,第一控制电路103就会先产生第一控制讯号Sc1至第一触发电路1062,其中第一控制讯号Sc1为一脉波讯号,如图3所示。Please note that the
图3为本发明实施例控制装置100的第一控制讯号Sc1、第二控制讯号Sc2、第一触发输出讯号St1、第二触发输出讯号St2以及选择讯号Ss的一波形时序图。当第一控制电路103于时间To产生第一控制讯号Sc1时,第一触发电路1062就会被第一控制讯号Sc1所触发而于时间Tx将第一触发输出讯号St1从一低电压准位切换至一高电压准位。接着,逻辑门1066(亦即该异或门)就会依据第一触发输出讯号St1以及第二触发输出讯号St2来产生选择讯号Ss。由于此时第二触发输出讯号St2的电压准位为该低电压准位,因此逻辑门1066就会于时间Tb将选择讯号Ss从该低电压准位切换至该高电压准位。接者,第一延迟电路101就会执行如图2所示的运作来将输出时钟Cout从第二输入时钟C2切换为第一输入时钟C1。接者,经过了第一延迟量D1(亦即2Ta+2Tb)后,第一控制电路103就被允许存取储存装置107了。3 is a timing diagram of waveforms of the first control signal Sc1, the second control signal Sc2, the first trigger output signal St1, the second trigger output signal St2 and the selection signal Ss of the
反之,当第一控制电路103正在存取储存装置107,而第二控制电路105欲存取储存装置107时,第二控制电路105就会先产生第二控制讯号Sc2至第二触发电路1064,其中第二控制讯号Sc2亦为一脉波讯号,如图3所示。当第二控制电路105于时间To’产生第二控制讯号Sc2时,第二触发电路1064就会被第二控制讯号Sc2所触发而于时间Ty将第二触发输出讯号St2从一低电压准位切换至一高电压准位。由于此时第一触发输出讯号St1以及第二触发输出讯号St2的电压准位为该高电压准位,因此逻辑门1066就会于时间Ty将选择讯号Ss从该高电压准位切换至该低电压准位。同理,第一延迟电路101就会执行如图2所示的运作来将输出时钟Cout从第一输入时钟C1切换为第二输入时钟C2。接者,经过了第一延迟量D1(亦即2Ta+2Tb)后,第二控制电路105就被允许存取储存装置107了。因此,通过选择电路106内第一触发电路1062、第二触发电路1064以及逻辑门1066互相搭配的运作,第一控制电路103以及第二控制电路105就可以不需依据韧体的控制来选择性地存取储存装置107。因此,相较于传统的储存装置存取系统,本发明的控制装置100不仅具有较快的反应时间(亦即时钟切换时间),亦同时克服了时钟突发讯号的问题。Conversely, when the
请参考图4。图4所示为本发明控制装置100的第一延迟电路101的另一实施例示意图,该另一实施例以标号201来标示。第一延迟电路201包含有与门201a、201b、201c、201d、D型正反器201e、201f、一或门201g以及一反相器201h。D型正反器101e依据一第一输入时钟C1’来提供一延迟量0、5Ta’,其中Ta’为第一输入时钟C1’的周期。D型正反器201f用来依据一第二输入时钟C2’来提供一延迟量0、5Tb’,其中Tb’为第二输入时钟C2’的周期。与门201a的一输入端N1’用来接收一选择讯号Ss’,一输出端N2’耦接于D型正反器201e的一输入端。D型正反器201e的一正相输出端N3’耦接于与门201c的一输入端,与门201c另一输入端N4’接收第一输入时钟C1’。此外,反相器201h耦接于输入端N1’与与门201b的一输入端N5’之间。与门201b的另一输入端N6’耦接于D型正反器201e的一反相输出端,与门201b的一输出端N7’耦接于D型正反器201f的一输入端。D型正反器201f的一正相输出端N8’耦接于与门201d的一输入端。与门201d的另一输入端N9’接收第二输入时钟C2’。与门201c和与门201d分别输出端N10’、N11’分别耦接于或门201g的二输入端。或门201g的输出端N12’用来输出输出时钟Cout’。参照关于第一延迟电路101的运作,此领域具有通常知识者应可了解第一延迟电路201最长可具有0、5Ta’+0、5Tb’的延迟时间。换句话说,当选择讯号Ss’从该低电压准位切换至该高电压准位时,输出时钟Cout’最久不会超过0、5Ta’+0、5Tb’的延迟时间就会从第二输入时钟C2’切换为第一输入时钟C1’。反之,当选择讯号Ss’从该高电压准位切换至该低电压准位时,输出时钟Cout’最久不会超过0、5Ta’+0、5Tb’的延迟时间就会从第一输入时钟C1’切换为第二输入时钟C2’。因此,以利用第一延迟电路201来构成控制装置100的实施例来说,当选择讯号Ss’从该低电压准位切换至该高电压准位时,只要第一控制电路103能够在超过0、5Ta’+0、5Tb’的延迟时间后才对储存装置107进行存取的话,则储存装置107(亦即输出端N12)就可以避免时钟突发讯号(Glitch)所造成的问题。换句话说,在此一实施例中,只要将第二延迟电路102的第二延迟量D2以及第三延迟电路103的第三延迟量D3设定为比0、5Ta’+0、5Tb’来得长(例如1Ta’+1Tb’)的话就可以避免时钟突发讯号的产生了。Please refer to Figure 4. FIG. 4 is a schematic diagram of another embodiment of the
请参考图5。图5所示为依据本发明一种控制方法500的一实施例流程图。为了更清楚说明本发明的精神所在,控制方法500以图1的实施例控制装置100来加以实作,但所提供的实施例并不用以限制本发明所涵盖的范围。此外,倘若大体上可达到相同的结果,并不需要一定照图5所示的流程中的步骤顺序来进行,且图5所示的步骤不一定要连续进行,亦即其它步骤亦可插入其中。控制方法500包含有下列的步骤:Please refer to Figure 5. FIG. 5 is a flowchart of an embodiment of a
步骤501:产生第一控制讯号Sc1以及第二控制讯号Sc2至少其中之一;Step 501: Generate at least one of the first control signal Sc1 and the second control signal Sc2;
步骤502:依据第一控制讯号Sc1或第二控制讯号Sc2来分别触发第一触发输出讯号St1以及第二触发输出讯号St2;Step 502: respectively triggering the first trigger output signal St1 and the second trigger output signal St2 according to the first control signal Sc1 or the second control signal Sc2;
步骤503:依据第一触发输出讯号St1以及第二触发输出讯号St2来产生选择讯号Ss,跳至步骤504;Step 503: Generate a selection signal Ss according to the first trigger output signal St1 and the second trigger output signal St2, and skip to step 504;
步骤504:依据选择讯号Ss对第一输入时钟C1以及第二输入时钟C2中之一延迟一第一延迟量D1以产生输出时钟Cout至储存装置107;Step 504: Delay one of the first input clock C1 and the second input clock C2 by a first delay amount D1 according to the selection signal Ss to generate an output clock Cout to the
步骤505:对选择讯号Ss延迟第二延迟量D2以产生第二延迟选择讯号Ssd2;Step 505: Delay the selection signal Ss by a second delay amount D2 to generate a second delayed selection signal Ssd2;
步骤506:依据第二延迟选择讯号Ssd2来选择性地存取储存装置107;Step 506: selectively access the
步骤507:对选择讯号Ss延迟第三延迟量D3以产生第三延迟选择讯号Ssd3;Step 507: Delay the selection signal Ss by a third delay amount D3 to generate a third delayed selection signal Ssd3;
步骤508:依据第三延迟选择讯号Ssd3来选择性地存取储存装置107。Step 508: Selectively access the
在步骤501中,当第一控制电路103和第二控制电路105中一控制电路欲对储存装置107进行存取时,该控制电路就会产生一控制讯号至第一触发电路1062或第二触发电路1064。例如,当第一控制电路103欲对储存装置107进行存取时,第一控制电路103就会产生一控制讯号Sc1至第一触发电路1062。当第二控制电路105欲对储存装置107进行存取时,第二控制电路105就会产生一控制讯号Sc2至第二触发电路1064。接着,受到该控制讯号所触发的触发电路就会将其输出讯号(第一触发输出讯号St1或第二触发输出讯号St2)的电压准位进行切换(步骤502)。接着,在步骤503中,逻辑门1066就会依据第一触发输出讯号St1以及第二触发输出讯号St2来产生选择讯号Ss。相应地,选择讯号Ss可表示出第一控制电路103或第二控制电路105中哪一个电路欲对储存装置107进行存取。参照关于控制装置100的操作叙述,选择讯号Ss会经过三个延迟电路(亦即第一延迟电路101(步骤504)、第二延迟电路102(步骤505)以及第三延迟电路104(步骤507))来分别产生三个输出讯号(亦即输出时钟Cout、第二延迟选择讯号Ssd2以及第三延迟选择讯号Ssd3),其中第二延迟电路102以及第三延迟电路104的延迟时间(D2、D3)大于第一延迟电路101的延迟时间(D1)。接着,若输出时钟Cout为第一输入时钟C1,则第一控制电路103就会依据第二延迟选择讯号Ssd2的指示,开始存取储存装置107(步骤506)。反之,若输出时钟Cout为第二输入时钟C2,则第二控制电路105就会依据第三延迟选择讯号Ssd3的指示,开始存取储存装置107(步骤508)。请注意到,控制装置100依据选择讯号Ss产生三个输出讯号(亦即输出时钟Cout、第二延迟选择讯号Ssd2以及第三延迟选择讯号Ssd3),其中第二延迟选择讯号Ssd2用来指示第一控制电路103何时开始存取储存装置107,第三延迟选择讯号Ssd3用来指示第二控制电路105何时开始存取储存装置107。在正常运作下,当第二延迟选择讯号Ssd2指示第一控制电路103存取储存装置107时,第三延迟选择讯号Ssd3则指示第二控制电路105不对储存装置107进行存取,反之亦然。由于当第一控制电路103或第二控制电路105开始存取储存装置107时,对应的输入时钟已于较早被传送至储存装置107,因此储存装置107就可以避免时钟突发讯号所造成的问题。In
综上所述,相较于传统的储存装置存取系统,本发明的控制装置100以及其控制方法500可以纯硬件电路而不需通过韧体的方式来加以实作,此举不仅具有较快的反应时间(亦即时钟切换时间),亦同时克服了时钟突发讯号的问题。To sum up, compared with the traditional storage device access system, the
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010121046.0A CN102142268B (en) | 2010-02-02 | 2010-02-02 | Control device and related control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010121046.0A CN102142268B (en) | 2010-02-02 | 2010-02-02 | Control device and related control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102142268A CN102142268A (en) | 2011-08-03 |
CN102142268B true CN102142268B (en) | 2014-04-30 |
Family
ID=44409718
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010121046.0A Active CN102142268B (en) | 2010-02-02 | 2010-02-02 | Control device and related control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102142268B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1106560A (en) * | 1992-09-29 | 1995-08-09 | 奇特尔公司 | Fault tolerant memory system |
CN1487669A (en) * | 2002-10-05 | 2004-04-07 | ���ǵ�����ʽ���� | Time-delay locking loop circuit for internally correcting dutyratio and method for correcting duty cycle thereof |
CN1941165A (en) * | 2005-09-29 | 2007-04-04 | 海力士半导体有限公司 | Delay locked loop circuit |
US20070139085A1 (en) * | 2005-10-10 | 2007-06-21 | Stmicroelectronics (Research & Development) Limited | Fast buffer pointer across clock domains |
-
2010
- 2010-02-02 CN CN201010121046.0A patent/CN102142268B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1106560A (en) * | 1992-09-29 | 1995-08-09 | 奇特尔公司 | Fault tolerant memory system |
CN1487669A (en) * | 2002-10-05 | 2004-04-07 | ���ǵ�����ʽ���� | Time-delay locking loop circuit for internally correcting dutyratio and method for correcting duty cycle thereof |
CN1941165A (en) * | 2005-09-29 | 2007-04-04 | 海力士半导体有限公司 | Delay locked loop circuit |
US20070139085A1 (en) * | 2005-10-10 | 2007-06-21 | Stmicroelectronics (Research & Development) Limited | Fast buffer pointer across clock domains |
Also Published As
Publication number | Publication date |
---|---|
CN102142268A (en) | 2011-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101135921B (en) | Multi-clock switching device and switching method thereof | |
CN1983811B (en) | Delay cell and delay line circuit having the same | |
CN111435602A (en) | Signal generating circuit synchronized with clock signal and semiconductor device using the same | |
US8729942B2 (en) | Race free semi-dynamic D-type flip flop | |
US20140210526A1 (en) | Rotational Synchronizer Circuit for Metastablity Resolution | |
CN102362432A (en) | Low-power dual-edge-triggered storage cell with scan test support and clock gating circuit therefor | |
US10659024B2 (en) | Integrated circuit comprising circuitry to change a clock signal frequency while a data signal is valid | |
JP2010158004A (en) | Delay circuit, and variable delay circuit | |
TW201448471A (en) | Configurable time delays for equalizing pulse width modulation timing | |
US7030676B2 (en) | Timing circuit for separate positive and negative edge placement in a switching DC-DC converter | |
KR101699241B1 (en) | Flip Flop Circuit with High Speed and Low Power | |
CN102142268B (en) | Control device and related control method | |
US9054685B2 (en) | Programmable bus signal hold time without system clock | |
TWI414926B (en) | Controlling device and related controlling method | |
WO2023235164A1 (en) | Anti-aging clock source multiplexing | |
US6708261B1 (en) | Multi-stage data buffers having efficient data transfer characteristics and methods of operating same | |
US7400178B2 (en) | Data output clock selection circuit for quad-data rate interface | |
JP2002016482A (en) | Temporary data storage device | |
US8248129B2 (en) | Signal delay circuit, clock transfer control circuit and semiconductor device having the same | |
US7977983B1 (en) | Device having synchronizing capabilities | |
US12135575B2 (en) | Asynchronous finite state machine output masking with customizable topology | |
US7098695B2 (en) | Dynamic-to-static logic converter | |
CN220894796U (en) | Programmable clock synchronous logic circuit, system and equipment | |
WO2024139101A1 (en) | Processing method, control method, chip, filter, apparatus, system and medium | |
WO2024087781A1 (en) | Command decoding circuit and semiconductor memory |
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 |