CN106525231A - A Multi-photon Coincidence Counter Based on Programmable Logic Device - Google Patents
A Multi-photon Coincidence Counter Based on Programmable Logic Device Download PDFInfo
- Publication number
- CN106525231A CN106525231A CN201610961414.XA CN201610961414A CN106525231A CN 106525231 A CN106525231 A CN 106525231A CN 201610961414 A CN201610961414 A CN 201610961414A CN 106525231 A CN106525231 A CN 106525231A
- Authority
- CN
- China
- Prior art keywords
- ddr
- coincidence
- fifo
- counter
- management module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000001360 synchronised effect Effects 0.000 claims abstract description 17
- 238000007493 shaping process Methods 0.000 claims abstract description 13
- 230000007246 mechanism Effects 0.000 claims abstract description 12
- 238000005070 sampling Methods 0.000 claims description 33
- 238000000034 method Methods 0.000 claims description 26
- 230000008569 process Effects 0.000 claims description 14
- 238000013507 mapping Methods 0.000 claims description 10
- 238000013480 data collection Methods 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 claims description 4
- 238000012805 post-processing Methods 0.000 claims description 3
- 230000009977 dual effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 22
- 238000002474 experimental method Methods 0.000 description 13
- 230000003287 optical effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000010363 phase shift Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 241000218691 Cupressaceae Species 0.000 description 1
- 102100026816 DNA-dependent metalloprotease SPRTN Human genes 0.000 description 1
- 101710175461 DNA-dependent metalloprotease SPRTN Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000005433 particle physics related processes and functions Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/44—Electric circuits
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/44—Electric circuits
- G01J2001/4413—Type
- G01J2001/442—Single-photon detection or photon counting
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Synchronisation In Digital Transmission Systems (AREA)
- Optical Communication System (AREA)
Abstract
本发明公开了一种基于可编程逻辑器件的多光子符合计数器,基于DDR的大容量,可以支持对多符合种类同时进行计数,且采用分流机制解决了DDR读写速度不够的问题,提高了符合系统的事件率;并且,通过脉冲整型和同步时钟的引入能够双重抑制偶然符合的发生;同时,脉冲延时可以动态调节,由于采用了FPGA的IO资源,调节精度高达几十皮秒,线性度好。动态调节解决了输入信号的延时可能不能保证每次都一致的问题;而且,引入扫描机制,使得在得知单通道计数分布的情况下,可外推出符合结果的正确性。此外,PC可以根据状态字得知系统工作状态,再通过控制字去调节系统参数,使工作流程自动化,同时增加了系统鲁棒性。
The invention discloses a multi-photon coincidence counter based on a programmable logic device. Based on the large capacity of DDR, it can support counting multiple coincidence types at the same time, and adopts a shunt mechanism to solve the problem of insufficient reading and writing speed of DDR, and improves the coincidence rate. The event rate of the system; and, through the introduction of pulse shaping and synchronous clocks, the occurrence of accidental coincidence can be double suppressed; at the same time, the pulse delay can be dynamically adjusted. Due to the use of FPGA IO resources, the adjustment accuracy is as high as tens of picoseconds, linear good degree. The dynamic adjustment solves the problem that the delay of the input signal may not be consistent every time; moreover, the introduction of the scanning mechanism makes it possible to extrapolate the correctness of the matching result when the single-channel count distribution is known. In addition, the PC can know the working status of the system according to the status word, and then adjust the system parameters through the control word, so as to automate the workflow and increase the robustness of the system.
Description
技术领域technical field
本发明涉及光子计数领域,尤其涉及一种基于可编程逻辑器件的多光子符合计数器。The invention relates to the field of photon counting, in particular to a multi-photon coincidence counter based on a programmable logic device.
背景技术Background technique
多光子纠缠是一种奇特的量子现象,其在研究量子非定域性,量子纠错和量子模拟的研究中都是不可缺少的资源。光子数越多,单个光子的自由度越大,多光子系统处理信息的能力就越强。在最新的实验进展中,八个光子的纠缠得以实现。Multiphoton entanglement is a peculiar quantum phenomenon, which is an indispensable resource in the study of quantum nonlocality, quantum error correction and quantum simulation. The greater the number of photons, the greater the degree of freedom of a single photon, and the stronger the ability of the multi-photon system to process information. In the latest experimental advance, the entanglement of eight photons has been achieved.
在多光子纠缠实验中,将纠缠这种量子特性转化为我们经验世界能观测的量需要对光子数进行计数统计,由于纠缠是一种多体的过程,所以计数是符合计数。符合计数器的功能是对两个或两个以上信号之间的符合进行判断和计数。In multi-photon entanglement experiments, converting the quantum properties of entanglement into quantities that can be observed in our empirical world requires counting and counting the number of photons. Since entanglement is a many-body process, counting is coincidence counting. The function of the coincidence counter is to judge and count the coincidence between two or more signals.
2005年,Gaertner等人提出地址映射的方案。如图1所示,系统由符合探测单元,先入先出缓存器(FIFO),微控制器和片上random access memory(RAM)组成。符合探测单元的工作原理是将输入信号取逻辑或后的信号作为取样触发,取样得到的码型作为计数器的地址缓存至FIFO。In 2005, Gaertner et al. proposed an address mapping scheme. As shown in Figure 1, the system consists of a detection unit, a first-in-first-out buffer (FIFO), a microcontroller and on-chip random access memory (RAM). The working principle of the coincidence detection unit is to take the signal after the logical OR of the input signal as the sampling trigger, and the sampled pattern is buffered into the FIFO as the address of the counter.
2015年,BYUNG KWON PARK等人在FPGA上用与门也实现了八体符合的计数器。如图2所示,系统集成在FPGA上,其中包含延时模块,脉冲整型模块,符合信号发生器,计数器和处理器,FPGA通过串口转USB与PC通信。符合信号发生器的原理是通过多路器选通多输入与门来决定符合配置,每个多输入与门对应一种符合种类。In 2015, BYUNG KWON PARK and others also implemented an eight-body coincidence counter on FPGA with an AND gate. As shown in Figure 2, the system is integrated on the FPGA, which includes a delay module, a pulse shaping module, a signal generator, a counter and a processor, and the FPGA communicates with the PC through a serial port to USB. The principle of the coincidence signal generator is to determine the coincidence configuration by gating the multi-input AND gate through a multiplexer, and each multi-input AND gate corresponds to a coincidence type.
在光量子通信和光量子计算中,通常要求测量多光子符合事件,八光子的实验通道数已经达到16个,符合种类多达216-1,剔除一些无意义的符合,符合种类至少也是几何增长的,同时,光源亮度也达到单通道计数率兆赫兹,系统事件率十兆赫兹的水平。随着实验技术的快速发展,通道数和光源亮度都会不断增加。In optical quantum communication and optical quantum computing, it is usually required to measure multi-photon coincidence events. The number of eight-photon experimental channels has reached 16, and the types of coincidences are as many as 2 16 -1. Some meaningless coincidences are eliminated, and the types of coincidences are at least geometrically growing. , At the same time, the brightness of the light source has also reached the level of a single-channel count rate of megahertz and a system event rate of ten megahertz. With the rapid development of experimental technology, the number of channels and the brightness of light sources will continue to increase.
但是,Gaertner的方案实现了八个通道的任意符合,并不能简单的拓展至数十个通道,因为符合种类是随着通道数指数增长的,事件率也会随之增长,此时存储器的容量和速度会成为瓶颈。分立器件的集成度和灵活性也无法与FPGA媲美。更重要的是系统的事件率为0.8MHz,死时间为14ns,不能实时读出数据,因此不能满足当今的实验需求。However, Gaertner's scheme realizes arbitrary coincidence of eight channels, and cannot be simply extended to dozens of channels, because the type of coincidence increases exponentially with the number of channels, and the event rate will also increase accordingly. At this time, the capacity of the memory And speed will be the bottleneck. The level of integration and flexibility of discrete devices cannot match that of FPGAs. More importantly, the event rate of the system is 0.8MHz, the dead time is 14ns, and the data cannot be read out in real time, so it cannot meet the needs of today's experiments.
同时,PARK的方案虽然最小符合窗口为0.47ns,最大输入频率为163MHz,但由于用到了与门,只能同时对事先选择的几种符合情况进行计数。当通道数增加到数十个后,与门的连线将会变得非常庞杂。At the same time, although the minimum coincidence window of PARK's scheme is 0.47ns and the maximum input frequency is 163MHz, it can only count several coincidence situations selected in advance because of the use of AND gates. When the number of channels increases to dozens, the connection of AND gates will become very complicated.
发明内容Contents of the invention
本发明的目的是提供一种基于可编程逻辑器件的多光子符合计数器,通过在FPGA上实现数十个通道,数十兆赫兹事例率,符合种类多,偶然符合1ppm以下,实时读取计数,自动化和可拓展的多光子符合计数器方案,该符合计数器也可应用在粒子物理实验中。The purpose of the present invention is to provide a multi-photon coincidence counter based on programmable logic devices, by realizing dozens of channels on the FPGA, tens of megahertz case rate, many types, coincidence below 1ppm by chance, real-time reading counting, An automated and scalable solution for multiphoton coincidence counters that can also be used in particle physics experiments.
本发明的目的是通过以下技术方案实现的:The purpose of the present invention is achieved through the following technical solutions:
一种基于可编程逻辑器件的多光子符合计数器,包括:FPGA芯片、DDR与PC;其中:A multi-photon coincidence counter based on programmable logic devices, including: FPGA chip, DDR and PC; wherein:
所述FPGA芯片,用于将接收到的N路电脉冲依次进行延时调节、整型操作、采样、符合逻辑判断后存储在相应的FIFO中,再由与相应FIFO相连的计数器进行符合计数操作;上述采样的触发条件为FPGA芯片内部时钟管理模块输出的时钟信号;The FPGA chip is used to sequentially perform delay adjustment, integer operation, sampling, and logical judgment on the received N electrical pulses and store them in the corresponding FIFO, and then perform a coincidence counting operation by a counter connected to the corresponding FIFO ; The trigger condition of the above sampling is the clock signal output by the internal clock management module of the FPGA chip;
所述DDR受控于FPGA芯片中的MCB,用于存储相应计数器的符合计数;The DDR is controlled by the MCB in the FPGA chip, and is used to store the coincidence count of the corresponding counter;
所述PC,用于读出DDR与FPGA芯片内部Block RAM中的符合计数并进行后处理。The PC is used to read out the coincidence count between the DDR and the Block RAM inside the FPGA chip and perform post-processing.
进一步的,所述FPGA芯片包括:延时单元、脉冲整型单元、采样寄存器、符合逻辑判断模块、时钟管理模块、Block RAM FIFO及第一计数器、DDR FIFO及第二计数器、BlockRAM、WISHBONE总线以及MCB;其中:Further, the FPGA chip includes: a delay unit, a pulse shaping unit, a sampling register, a logic judgment module, a clock management module, a Block RAM FIFO and a first counter, a DDR FIFO and a second counter, a BlockRAM, a WISHBONE bus and MCB; where:
所述延时单元,用于对接收到的N路电脉冲进行延时调节,使得N路电脉冲完全对齐;The delay unit is used to delay and adjust the received N electrical pulses, so that the N electrical pulses are completely aligned;
所述脉冲整型单元,用于将对齐后的N路电脉冲整型为窄脉冲;The pulse shaping unit is used to shape the aligned N electrical pulses into narrow pulses;
所述时钟管理模块,用于在接收到激光器提供的同步时钟后输出相应的时钟信号作为采样的触发条件;The clock management module is configured to output a corresponding clock signal as a trigger condition for sampling after receiving the synchronous clock provided by the laser;
所述采样寄存器,用于存储采样结果;The sampling register is used to store sampling results;
所述符合逻辑判断模块具有分流功能,用于根据预定的判断方式对采样结果依次进行符合逻辑判断,并根据判断结果将相应的符合地址映射发送至Block RAM FIFO或者DDR FIFO;The logical judging module has a shunt function, and is used to sequentially make logical judgments on the sampling results according to a predetermined judgment method, and send corresponding matching address mappings to Block RAM FIFO or DDR FIFO according to the judgment results;
所述第一计数器与Block RAM FIFO相连,所述第二计数器与DDR FIFO相连,两个计数器均用于符合计数;所述第一计数器的计数结果存储在Block RAM中,第二计数器的计数结果通过MCB存入DDR中;The first counter is connected with the Block RAM FIFO, and the second counter is connected with the DDR FIFO, and both counters are used for coincident counting; the counting result of the first counter is stored in the Block RAM, and the counting result of the second counter is Store in DDR through MCB;
所述WISHBONE总线通过USB接口与PC相连,用于读写Block RAM及DDR中的数据,以及向延时单元与时钟管理模块中写入控制字与读取状态字。The WISHBONE bus is connected to the PC through the USB interface, and is used for reading and writing the data in the Block RAM and DDR, and writing the control word and reading the status word to the delay unit and the clock management module.
进一步的,延时调节与采样采用扫描机制,其步骤如下:Further, the delay adjustment and sampling adopt a scanning mechanism, and the steps are as follows:
第一步、将时钟管理模块的相位调至最小;The first step is to adjust the phase of the clock management module to the minimum;
第二步、时钟管理模块每增加一单位相位,对所有通道进行一定时间的单通道计数,当相位达到最大,由于计数的分布反映了脉冲的波形,即可得知所有脉冲是否都在扫描范围内;若否,则表示延时超出动态调节范围,经人工加减线长后重新从第一步开始直至所有脉冲都在扫描范围内;In the second step, every time the clock management module increases a unit phase, it counts all channels for a certain period of time. When the phase reaches the maximum, because the count distribution reflects the waveform of the pulse, it can be known whether all the pulses are within the scanning range. If not, it means that the delay exceeds the dynamic adjustment range, after manual addition and subtraction of the line length, restart from the first step until all pulses are within the scanning range;
第三步、调节延时单元将所有脉冲中心向延时最大的脉冲中心对齐,该中心定义为脉冲中心;The third step is to adjust the delay unit to align all the pulse centers to the pulse center with the largest delay, which is defined as the pulse center;
第四步、调节时钟管理模块将时钟采样边沿对齐脉冲中心。The fourth step is to adjust the clock management module to align the clock sampling edge with the pulse center.
进一步的,符合逻辑判断模块根据预定的判断方式将计数率高的符合种类地址发送至Block RAM FIFO,将其余符合种类地址发送至DDR FIFO。Further, the coincidence logic judging module sends the coincident type addresses with a high count rate to the Block RAM FIFO according to a predetermined judgment method, and sends the remaining coincident type addresses to the DDR FIFO.
进一步的,Block RAM和MCB均包含双端口,其中一个端口供计数器使用,另一个端口供PC通过WISHBONE总线访问;Block RAM的两个端口不能同时对同一地址进行写操作,MCB的两个端口共享带宽,即两个端口数据率加起来不超过DDR的带宽。Further, both Block RAM and MCB contain dual ports, one of which is used by the counter, and the other port is accessed by the PC through the WISHBONE bus; the two ports of Block RAM cannot write to the same address at the same time, and the two ports of MCB share Bandwidth, that is, the sum of the data rates of the two ports does not exceed the bandwidth of DDR.
进一步的,延时单元、时钟管理模块,以及Block RAM FIFO与DDR FIFO均设有状态字,PC通过状态字获取当前系统工作状态;其包括:当同步时钟异常、Block RAM FIFO或者DDR FIFO写满,PC均会提示错误消息;之后,PC尝试自动重启采数,采数过程结束,数据自动保存至PC中;Further, the delay unit, the clock management module, and the Block RAM FIFO and DDR FIFO are all equipped with a status word, and the PC obtains the current system working status through the status word; it includes: when the synchronous clock is abnormal, the Block RAM FIFO or the DDR FIFO is full , the PC will prompt an error message; after that, the PC tries to automatically restart the data collection, and the data collection process ends, and the data is automatically saved to the PC;
PC还通过向延时单元与时钟管理模块写入控制字来控制延时单元与时钟管理模块的工作方式;其包括:向延时单元写入控制字来控制电脉冲的延时调节过程;向时钟管理模块写入控制字来调节动态相移过程。The PC also controls the working mode of the delay unit and the clock management module by writing the control word to the delay unit and the clock management module; it includes: writing the control word to the delay unit to control the delay adjustment process of the electric pulse; The clock management module writes the control word to adjust the dynamic phase shifting process.
进一步的,该方法还包括:采用预定方式更改所述符合逻辑判断模块的符合地址映射方案。Further, the method further includes: changing the coincidence address mapping scheme of the coincidence logic judging module in a predetermined manner.
由上述本发明提供的技术方案可以看出,1)DDR的大容量使得对更多的符合种类可以同时进行计数。2)分流机制解决了DDR读写速度慢的问题,提高了符合系统的事件率。3)脉冲整型和同步时钟的引入能够双重抑制偶然符合的发生。4)脉冲延时可以动态调节,由于采用了FPGA的IO资源,调节精度高达几十皮秒,线性度好。动态调节解决了输入信号的延时可能不能保证每次都一致的问题。5)同步时钟可以动态相移,引入扫描机制,使得在得知单通道计数分布的情况下,可外推出符合结果的正确性,优于现有技术得通过测试已知符合信号的符合结果是否与预期一致的方案。6)在进行计数统计时,符合计数可以读出,只要读写速率在DDR带宽内就不会导致计数丢失。7)PC可以根据状态字得知系统工作状态,再通过控制字去调节系统参数,使工作流程自动化,同时增加了系统鲁棒性。8)符合逻辑可重配置,因此在系统速度,容量容许范围内,可应用于不同符合实验。9)结构可移植性高。It can be seen from the above-mentioned technical solutions provided by the present invention that 1) the large capacity of the DDR enables counting of more coincidence types at the same time. 2) The shunt mechanism solves the problem of slow reading and writing speed of DDR, and improves the event rate of the system. 3) The introduction of pulse shaping and synchronous clock can double suppress the occurrence of accidental coincidence. 4) The pulse delay can be adjusted dynamically. Due to the use of FPGA IO resources, the adjustment accuracy is as high as tens of picoseconds, and the linearity is good. Dynamic adjustment solves the problem that the delay of the input signal may not be guaranteed to be consistent every time. 5) The synchronous clock can be dynamically phase-shifted, and the scanning mechanism is introduced, so that the correctness of the coincidence result can be extrapolated when the single-channel count distribution is known, which is better than the prior art by testing whether the coincidence result of the known coincidence signal is Program as expected. 6) When counting and counting, the matching count can be read out, as long as the read and write rate is within the DDR bandwidth, the count will not be lost. 7) The PC can know the working status of the system according to the status word, and then adjust the system parameters through the control word, so as to automate the workflow and increase the robustness of the system. 8) The coincidence logic can be reconfigured, so it can be applied to different coincidence experiments within the allowable range of system speed and capacity. 9) High structural portability.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings on the premise of not paying creative work.
图1为本发明背景技术提供的地址映射方案示意图;其中,(a)为结构框图;(b)为符合探测单元详细结构图;1 is a schematic diagram of an address mapping scheme provided by the background technology of the present invention; wherein, (a) is a structural block diagram; (b) is a detailed structural diagram of a detection unit;
图2为本发明背景技术提供的在FPGA上用与门实现八体符合计数器的示意图;其中,(a)为整体方案结构框图;(b)为符合信号发生器结构图;Fig. 2 realizes the synoptic diagram of eight-body coinciding counter on FPGA with AND gate that Fig. 2 provides for background technology of the present invention; Wherein, (a) is the block diagram of overall scheme structure; (b) is coincident signal generator structural diagram;
图3为本发明实施例提供的一种基于可编程逻辑器件的多光子符合计数器;其中,(a)为整体方案的示意图;(b)为FPGA逻辑结构图;Fig. 3 is a kind of multi-photon coincidence counter based on programmable logic device that the embodiment of the present invention provides; Wherein, (a) is the schematic diagram of overall scheme; (b) is FPGA logic structure diagram;
图4为本发明实施例提供的脉冲延时,整型,采样过程的时序图;其中,(a)~(d)依次为:初始信号的时序图、延时后的时序图、整型后的时序图、根据时钟采样的时序图Fig. 4 is the timing diagram of the pulse delay, integer type, and sampling process provided by the embodiment of the present invention; wherein, (a) to (d) are sequentially: the timing diagram of the initial signal, the timing diagram after the delay, and the timing diagram after the integer type timing diagram, timing diagram based on clock sampling
图5为本发明实施例提供的扫描方法流程图。FIG. 5 is a flowchart of a scanning method provided by an embodiment of the present invention.
具体实施方式detailed description
下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明的保护范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例提供一种基于可编程逻辑器件的多光子符合计数器;该多光子符合计数器主要包含了判断符合种类并进行计数的FPGA芯片,激光器提供的同步时钟,用来存储大量的符合数据的Double Data Rate Synchronous Dynamic RAM(DDR)以及动态调整符合参数并读出符合计数的个人电脑(PC)。The embodiment of the present invention provides a multi-photon coincidence counter based on a programmable logic device; the multi-photon coincidence counter mainly includes an FPGA chip for judging the type of coincidence and counting, and a synchronous clock provided by the laser for storing a large amount of coincidence data Double Data Rate Synchronous Dynamic RAM (DDR) and a personal computer (PC) that dynamically adjusts matching parameters and reads matching counts.
FPGA芯片含有大量的可编程逻辑资源,然而只有当用户将这些逻辑资源有机地互联连成一整体,才能完成特定的任务。本发明的FPGA逻辑包含延时单元、脉冲整型单元、采样寄存器、符合逻辑判断模块、时钟管理模块、Block RAM FIFO及第一计数器、DDR FIFO及第二计数器、Block RAM、WISHBONE总线(WISHBONE Bus)以及MCB(Memory ControllerBlock)。FPGA chips contain a large number of programmable logic resources, but only when users organically interconnect these logic resources into a whole can they complete specific tasks. The FPGA logic of the present invention includes a delay unit, a pulse shaping unit, a sampling register, a logical judgment module, a clock management module, a Block RAM FIFO and a first counter, a DDR FIFO and a second counter, a Block RAM, a WISHBONE bus (WISHBONE Bus ) and MCB (Memory Controller Block).
DDR具有容量大,速度快的优点,适合作为符合数据的存储器。当通道数为n时,符合种类共有2n-1,呈指数级增长。假如通道数为20,数据宽度为32bit,所需存储容量即为32Mbit,因此容量受限的SRAM并不适用。DDR has the advantages of large capacity and high speed, and is suitable as a memory for data. When the number of channels is n, there are a total of 2 n -1 matching types, which grows exponentially. If the number of channels is 20 and the data width is 32bit, the required storage capacity is 32Mbit, so SRAM with limited capacity is not suitable.
本发明实施例中,采用分流机制来解决了DDR读写速度不够的问题,提高了符合系统的事件率。即,由符合逻辑判断模块根据预定的判断方式对采样结果依次进行符合逻辑判断,并根据判断结果将相应的数据发送至Block RAM FIFO或者DDR FIFO;再由相应的计数器读取FIFO缓存的地址,对RAM(Block RAM FIFO或者DDR FIFO)相应地址的数据进行计数。In the embodiment of the present invention, a shunt mechanism is adopted to solve the problem of insufficient reading and writing speed of DDR, and the event rate conforming to the system is improved. That is, the logical judgment module performs logical judgment on the sampling results in turn according to the predetermined judgment method, and sends the corresponding data to the Block RAM FIFO or DDR FIFO according to the judgment result; then reads the address of the FIFO cache by the corresponding counter, Count the data of the corresponding address of RAM (Block RAM FIFO or DDR FIFO).
此外,采用上述分流机制也可避免计数丢失。假设数据的位宽为64bit,计数操作要求读出数据加一写回,事例率为30MHz,那么数据量为3840Mbps,光靠DDR有可能处理不完造成丢数。而基于上述分流机制,DDR读取数据加一并写回仅针对一部分符合,另一部分符合(可以是计数率大的符合数据)分流至FPGA芯片内的Block RAM来处理,由于其速度较DDR更快,保证了数据的完整性。但Block RAM的存储空间有限,故分流的方案应根据实验适当选取。In addition, count loss can also be avoided by employing the above-mentioned shunt mechanism. Assuming that the bit width of the data is 64bit, the counting operation requires the data to be read plus one to write back, and the case rate is 30MHz, then the data volume is 3840Mbps, which may be lost due to insufficient processing by DDR alone. Based on the above shunting mechanism, the DDR read data is added and written back only for a part of the match, and the other part of the match (it can be the match data with a high count rate) is shunted to the Block RAM in the FPGA chip for processing, because its speed is faster than that of DDR. Fast, ensuring data integrity. However, the storage space of the Block RAM is limited, so the splitting scheme should be properly selected according to the experiment.
探测器信号中存在暗噪声和环境噪声,由噪声导致的符合称之为偶然符合。偶然符合会导致错误的结果,是我们不希望发生的。为减小偶然符合发生的概率,本发明采取了双重措施,首先是压缩符合窗口,其次是同步时钟的使用。只有在符合窗口内的脉冲才能符合,本发明中影响符合窗口的参数为脉冲宽度,因此在符合前脉冲经整型单元压缩成窄脉冲,这种压缩不影响上升沿发生的时间。用同步时钟作采样触发,而不是用最先发生的脉冲作触发,消除了误触发的可能。There are dark noise and environmental noise in the detector signal, and the coincidence caused by the noise is called accidental coincidence. Accidental matching can lead to wrong results, which we don't want to happen. In order to reduce the probability of accidental coincidence, the present invention adopts double measures, firstly, to compress the coincidence window, and secondly, to use a synchronous clock. Only pulses within the matching window can be matched. In the present invention, the parameter that affects the matching window is the pulse width. Therefore, the pulse is compressed into a narrow pulse by the shaping unit before the matching. This compression does not affect the time when the rising edge occurs. Using a synchronous clock as the sampling trigger, rather than the first occurring pulse, eliminates the possibility of false triggering.
多光子实验过程中,实验员需实时获取某些符合的计数来调整实验参数,还有在进行长时间采数时如果发现计数异常即可立即停止实验,节约了时间。为了实现在计数进行时还能读取数据的功能,Block RAM和MCB采用双端口的设计,一个端口供计数器使用,另一个端口供USB访问。Block RAM的两个端口不能同时对同一地址进行写操作,MCB的两个端口共享带宽,只要USB读取数据率不要太大,即两个端口数据率加起来不超过DDR的带宽,就不会造成丢数的问题。During the multi-photon experiment, the experimenter needs to obtain some matching counts in real time to adjust the experimental parameters, and if the count is found to be abnormal during the long-term data collection, the experiment can be stopped immediately, saving time. In order to realize the function of reading data while counting is in progress, Block RAM and MCB adopt a dual-port design, one port is used for the counter, and the other port is used for USB access. The two ports of Block RAM cannot write to the same address at the same time. The two ports of MCB share the bandwidth. As long as the USB read data rate is not too high, that is, the combined data rate of the two ports does not exceed the bandwidth of DDR, it will not cause loss of numbers.
如果采数过程需要实验员人工一步步机械操作,会造成人力资源的浪费。本发明能自动化采数,无需实验员在一旁苦苦等待。PC通过状态字获取当前系统工作状态,再通过控制字调节系统参数。延时单元,时钟管理模块,两个FIFO都设有状态字。当同步时钟异常,Block RAM FIFO或者DDR FIFO写满,PC都会提示错误消息,并尝试自动重启采数。采数过程结束,数据自动保存至PC中。此外,PC还通过向延时单元与时钟管理模块写入控制字来控制延时单元与时钟管理模块的工作方式;其包括:向延时单元写入控制字来控制电脉冲的延时调节过程;向时钟管理模块写入状态字来调节动态相移过程。If the data collection process requires the experimenter to manually operate step by step, it will cause a waste of human resources. The invention can collect data automatically, without the need for the experimenter to wait hard. The PC obtains the current system working status through the status word, and then adjusts the system parameters through the control word. The delay unit, the clock management module, and the two FIFOs are all provided with status words. When the synchronous clock is abnormal and the Block RAM FIFO or DDR FIFO is full, the PC will prompt an error message and try to automatically restart the data collection. After the data collection process is over, the data is automatically saved to the PC. In addition, the PC also controls the working mode of the delay unit and the clock management module by writing the control word to the delay unit and the clock management module; which includes: writing the control word to the delay unit to control the delay adjustment process of the electric pulse ; Write the status word to the clock management module to adjust the dynamic phase shift process.
不同的实验有不同的符合需求,如通道数,符合种类,甚至同一实验也会发生变化。如果同一套符合系统能应用于这些不同场景,将节约客观的时间和资金。由于FPGA具有可重配置的特性,针对不同的需求,只要通道数,数据量不超出系统的限制,更改符合逻辑即可,实现了同一套硬件的重复利用。Different experiments have different matching requirements, such as the number of channels, matching types, and even the same experiment will change. If the same compliance system could be applied to these different scenarios, it would save considerable time and money. Due to the reconfigurable feature of FPGA, for different needs, as long as the number of channels and the amount of data do not exceed the limit of the system, the change is logical, and the reuse of the same set of hardware is realized.
为了便于理解,下面结合附图对本发明上述方案做详细的说明。For ease of understanding, the above solutions of the present invention will be described in detail below in conjunction with the accompanying drawings.
图3为本发明实施例提供的一种基于可编程逻辑器件的多光子符合计数器;其中,(a)为整体方案的示意图;(b)FPGA逻辑结构图。FIG. 3 is a multi-photon coincidence counter based on a programmable logic device provided by an embodiment of the present invention; wherein, (a) is a schematic diagram of the overall scheme; (b) a logic structure diagram of FPGA.
如图3(a)所示的整体方案的示意图中,虚线箭头为光信号,其他箭头为电信号。激光(laser)入射至光学系统(Optical System)中,空间分离成n个光路分别被n个单光子探测器接受,转化为n路电脉冲。电脉冲先经过甄别器转化为3.3V TTL信号,再通过普通IO管脚输入至FPGA芯片(FPGA Chip),激光器通过时钟专用管脚输入一个与激光脉冲同步的76MHz时钟至FPGA芯片。FPGA芯片通过PCB布线与DDR和USB芯片相连,PC再通过USB电缆与USB芯片相连。In the schematic diagram of the overall solution shown in FIG. 3( a ), the dotted arrows are optical signals, and the other arrows are electrical signals. The laser (laser) is incident into the optical system (Optical System), and the space is separated into n optical paths, which are respectively received by n single photon detectors and converted into n electrical pulses. The electrical pulse is first converted into a 3.3V TTL signal by a discriminator, and then input to the FPGA chip (FPGA Chip) through a common IO pin. The laser inputs a 76MHz clock synchronized with the laser pulse to the FPGA chip through a dedicated clock pin. The FPGA chip is connected to the DDR and USB chip through PCB wiring, and the PC is connected to the USB chip through a USB cable.
上述FPGA芯片、DDR与PC的主要功能如下:FPGA芯片,用于将接收到的N路电脉冲依次进行延时调节、整型操作、采样、符合逻辑判断后编码为RAM(Block RAM或者DDR)的地址存储在相应的FIFO中,再由与相应FIFO相连的计数器进行符合计数操作;DDR受控于FPGA芯片中的MCB,用于存储相应计数器的符合计数;PC,用于读出DDR与FPGA芯片内部Block RAM中的符合计数并进行后处理以及控制符合计数器的工作过程。The main functions of the above-mentioned FPGA chip, DDR and PC are as follows: FPGA chip is used to sequentially perform delay adjustment, integer operation, sampling, and logical judgment on the received N electrical pulses and encode them into RAM (Block RAM or DDR) The address of the address is stored in the corresponding FIFO, and then the counter connected to the corresponding FIFO performs the coincidence counting operation; DDR is controlled by the MCB in the FPGA chip, which is used to store the coincidence count of the corresponding counter; PC, used to read out DDR and FPGA Count the coincidences in the Block RAM inside the chip and perform post-processing and control the working process of the coincidence counter.
本发明实施例中,所涉及的具体数值均为举例并非构成限制;示例性的,上述实施例中,可以应用于八光子纠缠实验中,每个光子的自由度为2,那么一共有22×8=32个通道,即上述n=32。In the embodiment of the present invention, the specific numerical values involved are all examples and do not constitute a limitation; for example, in the above embodiment, it can be applied to the eight-photon entanglement experiment, and the degree of freedom of each photon is 2, so there are a total of 2 2 ×8=32 channels, that is, n=32 above.
示例性的,FPGA芯片可以选用XILINX公司SPARTAN-6XC6SLX16-2CSG324C,DDR可以选用Micron Technology MT46H64M16LFCK-5,USB选用CYPRESS公司的CY7C68013A。可根据实验方案灵活调整各器件参数,例如,选择容量大于1Gbit的DDR,带宽在10MBps以上的串行通讯如千兆网。Exemplarily, the FPGA chip can be selected SPARTAN-6XC6SLX16-2CSG324C of XILINX company, the DDR can be selected Micron Technology MT46H64M16LFCK-5, and the USB can be selected CY7C68013A of CYPRESS company. The parameters of each device can be flexibly adjusted according to the experimental plan, for example, choose a DDR with a capacity greater than 1Gbit, and a serial communication with a bandwidth of more than 10MBps such as a Gigabit network.
本发明实施例中,FPGA芯片内部结构如图3(b)所示,其中实线箭头为1bit信号,单向空心箭头为多bit信号,双向实心箭头为控制信号与状态信号,双向空心箭头为数据信号。In the embodiment of the present invention, the internal structure of the FPGA chip is shown in FIG. data signal.
所述FPGA芯片主要包括:延时单元(IODELAY2)、脉冲整型单元(Pulse Shaping)、采样寄存器(Register)、符合逻辑判断模块(Coincidence Logic)、时钟管理模块(DCM)、Block RAM FIFO及第一计数器、DDR FIFO及第二计数器、Block RAM、WISHBONE总线以及MCB;其中:The FPGA chip mainly includes: a delay unit (IODELAY2), a pulse shaping unit (Pulse Shaping), a sampling register (Register), a logical judgment module (Coincidence Logic), a clock management module (DCM), a Block RAM FIFO and a first A counter, DDR FIFO and second counter, Block RAM, WISHBONE bus and MCB; where:
所述延时单元,用于对接收到的N路电脉冲进行延时调节,使得N路电脉冲完全对齐;The delay unit is used to delay and adjust the received N electrical pulses, so that the N electrical pulses are completely aligned;
所述脉冲整型单元,用于将对齐后的N路电脉冲进行整型为窄脉冲;The pulse shaping unit is used to shape the aligned N electrical pulses into narrow pulses;
所述时钟管理模块,用于在接收到激光器提供的同步时钟后输出相应的时钟信号作为采样的触发条件;The clock management module is configured to output a corresponding clock signal as a trigger condition for sampling after receiving the synchronous clock provided by the laser;
所述采样寄存器,用于存储采样结果;The sampling register is used to store sampling results;
所述符合逻辑判断模块,用于根据预定的判断方式对采样结果依次进行符合逻辑判断,并根据判断结果将相应的符合映射地址发送至Block RAM FIFO或者DDR FIFO;The logical judging module is used to sequentially judge the sampling results according to a predetermined judgment method, and send the corresponding corresponding mapping address to the Block RAM FIFO or DDR FIFO according to the judgment result;
所述第一计数器与Block RAM FIFO相连,所述第二计数器与DDR FIFO相连,两个计数器均用于符合计数;所述第一计数器的计数结果存储在Block RAM中,第二计数器的计数结果通过MCB存入DDR中;The first counter is connected with the Block RAM FIFO, and the second counter is connected with the DDR FIFO, and both counters are used for coincident counting; the counting result of the first counter is stored in the Block RAM, and the counting result of the second counter is Store in DDR through MCB;
所述WISHBONE总线通过USB接口与PC相连,用于读写Block RAM及DDR中的数据,以及向延时单元与时钟管理模块中写入控制字与读取状态字。The WISHBONE bus is connected to the PC through the USB interface, and is used for reading and writing the data in the Block RAM and DDR, and writing the control word and reading the status word to the delay unit and the clock management module.
示例性的,如前文所述,假设n=32,则32路电脉冲首先通过IO资源中的IODELAY2进行延时调节,对齐后的脉冲经过整型模块变为窄脉冲后被DCM输出的时钟采样,脉冲的时序图如图4所示,DCM的输入时钟是激光器提供的同步时钟。采样后的码型经符合逻辑判断模块根据预设的判断方式后分为两部分,一部分缓存至DDR的FIFO,另一部分缓存至BlockRAM FIFO。Block RAM的计数器获得Block RAM FIFO中的数据后,从Block RAM相应地址读出数据加一并写回Block RAM。DDR的计数器获得DDR FIFO中的数据后,通过MCB从DDR相应地址读出数据加一并写回DDR。WISHBONE总线能够向IODELAY2和DCM写入控制字以及读取状态字,还能够直接读写Block RAM中的任意数据以及通过MCB读写DDR中的任意数据。WISHBONE中的USB主设备通过普通IO管脚与USB芯片相连。Exemplarily, as mentioned above, assuming that n=32, the 32 electrical pulses are first adjusted for delay by IODELAY2 in the IO resource, and the aligned pulses are converted into narrow pulses by the integer module and then sampled by the clock output by the DCM , the timing diagram of the pulse is shown in Figure 4, and the input clock of the DCM is the synchronous clock provided by the laser. The sampled code pattern is divided into two parts according to the preset judgment method by the logical judgment module, one part is buffered to the FIFO of DDR, and the other part is buffered to the BlockRAM FIFO. After the counter of the Block RAM obtains the data in the Block RAM FIFO, it reads the data from the corresponding address of the Block RAM and adds one and writes it back to the Block RAM. After the DDR counter obtains the data in the DDR FIFO, it reads the data from the corresponding address of the DDR through the MCB and adds one and writes it back to the DDR. The WISHBONE bus can write control words and read status words to IODELAY2 and DCM, and can also directly read and write arbitrary data in Block RAM and read and write arbitrary data in DDR through MCB. The USB host device in WISHBONE is connected to the USB chip through common IO pins.
举例来说,IODELAY2的状态字为busy,指示延时单元当前是否处于移位状态,若busy为置高,IODELAY2不能接受新的移位指令。时钟管理模块的状态字为lock,psdone,limit,分别指示时钟是否锁定,移相是否完成,相位是否超出范围。两个FIFO的状态字为full,指示FIFO是否已满。WISHBONE总线通过状态字和控制字与两个FIFO相连,图3(b)中未示出。For example, the status word of IODELAY2 is busy, indicating whether the delay unit is currently in the shifting state. If busy is set high, IODELAY2 cannot accept new shifting instructions. The status words of the clock management module are lock, psdone, and limit, indicating whether the clock is locked, whether the phase shift is completed, and whether the phase is out of range. The status word of the two FIFOs is full, indicating whether the FIFO is full or not. WISHBONE bus is connected with two FIFOs through status word and control word, which is not shown in Fig. 3(b).
如图4所示,其中的(a)~(d)依次为:初始信号的时序图、延时后的时序图、整型后的时序图、根据时钟采样的时序图。图4中仅示意了CH1~CH3,3路脉冲。As shown in Figure 4, (a) to (d) are sequentially: the timing diagram of the initial signal, the timing diagram after delay, the timing diagram after integer, and the timing diagram based on clock sampling. Fig. 4 only shows CH1~CH3, 3 pulses.
本发明实施例中,完成脉冲的对齐和采样需要有扫描的机制,如图5所示,其步骤如下:In the embodiment of the present invention, a scanning mechanism is required to complete the alignment and sampling of pulses, as shown in FIG. 5 , the steps are as follows:
第一步、将时钟管理模块的相位调至最小;The first step is to adjust the phase of the clock management module to the minimum;
第二步、时钟管理模块每增加一单位相位,对所有通道进行一定时间的单通道计数,当相位达到最大,由于计数的分布反映了脉冲的波形,即可得知所有脉冲是否都在扫描范围内;若否,则表示延时超出动态调节范围,经人工加减线长后重新从第一步开始直至所有脉冲都在扫描范围内;In the second step, every time the clock management module increases a unit phase, it counts all channels for a certain period of time. When the phase reaches the maximum, because the count distribution reflects the waveform of the pulse, it can be known whether all the pulses are within the scanning range. If not, it means that the delay exceeds the dynamic adjustment range, after manual addition and subtraction of the line length, restart from the first step until all pulses are within the scanning range;
第三步、调节延时单元将所有脉冲中心向延时最大的脉冲中心对齐,该中心定义为脉冲中心;The third step is to adjust the delay unit to align all the pulse centers to the pulse center with the largest delay, which is defined as the pulse center;
第四步、调节时钟管理模块将时钟采样边沿对齐脉冲中心。The fourth step is to adjust the clock management module to align the clock sampling edge with the pulse center.
本领域技术人员可以理解,符合逻辑判断模块中预定的判断方式可以根据实际情况来调整,例如,根据预定的判断方式将计数率高的符合种类地址发送至Block RAM FIFO,将其余符合种类地址发送至DDR FIFO。Those skilled in the art can understand that the predetermined judgment method in the logic judgment module can be adjusted according to the actual situation, for example, according to the predetermined judgment method, the address of the matching type with a high count rate is sent to the Block RAM FIFO, and the rest of the matching type addresses are sent to the Block RAM FIFO. to DDR FIFOs.
示例性的,在八光子纠缠实验中,由于单光子和两光子符合占到总符合事例的90%以上,达到20MHz,因此,符合逻辑判断模块可以根据预定的判断方式将单光子和两光子数据发送至处理速度快的Block RAM,而DDR足以应付两光子以上的符合。Exemplarily, in the eight-photon entanglement experiment, since single-photon and two-photon coincidence accounts for more than 90% of the total coincidence cases, reaching 20MHz, therefore, the coincidence logic judgment module can combine single-photon and two-photon data according to a predetermined judgment method Send to the block RAM with fast processing speed, and the DDR is enough to handle the coincidence of more than two photons.
确定了分流方案后就可以讨论符合地址映射方案。符合种类中计数率最大达兆赫兹,而一次实验有可能进行数十个小时,计数器的位宽得足够大才能保证不会溢出,因此选用64bit位宽。32通道的符合种类共有232-1,但其中有很多无效的符合,把一个光子对应的通道中至多只能有一个同时有脉冲的符合定义为有效符合,因此一个光子有6种可能,需要3bit编码,8个光子共24bit。24bit地址宽度,64bit数据宽度,共1Gbit空间,如此大的存储空间要求,DDR是理想的选择。After the distribution scheme is determined, the address mapping scheme can be discussed. The maximum counting rate in the corresponding category is up to megahertz, and an experiment may be carried out for dozens of hours. The bit width of the counter is large enough to ensure that it will not overflow, so 64bit bit width is selected. There are 2 32 -1 types of coincidences in 32 channels, but there are many invalid coincidences among them. In the channel corresponding to a photon, there can only be at most one coincidence with a pulse at the same time as a valid coincidence. Therefore, there are 6 possibilities for a photon. 3bit encoding, 8 photons total 24bit. 24bit address width, 64bit data width, a total of 1Gbit space, such a large storage space requirements, DDR is the ideal choice.
Block RAM并没有1Gbit的存储空间,因此单光子与两光子的地址映射方案要求地址宽度尽量小,将地址分为两个部分,对应两个光子,一个光子只需要知道是哪个光子,哪个通道两个信息,光子信息占3bit,通道信息占2bit,一个光子5bit,两个光子共10bit,如果是单光子符合,则两个光子信息一样。Block RAM does not have a 1Gbit storage space, so the single-photon and two-photon address mapping scheme requires the address width to be as small as possible. The address is divided into two parts, corresponding to two photons. One photon only needs to know which photon and which channel two One piece of information, photon information occupies 3 bits, channel information occupies 2 bits, one photon has 5 bits, and two photons have a total of 10 bits. If a single photon coincides, the two photons have the same information.
本发明实施例中,由于FPGA芯片采用了如图3(b)所示的逻辑结构,因此,可以采用预定方式更改所述Block RAM的符合地址映射方案。本领域技术人员可以理解,所述预定的方式可以为本领域常规方式。In the embodiment of the present invention, since the FPGA chip adopts the logic structure shown in FIG. 3( b ), the corresponding address mapping scheme of the Block RAM can be changed in a predetermined manner. Those skilled in the art can understand that the predetermined manner may be a conventional manner in the field.
本发明实施例的上述方案,主要获得了如下有益效果:The above scheme of the embodiment of the present invention mainly obtains the following beneficial effects:
1)DDR的大容量使得对更多的符合种类可以同时进行计数。1) The large capacity of DDR makes it possible to count more coincidence types at the same time.
2)分流机制解决了DDR读写速度不够的问题,提高了符合系统的事件率。2) The shunt mechanism solves the problem of insufficient reading and writing speed of DDR, and improves the event rate in line with the system.
3)脉冲整型和同步时钟的引入能够双重抑制偶然符合的发生。3) The introduction of pulse shaping and synchronous clock can double suppress the occurrence of accidental coincidence.
4)脉冲延时可以动态调节,由于采用了FPGA的IO资源,调节精度高达几十皮秒,线性度好。动态调节解决了输入信号的延时可能不能保证每次都一致的问题。4) The pulse delay can be adjusted dynamically. Due to the use of FPGA IO resources, the adjustment accuracy is as high as tens of picoseconds, and the linearity is good. Dynamic adjustment solves the problem that the delay of the input signal may not be guaranteed to be consistent every time.
5)同步时钟可以动态相移,引入扫描机制,使得在得知单通道计数分布的情况下,可外推出符合结果的正确性,优于现有技术得通过测试已知符合信号的符合结果是否与预期一致的方案。5) The synchronous clock can be dynamically phase-shifted, and the scanning mechanism is introduced, so that the correctness of the coincidence result can be extrapolated when the single-channel count distribution is known, which is better than the prior art by testing whether the coincidence result of the known coincidence signal is Program as expected.
6)在进行计数统计时,符合计数可以读出,只要读写速率在DDR带宽内就不会导致计数丢失。6) When counting and counting, the matching count can be read out, as long as the read and write rate is within the DDR bandwidth, the count will not be lost.
7)PC可以根据状态字得知系统工作状态,再通过控制字去调节系统参数,使工作流程自动化,同时增加了系统鲁棒性。7) The PC can know the working status of the system according to the status word, and then adjust the system parameters through the control word, so as to automate the workflow and increase the robustness of the system.
8)符合逻辑可重配置,因此在系统速度,容量容许范围内,可应用于不同符合实验。8) The coincidence logic can be reconfigured, so it can be applied to different coincidence experiments within the allowable range of system speed and capacity.
9)结构可移植性高,XILINX公司的SPARTAN,VIRTEX,KINTEX等系列FPGA均支持本发明的结构。9) The structure has high portability, and series FPGAs such as SPARTAN, VIRTEX, and KINTEX of XILINX Company all support the structure of the present invention.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person familiar with the technical field can easily conceive of changes or changes within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610961414.XA CN106525231B (en) | 2016-10-28 | 2016-10-28 | A kind of multi-photon coincidence counting device based on PLD |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610961414.XA CN106525231B (en) | 2016-10-28 | 2016-10-28 | A kind of multi-photon coincidence counting device based on PLD |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106525231A true CN106525231A (en) | 2017-03-22 |
CN106525231B CN106525231B (en) | 2018-03-06 |
Family
ID=58326117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610961414.XA Active CN106525231B (en) | 2016-10-28 | 2016-10-28 | A kind of multi-photon coincidence counting device based on PLD |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106525231B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107656881A (en) * | 2017-09-13 | 2018-02-02 | 中国科学院半导体研究所 | Data storage transit system based on FPGA |
CN108280437A (en) * | 2018-01-30 | 2018-07-13 | 四川新先达测控技术有限公司 | pulse signal processing method, device and user terminal |
CN109238480A (en) * | 2018-10-19 | 2019-01-18 | 中国科学技术大学 | A kind of multi-photon coincidence counting method and device |
CN109253808A (en) * | 2018-10-26 | 2019-01-22 | 上海星秒光电科技有限公司 | time coincidence counting system, method and device |
CN109272099A (en) * | 2018-09-19 | 2019-01-25 | 上海星秒光电科技有限公司 | Coincidence counting manages method and device |
CN109324542A (en) * | 2018-09-12 | 2019-02-12 | 中国原子能科学研究院 | A special pulse signal processor for neutron multiplicity measurement |
CN110175095A (en) * | 2019-04-28 | 2019-08-27 | 南京大学 | A kind of multi-functional FPGA coincidence measurement system of man-machine interactive and its measurement method |
CN111143273A (en) * | 2019-11-12 | 2020-05-12 | 广东高云半导体科技股份有限公司 | System on chip |
CN112069095A (en) * | 2020-09-09 | 2020-12-11 | 北京锐马视讯科技有限公司 | DDR3 read-write transmission method and device |
CN112486247A (en) * | 2020-11-13 | 2021-03-12 | 深圳市贝斯达医疗股份有限公司 | Coincidence controller, realization method thereof and positron emission tomography system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2248534C1 (en) * | 2002-08-09 | 2005-03-20 | Открытое Акционерное Общество "Пеленг" | Device for testing parameters of information channel control laser field |
US8237475B1 (en) * | 2008-10-08 | 2012-08-07 | Altera Corporation | Techniques for generating PVT compensated phase offset to improve accuracy of a locked loop |
US20130019053A1 (en) * | 2011-07-14 | 2013-01-17 | Vinay Ashok Somanache | Flash controller hardware architecture for flash devices |
CN203385484U (en) * | 2013-08-09 | 2014-01-08 | 西安工程大学 | Single-photon counting device |
CN104848880A (en) * | 2015-05-26 | 2015-08-19 | 电子科技大学 | Quasi-distributed optical sensing device based on light quantum technology |
-
2016
- 2016-10-28 CN CN201610961414.XA patent/CN106525231B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2248534C1 (en) * | 2002-08-09 | 2005-03-20 | Открытое Акционерное Общество "Пеленг" | Device for testing parameters of information channel control laser field |
US8237475B1 (en) * | 2008-10-08 | 2012-08-07 | Altera Corporation | Techniques for generating PVT compensated phase offset to improve accuracy of a locked loop |
US20130019053A1 (en) * | 2011-07-14 | 2013-01-17 | Vinay Ashok Somanache | Flash controller hardware architecture for flash devices |
CN203385484U (en) * | 2013-08-09 | 2014-01-08 | 西安工程大学 | Single-photon counting device |
CN104848880A (en) * | 2015-05-26 | 2015-08-19 | 电子科技大学 | Quasi-distributed optical sensing device based on light quantum technology |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107656881A (en) * | 2017-09-13 | 2018-02-02 | 中国科学院半导体研究所 | Data storage transit system based on FPGA |
CN108280437A (en) * | 2018-01-30 | 2018-07-13 | 四川新先达测控技术有限公司 | pulse signal processing method, device and user terminal |
CN109324542A (en) * | 2018-09-12 | 2019-02-12 | 中国原子能科学研究院 | A special pulse signal processor for neutron multiplicity measurement |
CN109272099A (en) * | 2018-09-19 | 2019-01-25 | 上海星秒光电科技有限公司 | Coincidence counting manages method and device |
CN109238480B (en) * | 2018-10-19 | 2024-02-23 | 中国科学技术大学 | Multiphoton coincidence counting method and device |
CN109238480A (en) * | 2018-10-19 | 2019-01-18 | 中国科学技术大学 | A kind of multi-photon coincidence counting method and device |
CN109253808A (en) * | 2018-10-26 | 2019-01-22 | 上海星秒光电科技有限公司 | time coincidence counting system, method and device |
CN110175095A (en) * | 2019-04-28 | 2019-08-27 | 南京大学 | A kind of multi-functional FPGA coincidence measurement system of man-machine interactive and its measurement method |
CN110175095B (en) * | 2019-04-28 | 2023-09-22 | 南京大学 | Man-machine interaction type multifunctional FPGA coincidence measurement system and measurement method thereof |
CN111143273A (en) * | 2019-11-12 | 2020-05-12 | 广东高云半导体科技股份有限公司 | System on chip |
CN112069095A (en) * | 2020-09-09 | 2020-12-11 | 北京锐马视讯科技有限公司 | DDR3 read-write transmission method and device |
CN112069095B (en) * | 2020-09-09 | 2022-01-28 | 北京锐马视讯科技有限公司 | DDR3 read-write transmission method and device |
CN112486247A (en) * | 2020-11-13 | 2021-03-12 | 深圳市贝斯达医疗股份有限公司 | Coincidence controller, realization method thereof and positron emission tomography system |
CN112486247B (en) * | 2020-11-13 | 2022-07-05 | 深圳市贝斯达医疗股份有限公司 | Compliant controller and implementation method thereof, and positron emission tomography imaging system |
Also Published As
Publication number | Publication date |
---|---|
CN106525231B (en) | 2018-03-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106525231B (en) | A kind of multi-photon coincidence counting device based on PLD | |
US10318468B2 (en) | FPGA-based interface signal remapping method | |
CN104022828A (en) | Fiber data transmission method based on asynchronous communication mode | |
CN103364819B (en) | A kind of high precision coincide counter implementation method based on FPGA | |
TW202225971A (en) | Device and method for high performance memory debug record generation and management | |
CN105488237A (en) | Enable signal optimizing method for register based on FPGA (Field Programmable Gate Array) | |
US20140359374A1 (en) | System and method for managing trace data in a portable computing device | |
CN110175095B (en) | Man-machine interaction type multifunctional FPGA coincidence measurement system and measurement method thereof | |
CN106603442B (en) | A kind of cross clock domain high-speed data communication interface circuit of network-on-chip | |
CN203520396U (en) | Integrated circuit for optimizing control signals of registers | |
CN100476871C (en) | Photon Counter Based on Programmable Logic | |
CN109238480B (en) | Multiphoton coincidence counting method and device | |
CN107577216A (en) | A kind of method that debugging signal is captured outside FPGA platform upper piece | |
CN115357534B (en) | High-speed multipath LVDS acquisition system and storage medium | |
CN106776680A (en) | A kind of acquisition method of distributed stream data | |
CN104678815B (en) | Interface structure and configuration method of FPGA chip | |
CN113091897B (en) | Coincidence counting method and device, coincidence counting equipment and storage medium | |
CN103036566B (en) | A kind of on-line control controller of analog front-end chip | |
CN116340216A (en) | A ARINC429 bus communication component and method based on interrupt notification | |
CN101257756A (en) | Lighting system and method | |
CN201269928Y (en) | Hardware signal processor for weather radar | |
CN202495967U (en) | Data acquisition system | |
CN104778137A (en) | Multi-channel analog real-time acquisition and caching method based on AVALON bus | |
CN203278864U (en) | IEC61850 message acquisition board based on CRIO platform | |
De Maria et al. | A low cost FPGA based USB device core |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |