Random nuclear pulse generation method, system, storage medium and electronic equipment
By designing an FPGA-based random nuclear pulse generation system that combines pseudo-random sequences and true randomness, a signal conforming to the physical characteristics of nuclear pulses is generated, solving the problem that existing systems cannot truly simulate nuclear pulses and realizing efficient and low-cost nuclear detection testing.
Patent Information
- Application Number
- CN202411430232.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2044-10-14
AI Technical Summary
Existing nuclear pulse generation systems cannot accurately reflect the physical characteristics of nuclear pulse signals, have low practicality, and are complex and costly, making them difficult to meet the needs of nuclear test research.
Design a random nuclear pulse generation system. Utilize an FPGA as the main generation system, combine pseudo-random sequence m-sequence parameters and true randomness, adjust the energy ratio through a serial port upper-level module, and combine a ring oscillation module and a Gaussian random number storage module to generate a signal that conforms to the physical characteristics of a nuclear pulse.
It achieves a realistic simulation of nuclear pulses, with high randomness, flexibility and controllability, reducing system complexity and cost, and is suitable for testing nuclear detection systems.
Smart Images

Figure CN119414448B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of nuclear pulse signal technology, and in particular to a method, system, storage medium, and electronic device for generating random nuclear pulses. Background Technology
[0002] In the field of nuclear radiation detection technology, such as gamma-ray particle detection, it has been widely applied in various fields such as medicine, astronomy, energy, industry, and nuclear testing in recent decades. Most nuclear radiation detection systems require the use of radioactive sources for testing, and these sources produce strong radiation hazards. Inadequate protective measures or improper operation can pose a significant threat to the health of researchers. Furthermore, using these radioactive sources in some tests is a complex, inefficient, and costly task. Therefore, developing simulated nuclear signal generation systems is of great significance for situations where the use of radioactive sources is not necessary.
[0003] However, the pulse signals generated by existing nuclear pulse generation systems have the following problems:
[0004] The output nuclear pulse signal can only be output according to a fixed amplitude distribution. Systems using pseudo-random signals have low randomness, while systems introducing true random sources are too complex. In addition, they cannot simulate the Gaussian fluctuations in nuclide energy caused by changes in various external factors in real radiation. Furthermore, some simulated nuclear pulse generation systems with better randomness and controllable nuclide ratios are often complex in structure and expensive, preventing their widespread use.
[0005] In summary, existing nuclear pulse generation systems cannot accurately reflect the physical characteristics of nuclear pulses, have low practicality, and are insufficient to meet the needs of nuclear experimental research. Therefore, in order to significantly reduce research and development costs and protect the health of researchers, it is of paramount importance to design a nuclear pulse generation system that can accurately reflect the physical characteristics of nuclear pulse signals, is simple to operate, has good stability, and is highly practical. Summary of the Invention
[0006] The purpose of this invention is to provide a random nuclear pulse generation method, system, storage medium, and electronic device, aiming to solve the problems that existing nuclear pulse generation systems cannot truly reflect the physical characteristics of nuclear pulse signals and have low practicality.
[0007] In a first aspect, the present invention provides a random nuclear pulse generation system, the system comprising a button and parameter random setting module, a linear feedback register module, a Gaussian random number storage module, a serial port host module, a pulse shape storage module, a ring oscillation module, a multiplication module, an energy standard library module, an addition module, a background noise storage module, and a digital-to-analog conversion module, wherein:
[0008] The output terminal of the button is electrically connected to the input terminal of the parameter random setting module;
[0009] The output of the parameter random setting module is electrically connected to the input of the linear feedback register module and the Gaussian random number storage module, respectively.
[0010] The output of the linear feedback register module is electrically connected to the input of the ring oscillation module, the Gaussian random number storage module, and the pulse shape storage module, respectively.
[0011] The output terminals of the ring oscillation module, the background noise storage module, and the serial port host module are all electrically connected to the input terminal of the energy standard library module;
[0012] The outputs of both the pulse shape storage module and the energy standard library module are electrically connected to the input of the multiplication module;
[0013] The outputs of both the multiplication module and the Gaussian random number storage module are electrically connected to the input of the addition module;
[0014] The output of the adder module is electrically connected to the input of the digital-to-analog converter module.
[0015] Furthermore, the serial port host module is used to output the nuclide ratio manually input by the user;
[0016] The parameter random setting module is used to store multiple reading rules of Gaussian ROM and multiple m-sequence parameters, and to filter the target reading rule from multiple reading rules according to the trigger time, and select the target m-sequence parameter from multiple m-sequence parameters. The trigger time is manually controlled by the user to be triggered by one button.
[0017] The target reading rule is sent to the Gaussian random number storage module, and the target m-sequence parameters are sent to the linear feedback register module.
[0018] Furthermore,
[0019] The linear feedback register module is used to perform calculations on the received target m sequence parameters and output a trigger signal every first preset time interval, and send the trigger signal to the Gaussian random number storage module, the pulse shape storage module and the ring oscillation module respectively.
[0020] The Gaussian random number storage module is used to retrieve a random number from the first preset database according to the target reading rule each time a trigger signal is received, and send the retrieved random number to the addition module.
[0021] The ring oscillation module is used to generate a random address based on the trigger signal;
[0022] The pulse shape storage module is used to send the first pulse shape data to the multiplication module in a preset order according to the trigger signal.
[0023] Furthermore,
[0024] The background noise storage module is used to send all the background noise it stores to the energy database module within a second preset time after the system is powered on. Each of the background noises corresponds to an address in the energy database.
[0025] The energy standard library module is used to adjust the current proportion value of each nuclide according to the nuclide ratio. Each proportion value corresponds to an address. The module retrieves the target value at the corresponding position from the energy database according to the random address and sends the target value to the addition module. The target value is either the background noise or the proportion value.
[0026] Furthermore,
[0027] The multiplication module is used to multiply the target value by the first pulse shape data respectively to obtain the magnified or reduced second pulse shape data, and send the second pulse shape data to the addition module;
[0028] The addition module is used to add the random number to the second pulse shape data respectively to obtain the energy-compensated third pulse shape data;
[0029] The digital-to-analog conversion module is used to convert the third pulse shape data into a nuclear pulse signal.
[0030] Furthermore, the Gaussian random number storage module is also used for:
[0031] The reading rules include the initial reading position number of the random number and the reading position interval;
[0032] When the trigger signal is received for the first time, the Gaussian random number storage module retrieves a random number from the first preset database according to the initial read position number;
[0033] When the trigger signal is received for the nth time, the Gaussian random number storage module calculates the current reading position number based on the number of trigger signals received (n) and the initial reading position number, and retrieves the corresponding random number from the first preset database based on the current reading position number.
[0034] If the current read position number exceeds the total number of positions in the first preset database, then the current read position number is subtracted from the total number of positions to obtain the read position number under the new trigger.
[0035] If trigger signals are continuously received, repeat the above steps to continuously read.
[0036] Secondly, the present invention provides a method for generating random nuclear pulses, the method comprising:
[0037] It stores multiple reading rules for Gaussian ROMs and multiple m-sequence parameters, and uses them to filter out the target reading rule from multiple reading rules based on the trigger time, and select the target m-sequence parameter from the multiple m-sequence parameters;
[0038] The received target m sequence parameters are processed, and a trigger signal is output once every first preset time interval;
[0039] Each time a trigger signal is received, a random number is retrieved from the first preset database according to the target reading rules;
[0040] A random address is generated based on the trigger signal;
[0041] The first pulse shape data is sent sequentially according to a preset order based on the trigger signal;
[0042] After the system is powered on, it will send all the background noise stored in it to the energy database module within a second preset time. Each of the background noises corresponds to an address in the energy database.
[0043] The current proportion of each nuclide is adjusted according to the proportion of the nuclide. Each proportion corresponds to an address. The target value at the corresponding position is retrieved from the energy database according to the random address. The target value is the background noise or the proportion value.
[0044] The target value is multiplied by the first pulse shape data to obtain the magnified or reduced second pulse shape data;
[0045] The random number is added to the second pulse shape data to obtain the energy-compensated third pulse shape data;
[0046] The third pulse shape data is converted into a nuclear pulse signal.
[0047] Furthermore, the step of retrieving a random number from a pre-stored first preset database according to the target reading rule each time a trigger signal is received includes:
[0048] The reading rules include the initial reading position number of the random number and the reading position interval;
[0049] When the trigger signal is received for the first time, the Gaussian random number storage module retrieves a random number from the first preset database according to the initial read position number;
[0050] When the trigger signal is received for the nth time, the Gaussian random number storage module calculates the current reading position number based on the number of trigger signals received (n) and the initial reading position number, and retrieves the corresponding random number from the first preset database based on the current reading position number.
[0051] If the current read position number exceeds the total number of positions in the first preset database, then the current read position number is subtracted from the total number of positions to obtain the read position number under the new trigger.
[0052] If trigger signals are continuously received, repeat the above steps to continuously read.
[0053] Thirdly, the present invention provides a storage medium that stores one or more programs, which, when executed by a processor, implement the above-described random simulated kernel pulse generation method.
[0054] Fourthly, the present invention provides an electronic device, the electronic device comprising a memory and a processor, wherein:
[0055] The memory is used to store computer programs;
[0056] When the processor executes the computer program stored in the memory, it implements the above-described random nuclear pulse generation method.
[0057] Compared with the prior art, the present invention has the following advantages:
[0058] 1. This invention designs a highly random, nuclide-simulated pulse generation system to replace a radioactive source for testing in nuclear detection systems. This overcomes the shortcomings of existing systems, such as complex structures and the inability to adjust nuclide ratios in a timely manner. Furthermore, the balanced characteristics of the pseudo-random m-sequence parameters, combined with the true randomness of user-initiated actions, yield a highly random and uniformly distributed trigger signal. By using a serial port host module to change the proportions of each nuclide in the energy standard library module in real time, and adding the energy from the background noise, the metastable state of the ring oscillation module is acquired to achieve proportional random energy output. Finally, random Gaussian fluctuation data is added to simulate a nuclear pulse, conforming to all the physical characteristics of a nuclear pulse.
[0059] 2. High flexibility. Using FPGA (Field Programmable Gate Array) as the main generation system of the nuclear pulse generation system has very high flexibility. First, due to the programmability of FPGA, it is easy to optimize and upgrade the system. Second, due to the lower design cycle and cost of FPGA, it has shown considerable advantages in rapid prototyping and small-batch production scenarios.
[0060] 3. Highly controllable. The energy ratio of the simulated nuclear pulse can be adjusted in real time via a serial port host module to meet the simulation requirements of various high-energy environments. By changing the data in the pulse shape storage module, the system clock frequency, and the amplification factor of the digital-to-analog converter module, the pulse shape, frequency, and amplitude of the signal can be flexibly adjusted to meet the needs of different application scenarios.
[0061] 4. Simple and reliable. This system utilizes a combination of true and pseudo-random characteristics to generate trigger signals, offering advantages in simplicity and reliability compared to other random signal generation methods. The generation of random numbers does not require complex hardware or advanced algorithms, ensuring the system's reliability and stability. Attached Figure Description
[0062] Figure 1 This is a schematic diagram of the structure of a random nuclear pulse generation system proposed in an embodiment of the present invention;
[0063] Figure 2 This is a flowchart illustrating the generation of a trigger signal in one embodiment of the present invention;
[0064] Figure 3 This is a timing diagram regarding the control of nuclide ratios in one embodiment of the present invention;
[0065] Figure 4 This is a timing diagram of nuclear pulse signal generation in one embodiment of the present invention.
[0066] The following detailed description, in conjunction with the accompanying drawings, will further illustrate the present invention. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. Unless otherwise defined, the technical or scientific terms used herein should have the ordinary meaning understood by those skilled in the art. The terms "comprising" and similar expressions used herein mean that the element or object preceding the word covers the element or object listed after the word and its equivalents, but does not exclude other elements or objects.
[0068] Firstly, such as Figure 1As shown, one embodiment of the present invention proposes a randomized nuclear pulse generation system. This system includes a button and parameter random setting module, a linear feedback register module, a Gaussian random number storage module, a serial port host module, a pulse shape storage module, a ring oscillation module, a multiplication module, an energy standard library module, an addition module, a background noise storage module, and a digital-to-analog conversion module, wherein:
[0069] The output terminal of the button is electrically connected to the input terminal of the parameter random setting module;
[0070] The output of the parameter random setting module is electrically connected to the input of the linear feedback register module and the Gaussian random number storage module, respectively.
[0071] The output of the linear feedback register module is electrically connected to the input of the ring oscillation module, the Gaussian random number storage module, and the pulse shape storage module, respectively.
[0072] The output terminals of the ring oscillation module, the background noise storage module, and the serial port host module are all electrically connected to the input terminal of the energy standard library module;
[0073] The outputs of both the pulse shape storage module and the energy standard library module are electrically connected to the input of the multiplication module;
[0074] The outputs of both the multiplication module and the Gaussian random number storage module are electrically connected to the input of the addition module;
[0075] The output of the adder module is electrically connected to the input of the digital-to-analog converter module.
[0076] In summary, by proposing a random nuclear pulse generation system, it is possible to simulate nuclear pulses. The simulated nuclear pulse signal conforms to all the physical characteristics of nuclear pulses. In addition, the system has the advantages of simple structure and low manufacturing cost.
[0077] In some embodiments, the serial port host module is used to output the nuclide ratio manually input by the user. It should be noted that the serial port host module can be a serial port host computer or serial port host device, such as the Taojingchi X2 series serial port screen. The user can adjust the nuclide ratio in real time through the serial port host module to simulate nuclear pulses under different high-energy environments. Furthermore, exemplarily, the serial port host module includes three buttons: button 1 switches the control element, and buttons 2 and 3 increase or decrease the ratio of the currently controlled element, thereby changing the ratio of different nuclides in the energy standard library. The timing diagram is shown below. Figure 3 As shown.
[0078] The parameter random setting module is used to store various Gaussian ROM read rules and multiple m-sequence parameters, and to filter the target read rule from multiple read rules based on the trigger time, and select the target m-sequence parameter from the multiple m-sequence parameters. The trigger time is manually controlled by the user with a single button press; it is understandable that... Figure 2 As shown, when a user presses a button, the trigger button is debounced and timed using a 125MHz clock, and the lower bits of the time are taken to determine multiple timing results. Each bit can only be 0 or 1. For example, if the lower 3 bits of the time are taken, there are 8 timing results; if the lower 4 bits of the time are taken, there are 16 timing results. In addition, each timing result corresponds to a reading rule and a string of m-sequence parameters. That is, when the user triggers the button, the 125MHz clock sends the trigger time to the parameter random setting module. This module then obtains several bits of the timing result based on the trigger time and locks the corresponding target reading rule and target m-sequence parameters based on the timing result.
[0079] The target reading rule is sent to the Gaussian random number storage module, and the target m-sequence parameter is sent to the linear feedback register module. The m-sequence parameter is chosen because only the m-sequence parameter can guarantee the highest randomness of the linear feedback register module.
[0080] The linear feedback register module is used to perform calculations on the received target m-sequence parameters and output a trigger signal every first preset time interval. The trigger signal is then sent to the Gaussian random number storage module, the pulse shape storage module, and the ring oscillation module, respectively. It should be noted that in each clock cycle, the linear feedback register module performs calculations based on randomly obtained feedback coefficients (target m-sequence parameters). Among them, c i For the currently received target m sequence parameters, a i As the initial state, a (n-i) The current state is defined by n, which represents the number of timing results (e.g., 8, 16, etc.). Then, the high 6 bits of the linear feedback register are shifted right by 1 bit, and the result of the operation is assigned to the highest bit. For example, this linear feedback register can be a linear feedback shift register, timed by a counter, with the lowest bit of the register sampled every 2µs as a trigger signal for output.
[0081] The Gaussian random number storage module retrieves a random number from a pre-stored first preset database according to the target reading rule each time a trigger signal is received, and sends the retrieved random number to the addition module. Specifically, the reading rule includes the initial reading position number of the random number and the reading position interval. When a trigger signal is received for the first time, the Gaussian random number storage module retrieves a random number from the first preset database according to the initial reading position number. When a trigger signal is received for the nth time, the Gaussian random number storage module calculates the current reading position number based on the number of trigger signals received (n) and the initial reading position number, and retrieves the corresponding random number from the first preset database according to the current reading position number. If the current reading position number exceeds the total number of positions in the first preset database, the current reading position number is subtracted from the total number of positions to obtain the reading position number under the new trigger. If trigger signals are continuously received, the above steps are repeated continuously. For example, the first preset database includes 1024 random numbers. The reading rule is as follows: the initial reading position number is 3, the reading position interval is 2, so when the trigger signal is received for the first time, the first data read is the random number at the 3rd position, when the trigger signal is received for the second time, the data read is the random number at the 6th position, and so on.
[0082] The ring oscillation module is used to generate a random address based on the trigger signal. It should be noted that the ring oscillation module is essentially a ring oscillator, and the principle of generating a random address is well known in the art and will not be described in detail here.
[0083] The pulse shape storage module is used to send the first pulse shape data to the multiplication module in a preset order according to the trigger signal. It should be noted that the pulse shape storage module pre-stores a large amount of pulse shape data, which is obtained in advance by detecting nuclear radiation sources with a real pulse detector. Each pulse shape data mainly contains the values of each point of the pulse curve (including the peak value of the pulse shape). Therefore, when a high-level trigger signal is received, each pulse shape data is sent to the multiplication module in the order from front to back.
[0084] It should be noted that each module will only start working when the trigger signal received by the Gaussian random number storage module, the pulse shape storage module, and the ring oscillation module is high-level. If the trigger signal is low-level, the Gaussian random number storage module, the pulse shape storage module, and the ring oscillation module will remain idle.
[0085] The background noise storage module is used to send all the background noise it stores to the energy database module within a second preset time after the system is powered on. Each of the background noises corresponds to an address in the energy database. The purpose of setting the second preset time is so that the background noise storage module will transmit all the background noise as soon as the system is turned on.
[0086] The energy standard library module adjusts the current proportions of its various nuclides based on their ratios. Each proportion corresponds to an address. It retrieves the target value from the energy database at the corresponding address and sends it to the addition module. The target value is either the background noise or the proportion value. It's important to note that each position in the energy database corresponds to either a proportion value or background noise. Adjustments are made upon receiving the input nuclide proportion. If the system is operating for the first time, the current proportion values are all 0. Subsequent adjustments after the system has been running will overwrite the previous proportions. In other words, the energy standard library module modifies the proportions of various nuclides in the standard library according to instructions from the host computer and adds background noise data to the standard library. When a random address is received, the energy corresponding to that address is output. For example, if the ratio of elements A to B is 1:2, the probability of outputting their energy values is also 1:2.
[0087] The multiplication module is used to multiply the target value by the first pulse shape data respectively to obtain the magnified or reduced second pulse shape data, and send the second pulse shape data to the addition module;
[0088] The addition module is used to add the random number to the second pulse shape data respectively to obtain the energy-compensated third pulse shape data;
[0089] It should be noted that the purpose of the multiplication module is to amplify or reduce the values at various points, especially the peak value. The purpose of the addition module is to compensate for the energy error in the pulse signal obtained during actual detection of radioactive sources, and to compensate for this error using random numbers.
[0090] In other words, by multiplying the outputs of the pulse shape storage module and the energy standard library module, we obtain nuclear-like pulse data with random intervals, random energy, satisfying the input nuclide ratio, and containing background noise.
[0091] The digital-to-analog conversion module is used to convert the third pulse shape data into a nuclear pulse signal. It should be noted that, finally, the FPGA sends the analog nuclear pulse digital signal to the digital-to-analog conversion module, which performs digital-to-analog conversion and outputs a continuous analog nuclear pulse signal that can be observed on an oscilloscope, such as... Figure 4As shown. Furthermore, when the next trigger signal arrives, the next simulated nuclear pulse signal is output, and so on, continuously cycling to achieve the simulation of a real nuclear pulse.
[0092] In summary, compared with the prior art, the present invention has the following advantages:
[0093] 1. This invention designs a highly random, nuclide-simulated pulse generation system to replace a radioactive source for testing in nuclear detection systems. This overcomes the shortcomings of existing systems, such as complex structures and the inability to adjust nuclide ratios in a timely manner. Furthermore, the balanced characteristics of the pseudo-random m-sequence parameters, combined with the true randomness of user-initiated actions, yield a highly random and uniformly distributed trigger signal. By using a serial port host module to change the proportions of each nuclide in the energy standard library module in real time, and adding the energy from the background noise, the metastable state of the ring oscillation module is acquired to achieve proportional random energy output. Finally, random Gaussian fluctuation data is added to simulate a nuclear pulse, conforming to all the physical characteristics of a nuclear pulse.
[0094] 2. High flexibility. Using FPGA (Field Programmable Gate Array) as the main generation system of the nuclear pulse generation system has very high flexibility. First, due to the programmability of FPGA, it is easy to optimize and upgrade the system. Second, due to the lower design cycle and cost of FPGA, it has shown considerable advantages in rapid prototyping and small-batch production scenarios.
[0095] 3. Highly controllable. The energy ratio of the simulated nuclear pulse can be adjusted in real time via a serial port host module to meet the simulation requirements of various high-energy environments. By changing the data in the pulse shape storage module, the system clock frequency, and the amplification factor of the digital-to-analog converter module, the pulse shape, frequency, and amplitude of the signal can be flexibly adjusted to meet the needs of different application scenarios.
[0096] 4. Simple and reliable. This system utilizes a combination of true and pseudo-random characteristics to generate trigger signals, offering advantages in simplicity and reliability compared to other random signal generation methods. The generation of random numbers does not require complex hardware or advanced algorithms, ensuring the system's reliability and stability.
[0097] Secondly, an embodiment of the present invention also provides a method for generating random nuclear pulses, the method comprising:
[0098] It stores multiple reading rules for Gaussian ROMs and multiple m-sequence parameters, and uses them to filter out the target reading rule from multiple reading rules based on the trigger time, and select the target m-sequence parameter from the multiple m-sequence parameters;
[0099] The received target m sequence parameters are processed, and a trigger signal is output once every first preset time interval;
[0100] Each time a trigger signal is received, a random number is retrieved from the first preset database according to the target reading rules;
[0101] A random address is generated based on the trigger signal;
[0102] The first pulse shape data is sent sequentially according to a preset order based on the trigger signal;
[0103] After the system is powered on, it will send all the background noise stored in it to the energy database module within a second preset time. Each of the background noises corresponds to an address in the energy database.
[0104] The current proportion of each nuclide is adjusted according to the proportion of the nuclide. Each proportion corresponds to an address. The target value at the corresponding position is retrieved from the energy database according to the random address. The target value is the background noise or the proportion value.
[0105] The target value is multiplied by the first pulse shape data to obtain the magnified or reduced second pulse shape data;
[0106] The random number is added to the second pulse shape data to obtain the energy-compensated third pulse shape data;
[0107] The third pulse shape data is converted into a nuclear pulse signal.
[0108] In some optional embodiments, the step of retrieving a random number from a pre-stored first preset database according to the target reading rule each time a trigger signal is received includes:
[0109] The reading rules include the initial reading position number of the random number and the reading position interval;
[0110] When the trigger signal is received for the first time, the Gaussian random number storage module retrieves a random number from the first preset database according to the initial read position number;
[0111] When the trigger signal is received for the nth time, the Gaussian random number storage module calculates the current reading position number based on the number of trigger signals received (n) and the initial reading position number, and retrieves the corresponding random number from the first preset database based on the current reading position number.
[0112] If the current read position number exceeds the total number of positions in the first preset database, then the current read position number is subtracted from the total number of positions to obtain the read position number under the new trigger.
[0113] If trigger signals are continuously received, repeat the above steps to continuously read.
[0114] In summary, based on the above-described random nuclear-simulated pulse generation method, the feedback coefficient and reading rules are first obtained from the trigger time. The linear feedback register module generates a random trigger signal, controlling the pulse shape ROM to output discrete pulse shape data. Simultaneously, the ring oscillation module, upon receiving the trigger signal, outputs a random address with random jitter as the entropy source, which is input to the energy standard library controlled by the serial port host module and the background noise ROM, outputting the pulse energy value. The pulse shape data is multiplied by the energy value and then added to the output of the Gaussian random number ROM to obtain nuclear-simulated pulse data with random intervals, random energy, satisfying the input nuclide ratio, and containing background noise. Finally, the nuclear-simulated pulse is obtained through analog-to-digital conversion.
[0115] Thirdly, an embodiment of the present invention also proposes a storage medium storing one or more programs that, when executed by a processor, implement the above-described random nuclear pulse generation method.
[0116] Fourthly, an embodiment of the present invention also proposes an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the above-described random nuclear pulse generation method.
[0117] Those skilled in the art will understand that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can mean any means that can contain stored, communicated, propagated, or transmitted programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0118] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0119] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0120] While embodiments of the present invention have been described in detail above, it will be apparent to those skilled in the art that various modifications and variations can be made to these embodiments. However, it should be understood that such modifications and variations fall within the scope and spirit of the invention as set forth in the claims. Furthermore, the invention described herein may have other embodiments and can be implemented or carried out in various ways.
Claims
1. A random nuclear-simulated pulse generation system, characterized in that, The system includes a button and parameter random setting module, a linear feedback register module, a Gaussian random number storage module, a serial port host module, a pulse shape storage module, a ring oscillation module, a multiplication module, an energy standard library module, an addition module, a background noise storage module, and a digital-to-analog conversion module, wherein: The output terminal of the button is electrically connected to the input terminal of the parameter random setting module; The output of the parameter random setting module is electrically connected to the input of the linear feedback register module and the Gaussian random number storage module, respectively. The output of the linear feedback register module is electrically connected to the input of the ring oscillation module, the Gaussian random number storage module, and the pulse shape storage module, respectively. The serial port host module is used to output the nuclide ratio manually input by the user; the parameter random setting module is used to store multiple Gaussian ROM reading rules and multiple m-sequence parameters, and to filter the target reading rule from multiple reading rules according to the trigger time, and select the target m-sequence parameter from the multiple m-sequence parameters. The trigger time is manually controlled by the user to be triggered by one button; the target reading rule is sent to the Gaussian random number storage module, and the target m-sequence parameter is sent to the linear feedback register module. The output terminals of the ring oscillation module, the background noise storage module, and the serial port host module are all electrically connected to the input terminal of the energy standard library module; The outputs of both the pulse shape storage module and the energy standard library module are electrically connected to the input of the multiplication module; The outputs of both the multiplication module and the Gaussian random number storage module are electrically connected to the input of the addition module; The output of the adder module is electrically connected to the input of the digital-to-analog converter module.
2. The random nuclear pulse generation system according to claim 1, characterized in that, The linear feedback register module is used to perform calculations on the received target m sequence parameters and output a trigger signal every first preset time interval, and send the trigger signal to the Gaussian random number storage module, the pulse shape storage module and the ring oscillation module respectively. The Gaussian random number storage module is used to retrieve a random number from the first preset database according to the target reading rule each time a trigger signal is received, and send the retrieved random number to the addition module. The ring oscillation module is used to generate a random address based on the trigger signal; The pulse shape storage module is used to send the first pulse shape data to the multiplication module in a preset order according to the trigger signal.
3. The random nuclear pulse generation system according to claim 2, characterized in that, The background noise storage module is used to send all the background noise it stores to the energy database module within a second preset time after the system is powered on. Each of the background noises corresponds to an address in the energy database. The energy standard library module is used to adjust the current proportion value of each nuclide according to the nuclide ratio. Each proportion value corresponds to an address. The module retrieves the target value at the corresponding position from the energy database according to the random address and sends the target value to the addition module. The target value is either the background noise or the proportion value.
4. The random nuclear pulse generation system according to claim 3, characterized in that, The multiplication module is used to multiply the target value by the first pulse shape data respectively to obtain the magnified or reduced second pulse shape data, and send the second pulse shape data to the addition module; The addition module is used to add the random number to the second pulse shape data respectively to obtain the energy-compensated third pulse shape data; The digital-to-analog conversion module is used to convert the third pulse shape data into a nuclear pulse signal.
5. The random nuclear pulse generation system according to any one of claims 1-4, characterized in that, The Gaussian random number storage module is also used for: The target reading rules include the initial reading position number of the random number and the reading position interval; When the trigger signal is received for the first time, the Gaussian random number storage module retrieves a random number from the first preset database according to the initial read position number; When the trigger signal is received for the nth time, the Gaussian random number storage module calculates the current reading position number based on the number of trigger signals received (n) and the initial reading position number, and retrieves the corresponding random number from the first preset database based on the current reading position number. If the current read position number exceeds the total number of positions in the first preset database, then the current read position number is subtracted from the total number of positions to obtain the read position number under the new trigger. If trigger signals are continuously received, repeat the above steps to continuously read.
6. A method for generating random nuclear-simulated pulses, characterized in that, The method includes: It stores multiple reading rules for Gaussian ROMs and multiple m-sequence parameters, and uses them to filter out the target reading rule from multiple reading rules based on the trigger time, and select the target m-sequence parameter from the multiple m-sequence parameters; The received target m sequence parameters are processed, and a trigger signal is output once every first preset time interval; Each time a trigger signal is received, a random number is retrieved from the first preset database according to the target reading rules; A random address is generated based on the trigger signal; The first pulse shape data is sent sequentially according to a preset order based on the trigger signal; After the system is powered on, it will send all the background noise stored in it to the energy database module within a second preset time. Each of the background noises corresponds to an address in the energy database. The current proportion of each nuclide is adjusted according to the proportion of the nuclide. Each proportion corresponds to an address. The target value at the corresponding position is retrieved from the energy database according to the random address. The target value is the background noise or the proportion value. The target value is multiplied by the first pulse shape data to obtain the magnified or reduced second pulse shape data; The random number is added to the second pulse shape data to obtain the energy-compensated third pulse shape data; The third pulse shape data is converted into a nuclear pulse signal.
7. The random nuclear pulse generation method according to claim 6, characterized in that, The step of retrieving a random number from a pre-stored first preset database according to the target reading rule for each received trigger signal includes: The target reading rules include the initial reading position number of the random number and the reading position interval; When the trigger signal is received for the first time, the Gaussian random number storage module retrieves a random number from the first preset database according to the initial read position number; When the trigger signal is received for the nth time, the Gaussian random number storage module calculates the current reading position number based on the number of trigger signals received (n) and the initial reading position number, and retrieves the corresponding random number from the first preset database based on the current reading position number. If the current read position number exceeds the total number of positions in the first preset database, then the current read position number is subtracted from the total number of positions to obtain the read position number under the new trigger. If trigger signals are continuously received, repeat the above steps to continuously read.
8. A storage medium, characterized in that, The storage medium stores one or more programs that, when executed by a processor, implement the random nuclear pulse generation method as described in any one of claims 6-7.
9. An electronic device comprising a memory and a processor, wherein: The memory is used to store computer programs; When the processor executes the computer program stored in the memory, it implements the random nuclear pulse generation method as described in any one of claims 6-7.
Citation Information
Patent Citations
Imitated nuclear pulse generation device and method
CN109239765A
High-counting-rate and high-randomness simulated nuclear signal generator and signal generation method thereof
CN117849851A