In the prior art, the DDR storage free time is swept plug wire configuration data and is divided into several memory blocks, each trig high level
The data of one memory block of capital parsing, i.e., the configuration information of one scanning line, and in the failing edge of trig, it reads next and sweeps
The corresponding configuration information of scanning line looked into is stored in fifo (First Input First Output, First Input First Output), with
It is parsed between trig high period next time.
It should be noted that need to read the configuration data of every scanning line and transmission one by one during above-mentioned scanning,
After the completion of last root scanning line is read, DDR pointer can be jumped in the single line of starting, repeat to send scanning letter again
Breath, terminates this scanning after receiving freeze command.
4 dimensions ultrasonic scan (4D) are a kind of special ultrasonic scan mechanism, can be shown by the 3D model of scanning object,
4D is exactly the continuous scanning mode of 3D.In 4D imaging process, a built-in motor, during freezing or is in 4D probe
During 2D, motor is parked in middle position.During entering 4D, motor will swing, and motor is from probe each time
Move to another side on one side, and counter motion is to the one side set out again after reaching another side, in motor reciprocatory movement
In, a motor feedback signals MFS (Motor Feedback Signal) can be all generated when motor reaches probe one side
Main control chip FPGA is given, loops back and forth like this and freezes or exit 4D order until receiving, to terminate scanning.
As shown in connection with fig. 2, the motion mode of the motor in probe during 4D scanning is described.Since 4D scanning mode is
The dimension of 3D scanning is derivative, as shown in Fig. 2, after ultrasonic device is converted to scanning state from frozen state, motor setting in motion,
When generating first MFS, scanning starts, the total data that on one side moves to another side institute scanning of the motor from probe
A referred to as volumn begins to wait next MFS signal after the completion of the data whole scanning of a volumn;It needs
It is noted that when the length of the time t of volumn of scanning need move to the period of another side from one side less than motor
Between T.
As shown in connection with fig. 3, for the timing in scheme, t0 represents the moment of thawing, and t1 reception is anti-to first motor
Feedback signal MFS, t0 to the t1 period, when being that motor moves to side for the first time from the central position, system is not sweep at this time
It looks into;After receiving first MFS, FPGA reads the configuration data of single line from DDR and generates first scanning
Trig signal;T2 to the t3 period is the positive flyback time of motor, and scanning suspends after the completion of last root linear scan, and waits the t4 moment
Beginning is counter to sweep, and so recycles, until terminating 4D scanning.
As shown in connection with fig. 4, during freezing, PC is issued to whole scanning lines in DDR and stores, scanning when
It waits, the configuration data of every line is read out one by one, and is issued in the scanning of front end after fifo is cached.
As shown in connection with fig. 5, at the t0 moment, system is thawed, and the configuration data of first line is read out and is stored in
Fifo, between first trig high period, i.e. t1 reads out the data in fifo and is issued to front end, when the decline of trig
From the configuration information for reading lower single line in DDR and be written in fifo after generating, and so on empty the cache after freezing.
As shown in connection with fig. 6, only Scan_A in 2 d mode after defrosting, reads each since Start_addr
The configuration data of line.If it is under 4D mode, it is to issue two scannings table Scan_A and Scan_B during freezing, deposits respectively
Store up the different location in DDR.When motor forward direction scanning, Scan_A is executed, when reversed scanning, executes Scan_B,
It is jumped in this way, scanning table can be related to, needs to read Scan_ in time after the trig failing edge of the last single line of positive scanning
The start_addr of B.
In conjunction with shown in Fig. 7, Fig. 8, Fig. 7, Fig. 8 are to jump timing under the 4D mode of the prior art.At first and second
Between a motor_sig, motor is in the positive scanning stage, and between second and third motor_sig, motor is in anti-
To the scanning stage.At the time of t0 shown in fig. 7 is that single line starts scanning, t1 is that the last single line just swept configures
At at this time it should be noted that read the configuration data of the single line of Scan_B and be cached in fifo.Similarly, the t2 moment is anti-
The last single line configuration swept is completed, and the trig failing edge at him needs reading and caches the single line configuration number of Scan_A
According to circuiting sequentially, until terminating this scanning.
4D shown in Fig. 8 jumps timing, is jumped by Scan_sel signal and Read_cfg signal control sequential, correspondingly,
Scan_sel indicates scanning table selection signal, is A table when 0, and 1 when is B table, and Read_cfg high level is indicated from DDR
The middle period for reading parameter;It is the last single line of Scan_A before motor_sig, is followed by first of Scan_B
Line.
However, the key of scanning is that the last single line of this scanning is accurately positioned before motor overturning every time,
It needs first the control signal overturning of scanning table to be started to read configuration parameter again after positioning, 4D in the prior art jumps timing
In, the generation of Scan_sel signal and Read_cfg signal, not in the same clock domain, in this way, in the 4D timing of the prior art
In, during timing control, Scan_sel may occur after Read_cfg at the time of jump, at this point, last single line
When, reading may be single line corresponding to scanning direction identical with current scanning direction, lead to scanning timing entanglement.
Summary of the invention
In order to solve the above technical problems, the purpose of the present invention is to provide a kind of four-dimensional ultrasound scanning sequence configuration method and
Configuration system.
One of in order to achieve the above-mentioned object of the invention, an embodiment of the present invention provides a kind of four-dimensional ultrasound scanning timing configuration
Method, which comprises S1, after ultrasonic device is converted to scanning state from frozen state obtains motor feedback letter in real time
Number;
S2, configured by the adjacent jumping moment of motor feedback signals positive/negative scanning table control signal timing and
DDR reads the timing of control signal, to guarantee that the jumping moment for configuring positive/negative scanning table timing control signal occurs to read in DDR
Before taking timing control signal jumping moment;
It is high and low signal that the motor feedback signals, positive/negative scanning table control signal and DDR, which read control signal,
Jump timing;
After motor feedback signals jump every time, indicate that motor is positive between corresponding each high period or between low period
The conversion of scanning and reversed scanning, it is during positive scanning is indicated between adjacent the latter low period or between high period or anti-
Data configuration, scanning and transmission to all scanning lines during scanning;
When the high and low signal jump of positive/negative scanning table control signal, turn of positive scanning table and reversed scanning table is indicated
It changes;Configuration data when the forward direction scanning table is used to store positive scanning corresponding to scanning line, the reversed scanning table are used for
Configuration data when storing reversed scanning corresponding to scanning line;
It indicates to read the configuration of any scanning line between each high period of DDR reading control signal or between low period
Data;The scanning stage of a piece scanning line configuration data of matching is indicated between its adjacent the latter low level or high period.
As the further improvement of an embodiment of the present invention, the step S2 is specifically included:
It jump start time when the same motor feedback signals arrive, configures positive/negative scanning table and controls signal
Jump, and the jump finish time when the motor feedback signals arrive, configuration DDR read timing control signal jump.
As the further improvement of an embodiment of the present invention, the step S2 further include:
Configuring positive/negative scanning table control signal is always high level in the frozen state of ultrasonic device, configures positive/negative sweep
Tabling look-up is positive scanning between controlling signal low period;Configuring between positive/negative scanning table control signal high period is reversed scanning;
Or configuration positive/negative scanning table control signal is always low level in the frozen state of ultrasonic device, configuration just/
It is positive scanning between anti-scanning table control signal high period;It is reversed for configuring between positive/negative scanning table control signal low period
Scanning.
FIFO is emptied during same motor feedback signals occur as the further improvement of an embodiment of the present invention
The configuration data of last root scanning line corresponding to the previous scanning of middle record.
As the further improvement of an embodiment of the present invention, in the jump finish time of same motor feedback signals, root
According to the direction of positive/negative scanning table control signal, reads the configuration data of its corresponding first scanning line and be stored in fifo caching
It is medium to be sent.
One of in order to achieve the above-mentioned object of the invention, an embodiment of the present invention provides a kind of four-dimensional ultrasound scanning timing configuration
System, the system comprises: module is obtained, for being obtained after ultrasonic device is converted to scanning state from frozen state in real time
Motor feedback signals;
Configuration module configures positive/negative scanning table for the adjacent jumping moment by motor feedback signals and controls signal
Timing and DDR read the timing of control signal, to guarantee to configure the jumping moment hair of positive/negative scanning table timing control signal
Life is before DDR reads timing control signal jumping moment;
It is high and low signal that the motor feedback signals, positive/negative scanning table control signal and DDR, which read control signal,
Jump timing;
After motor feedback signals jump every time, indicate that motor is positive between corresponding each high period or between low period
The conversion of scanning and reversed scanning, it is during positive scanning is indicated between adjacent the latter low period or between high period or anti-
Data configuration, scanning and transmission to all scanning lines during scanning;
When the high and low signal jump of positive/negative scanning table control signal, turn of positive scanning table and reversed scanning table is indicated
It changes;Configuration data when the forward direction scanning table is used to store positive scanning corresponding to scanning line, the reversed scanning table are used for
Configuration data when storing reversed scanning corresponding to scanning line;
It indicates to read the configuration of any scanning line between each high period of DDR reading control signal or between low period
Data;The scanning stage of a piece scanning line configuration data of matching is indicated between its adjacent the latter low level or high period.
As the further improvement of an embodiment of the present invention, the configuration module is specifically used for: anti-in the same motor
Jump start time when feedback signal arrives configures positive/negative scanning table control signal and jumps, and in the motor feedback signals
Jump finish time when arrival, configuration DDR read timing control signal jump.
As the further improvement of an embodiment of the present invention, the configuration module is also used to: configuring positive/negative scanning table control
Signal processed is always high level in the frozen state of ultrasonic device, configures between positive/negative scanning table control signal low period and is
Positive scanning;Configuring between positive/negative scanning table control signal high period is reversed scanning;
Or configuration positive/negative scanning table control signal is always low level in the frozen state of ultrasonic device, configuration just/
It is positive scanning between anti-scanning table control signal high period;It is reversed for configuring between positive/negative scanning table control signal low period
Scanning.
As the further improvement of an embodiment of the present invention, the configuration module is specifically used for: in same motor feedback
During signal occurs, the configuration data of last root scanning line corresponding to the previous scanning recorded in FIFO is emptied.
As the further improvement of an embodiment of the present invention, the configuration module is specifically used for: in same motor feedback
During signal occurs, the configuration data of last root scanning line corresponding to the previous scanning recorded in FIFO is emptied.
Compared with prior art, the beneficial effects of the present invention are: four-dimensional ultrasound scanning sequence configuration method of the invention and
Configuration system, based on motor feedback signals configure positive/negative scanning table control signal timing and DDR read control signal when
Sequence simplifies the control logic of 4D scanning to adjust the timing of each signal in same clock domain, promotes scanning efficiency.
Specific embodiment
Below with reference to specific embodiment shown in the drawings, the present invention will be described in detail.But these embodiments are simultaneously
The present invention is not limited, structure that those skilled in the art are made according to these embodiments, method or functionally
Transformation is included within the scope of protection of the present invention.
It should be noted that present invention is mainly applied to ultrasonic device, correspondingly, the determinand can be test serum,
It is not described in detail herein.
In conjunction with shown in Fig. 9, Figure 10, the four-dimensional ultrasound scanning sequence configuration method that an embodiment of the present invention provides is described
Method includes:
S1, after ultrasonic device is converted to scanning state from frozen state, obtain motor feedback signals in real time.
In the specific embodiment of the invention, the working condition of ultrasonic device is controlled by setting freeze signal Freeze,
If freeze signal is one of high level or low level, judge that ultrasonic device is in frozen state, if freeze signal is height
Level or low level are wherein another, then judge that ultrasonic device is in scanning state.
Motor feedback signals Motor_sig jumps timing for high and low signal;It is right after motor feedback signals jump every time
The conversion of the scanning of motor forward direction and reversed scanning, adjacent the latter are indicated between each high period answered or between low period
The data configuration of all scanning lines during positive scanning or during reversed scanning is indicated between low period or between high period, is swept
It looks into and sends;
Correspondingly, one DDR memory device of configuration, is in frozen state in ultrasonic device, PC organizes all scanning lines
Configuration information, and whole scanning line configuration informations are disposably issued in the DDR memory device, according to the scanning of scanning line
Sequence will be in the independent simultaneously each memory block for being stored in the DDR memory device of sequence of the configuration information of every scanning line.
Further, a Trig signal is configured for scanning line, is in scanning state in ultrasonic device, and when correspondence is currently swept
When the trig signal of the line inspection is one of high level or low level, indicate that current scanning line is in Parameter analysis of electrochemical configuration phase,
When the trig signal of the current scanning line of correspondence is high level or wherein another low level, indicate that current scanning line is in scanning rank
Section.
S2, configured by the adjacent jumping moment of motor feedback signals positive/negative scanning table control signal timing and
DDR reads the timing of control signal, to guarantee that the jumping moment for configuring positive/negative scanning table timing control signal occurs to read in DDR
Before taking timing control signal jumping moment.
Correspondingly, the control of positive/negative scanning table signal Scan_sel and DDR that the present invention configures read control signal
Read_cfg is also high and low signal jump timing;When the high and low signal jump of positive/negative scanning table control signal, indicate positive
The conversion of scanning table and reversed scanning table;Configuration number when the forward direction scanning table is used to store positive scanning corresponding to scanning line
According to the reversed scanning table is for configuration data when storing reversed scanning corresponding to scanning line;DDR reads the every of control signal
The configuration data of any scanning line of reading is indicated between one high period or between low period;Its adjacent the latter low level or
The scanning stage of a piece scanning line configuration data of matching is indicated between high period.
In concrete mode of the present invention, the step S2 is specifically included: the jump when the same motor feedback signals arrive
Start time configures positive/negative scanning table control signal and jumps, and at the end of jump in motor feedback signals arrival
It carves, configuration DDR reads timing control signal jump.
In better embodiment of the present invention, the step S2 further include: configure positive/negative scanning table control signal in ultrasound
It is always high level when the frozen state of equipment, configuring between positive/negative scanning table control signal low period is positive scanning;Configuration
It is reversed scanning between positive/negative scanning table control signal high period;Or the positive/negative scanning table control signal of configuration is in ultrasonic device
Frozen state when be always low level, configuring between positive/negative scanning table control signal high period is positive scanning;Configuration just/
It is reversed scanning between anti-scanning table control signal low period.
In this way, present invention can ensure that updated under same clock domain configure the timing of positive/negative scanning table control signal with
And DDR reads the timing of control signal, to guarantee that the jumping moment for configuring positive/negative scanning table timing control signal occurs in DDR
Before reading timing control signal jumping moment.
In better embodiment of the present invention, data obfuscation when in order to avoid positive and negative scanning, the step S2 further include:
During same motor feedback signals occur, the configuration of last root scanning line corresponding to the previous scanning recorded in FIFO is emptied
Data, and in the jump finish time of same motor feedback signals, the direction of signal is controlled according to positive/negative scanning table, reads it
The configuration data of corresponding first scanning line and be stored in fifo caching it is medium to be sent.
Correspondingly, indicating that forward direction is swept when configuration DDR reading timing control signal is one of high level or low level
It looks into, when being another, indicates reversed scanning.
Further the method also includes: controlling signal and DDR according to positive/negative scanning table, to read control signal real-time
State reads configuration data to carry out four-dimensional ultrasound scanning.
In order to make it easy to understand, to describe a specific example for reference by the present invention.
Specifically example as shown in connection with fig. 10, in a specific embodiment of the invention, Freeze signal between high period,
Ultrasonic device is then indicated in frozen state, if it is between low period, then it represents that ultrasonic device is in scanning state.
Trig signal indicates that current scanning line is in Parameter analysis of electrochemical configuration phase between high period, current scanning line
When trig signal is low level, indicate that current scanning line is in the scanning stage.
Motor_sig signal indicates that motor is changed into reversed scanning from positive scanning between high period, or from reversely sweeping
It looks into and is changed into positive scanning, between low period, the number of all scanning lines during indicating positive scanning or during reversed scanning
According to configuration, scanning and transmission, wherein it should be noted that in this example, first between low period of Freeze signal
Between the high period of Motor_sig signal, indicate that the scanning after it between low period is the scanning of motor forward direction, second
Between the high period of Motor_sig signal, indicates that the scanning after it between low period is the reversed scanning of motor, circuits sequentially,
Until the jump of Freeze signal is that high level or external condition are ended, does not do continue to repeat herein.
Correspondingly, in the synchronous configuration Scan_sel signal of jumping moment and Read_cfg signal of Motor_sig signal.
As shown in Figure 10, t0, t1 are the rising edge and failing edge of first motor_sig signal after thawing, and t2, t3 are
The rising edge and failing edge of second motor_sig signal, in logic setting, Scan_sel signal makees following setting: the letter
Number positive scanning is indicated for 0, read Scan_A, indicate reversed scanning for 1, read Scan_B.
Correspondingly, being specifically included according to Motor_sig signal configuration Scan_sel signal and Read_cfg signal:
1, when Freeze signal is high level, configuration Scan_sel signal is continuously 1;
2, Freeze signal is jumped from high level to low level, in the rising edge of first Motor_sig signal, i.e. t0
Moment generates first Scan_sel signal and is configured, and jumping it from high level is low level, and it is slow to empty FIFO
It deposits;
3, it in the failing edge of first Motor_sig signal, i.e. t1 moment, generates first Read_cfg signal and carries out
Configuration, jumping it from low level is high level, and using the moment as the single line configuration data for reading positive scanning
Moment, that is, at the t1 moment, FPGA reads the configuration information of the single line of positive scanning from DDR and is stored in fifo caching
It is medium to be sent;Then it waits until that first trig signal high level goes down the configuration information transmission of single line, waits until first
A trig high level terminates, and is triggering with the failing edge of trig, generates the Read_cfg signal of second line, by second line
Configuration information reads in caching, and so on, until the last one root linear scan of positive scanning terminates.
4, it on the upper drop edge of second Motor_sig signal, i.e. t2 moment, generates second Scan_sel signal and carries out
Configuration, Scan_sel signal is overturn, even if it is high level that it is jumped from low level, and empties FIFO caching;
5, it in the failing edge of second Motor_sig signal, i.e. t3 moment, generates new Read_cfg signal and is matched
Set, make its from low level jump be high level, and using the moment as the single line configuration data of the reversed scanning of reading when
It carves, that is, at the t3 moment, FPGA is from the configuration information of the single line for reading reversed scanning in DDR and is stored in fifo caching
It waits.
It recycles repeatedly, directly to configure Scan_sel signal and Read_cfg signal by Motor_sig signal,
In the configuration process, since Scan_sel signal and Read_cfg signal are all done with the rising edge of Motor_sig and failing edge
It with reference to triggering, sequentially can control, be not in the problem of misreading.Further, due to each
The rising edge of motor_sig signal can empty fifo, so the configuration information of a preceding scanning is not interfere with next time
Scanning;Also, in the failing edge of each motor_sig, due to the relationship of Scan_sel, had read at this time corresponding to Scan_
Single line configuration information pointed by sel signal, and be stored in fifo, after trig signal arrives, start scanning, such as
This, is avoided data obfuscation when positive and negative scanning.
In conjunction with shown in Figure 11, the four-dimensional ultrasound scanning timing configuration system provided in an embodiment of the present invention, the system
System includes: to obtain module 100, configuration module 200 and processing module.
It obtains module 100 to be used for after ultrasonic device is converted to scanning state from frozen state, obtains motor feedback in real time
Signal.
In the specific embodiment of the invention, the working condition of ultrasonic device is controlled by setting freeze signal Freeze,
If freeze signal is one of high level or low level, judge that ultrasonic device is in frozen state, if freeze signal is height
Level or low level are wherein another, then judge that ultrasonic device is in scanning state.
Configuration module 200 is used to configure positive/negative scanning table control letter by the adjacent jumping moment of motor feedback signals
Number timing and DDR read the timing of control signal, to guarantee to configure the jumping moment of positive/negative scanning table timing control signal
Occur before DDR reads timing control signal jumping moment.
Processing module is used to control signal according to positive/negative scanning table and DDR reads control signal real-time status, and reading is matched
Data are set to carry out four-dimensional ultrasound scanning.
In concrete mode of the present invention, configuration module 200 is specifically used for: the jump when the same motor feedback signals arrive
Start time configures positive/negative scanning table control signal and jumps, and at the end of jump in motor feedback signals arrival
It carves, configuration DDR reads timing control signal jump.
In better embodiment of the present invention, configuration module 200 is also used to configure positive/negative scanning table control signal in ultrasound
It is always high level when the frozen state of equipment, configuring between positive/negative scanning table control signal low period is positive scanning;Configuration
It is reversed scanning between positive/negative scanning table control signal high period;Or the positive/negative scanning table control signal of configuration is in ultrasonic device
Frozen state when be always low level, configuring between positive/negative scanning table control signal high period is positive scanning;Configuration just/
It is reversed scanning between anti-scanning table control signal low period.
In this way, present invention can ensure that updated under same clock domain configure the timing of positive/negative scanning table control signal with
And DDR reads the timing of control signal, to guarantee that the jumping moment for configuring positive/negative scanning table timing control signal occurs in DDR
Before reading timing control signal jumping moment.
In better embodiment of the present invention, data obfuscation when in order to avoid positive and negative scanning, configuration module 200 is also used to
During same motor feedback signals occur, the configuration of last root scanning line corresponding to the previous scanning recorded in FIFO is emptied
Data, and in the jump finish time of same motor feedback signals, the direction of signal is controlled according to positive/negative scanning table, reads it
The configuration data of corresponding first scanning line and be stored in fifo caching it is medium to be sent.
Correspondingly, indicating that forward direction is swept when configuration DDR reading timing control signal is one of high level or low level
It looks into, when being another, indicates reversed scanning.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, can be with reference to the corresponding process in preceding method embodiment, details are not described herein.
In conclusion four-dimensional ultrasound scanning sequence configuration method and configuration system of the invention, are based on motor feedback signals
The timing and DDR that configure positive/negative scanning table control signal read the timing of control signal, each to adjust in same clock domain
The timing of signal simplifies the control logic of 4D scanning, promotes scanning efficiency.
In several embodiments provided herein, it should be understood that disclosed system, system and method can
To realize by another way.For example, system embodiment described above is only schematical, for example, the mould
The division of block, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling, direct-coupling or communication connection shown or discussed can be through some interfaces, between system or module
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple
On network module.Some or all of the modules therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, can integrate in a processing module in each functional module in each embodiment of the application, it can also
To be that modules physically exist alone, can also be integrated in a module with 2 or 2 with upper module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer
It is each that system (can be personal computer, server or network system etc.) or processor (processor) execute the application
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
Finally, it should be noted that embodiment of above is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent
Pipe is described in detail the application referring to aforementioned embodiments, those skilled in the art should understand that: its according to
It can so modify to technical solution documented by aforementioned each embodiment, or part of technical characteristic is equal
Replacement;And these are modified or replaceed, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution
Spirit and scope.