Content of the invention
In order to solve above-mentioned technical problem, the present invention proposes a kind of checking system of new sequential control circuit and checking
Method, based on field-programmable gate array, realizes the iic bus control unit of hardware it is not necessary to software support is it is not required that embed
Cpu module, simplifies debugging process.
In view of this, according to an aspect of the present invention it is proposed that a kind of checking system of sequential control circuit, including existing
Field programmable gate array, for building sequential control circuit to be verified, described scene logic gate array is additionally operable to build iic total
Lane controller, described iic bus control unit connects to described sequential control circuit, is derived from iic bus debugging interface for receiving
Test instruction and described test instruction is parsed, the read-write operation instruction that generates of parsing is sent to described sequencing contro
Circuit;Described sequential control circuit is used for receiving and execute described read-write operation instruction;Described checking system also includes: described
Iic bus debugging interface, connects to described iic bus control unit, described test is simultaneously referred to by the described test instruction of receives input
Order is transmitted to described iic bus control unit.
Because field programmable gate array (fpga) is a kind of semidefinite inhibition and generation circuit, achievable combination logic function, may be used again
Realize the basic logic unit module of sequential logic function.Value in depositor determines this logic list in logical units for storage
Connecting mode between the logic function of unit and each module or between module and i/o, and finally determine what fpga was realized
Function, therefore, can build sequential control circuit and iic bus control unit (iic controller), so, institute using fpga
The sequential control circuit built and iic bus control unit are just made up of hardware completely, and the iic bus control unit built is not
Need internal processor it is not required that supporting software accordingly, at the chip checking initial stage, reaching upper computer software being capable of velocity modulation soon
The purpose of examination sequential control circuit, obtains data by the i2c Debugging interface of host computer it is not necessary to cpu executes software, works as tune
Die trial block changes, and only need to carry out slight variations it is not necessary to change debugging software in host computer interface setting, therefore reduce
The complexity of debugging, compared with the jtag interface and uart interface, more simple and fast.Secondly, iic bus is a kind of simple
Versabus, only two signals, implement signal, realize fairly simple, so, just can simplify whole checking system
Design architecture so that debugging process is more efficient and convenient, the debug time of timing controller is greatly reduced, also improves
The motility of debugging.
According to a further aspect in the invention it is also proposed that a kind of verification method of sequential control circuit, can be compiled using scene
Journey gate array builds sequential control circuit to be verified and iic bus control unit;Using iic bus debugging interface receives input
Test instruction is simultaneously transmitted described test instruction to described iic bus control unit;By described iic bus control unit to described survey
Examination instruction is parsed, and generates read-write operation instruction, receives for described sequential control circuit and execute.
Because field programmable gate array (fpga) is a kind of semidefinite inhibition and generation circuit, achievable combination logic function, may be used again
Realize the basic logic unit module of sequential logic function.Value in depositor determines this logic list in logical units for storage
Connecting mode between the logic function of unit and each module or between module and i/o, and finally determine what fpga was realized
Function, therefore, can build sequential control circuit and iic bus control unit (iic controller), so, institute using fpga
The sequential control circuit built and iic bus control unit are just made up of hardware completely, and the iic bus control unit built is not
Need internal processor it is not required that supporting software accordingly, at the chip checking initial stage, reaching upper computer software being capable of velocity modulation soon
The purpose of examination sequential control circuit, obtains data by the i2c Debugging interface of host computer it is not necessary to cpu executes software, works as tune
Die trial block changes, and only need to carry out slight variations it is not necessary to change debugging software in host computer interface setting, therefore reduce
The complexity of debugging, compared with the jtag interface and uart interface, more simple and fast.Secondly, iic bus is a kind of simple
Versabus, only two signals, implement signal, realize fairly simple, so, just can simplify whole checking system
Design architecture so that debugging process is more efficient and convenient, the debug time of timing controller is greatly reduced, also improves
The motility of debugging.
Specific embodiment
In order to be more clearly understood that the above objects, features and advantages of the present invention, below in conjunction with the accompanying drawings and specifically real
Mode of applying is further described in detail to the present invention.It should be noted that in the case of not conflicting, the enforcement of the application
Feature in example and embodiment can be mutually combined.
Elaborate a lot of details in the following description in order to fully understand the present invention, but, the present invention also may be used
To be implemented different from other modes described here using other, therefore, protection scope of the present invention is not described below
Specific embodiment restriction.
To describe the checking system of sequential control circuit according to an embodiment of the invention with reference to Fig. 1 and Fig. 2 in detail.
Fig. 1 shows the schematic diagram of the checking system of sequential control circuit according to an embodiment of the invention, and Fig. 2 shows in Fig. 1
The circuit diagram that fpga is built.
As shown in figure 1, the checking system of sequential control circuit according to an embodiment of the invention, two big portions can be included
Point, field programmable gate array 102 is total with checking circuit interface (alternatively referred to as tcon verifies circuit expansion board) 104, iic
Line debugging interface 1042 is arranged in checking circuit interface 104, wherein,
Field programmable gate array 102, be used for building sequential control circuit 1024 and iic bus control unit 1022(referring to
Fig. 2), sequential control circuit 1024 connects to iic bus control unit 1022, for receiving from iic bus control unit 1022
Read-write operation instructs, and executes the instruction of this read-write operation, and this iic bus control unit 1022 is used for receiving from the debugging of iic bus
The test instruction of interface 1042 simultaneously parses to this test instruction, and the read-write operation instruction that parsing is generated sends to sequential control
Circuit 1024 processed;Iic bus debugging interface 1042, connects to above-mentioned field programmable gate array 102, will be inputted by host computer 10
Test instruction send the iic bus control unit 1022 built to field programmable gate array 102, and by field programmable gate
The implementing result of the sequential control circuit 1024 that array 102 is built is transmitted to authentication unit (such as display screen 12), existing to determine
Whether the sequential control circuit 1024 that field programmable gate array 102 is built is correct.
Because field programmable gate array (fpga) 102 is a kind of semidefinite inhibition and generation circuit, achievable combination logic function, and
The basic logic unit module of achievable sequential logic function.Value in depositor determines this logic in logical units for storage
Connecting mode between the logic function of unit and each module or between module and i/o, and finally determine fpga and realized
Function, therefore, can be using fpga building sequential control circuit 1024 and iic bus control unit (iic controller)
1022, so, the sequential control circuit 1024 built and iic bus control unit 1022 are just made up of hardware completely, and institute
The iic bus control unit 1022 built does not need internal processor it is not required that supporting software accordingly, therefore with jtag interface
And uart interface compares, more simple and fast.So, the design architecture of whole checking system can just be simplified so that debugging process
More efficient and convenient, the debug time of timing controller is greatly reduced, also improves the motility of debugging.
As can be known from Fig. 1, checking circuit interface 104 can also include power module (i.e. power module) 1048, for for
Display screen 12, checking circuit interface 104 are powered.In addition, checking circuit interface 104 can also include: Low Voltage Differential Signal
Input interface 1044 and Low Voltage Differential Signal output interface (for example, mini-lvds output interface) 1046, are connected to iic bus
Between controller 1022 and display screen 12, by this Low Voltage Differential Signal input interface 1044, the viewdata signal inputting is passed
Transport to sequential control circuit 1024 to process, by this Miniature low voltage differential signal output interface 1046 by sequential control circuit 1024
The driving display signal transmission processing output is to display screen 12.Same to sequential control circuit inputting viewdata signal
When, can be configured by the value of the depositor in the functional module to sequential control circuit for the iic bus debugging interface, thus changing
Become the image procossing mode of sequential control circuit, for example, a two field picture is divided into left and right half screen image to swap display, or
The image of odd column and even column is carried out changing display, in this way, it is possible to realize the integrity authentication scheme of tcon function.Change speech
It, after tentatively putting up sequential control circuit and iic bus control unit, enter in the driveability to sequential control circuit
During row debugging, can input image data signal, and instruct by debugging interface input test, instruct in host computer 10 input test
After (comprising the instruction that depositor is configured), if the display effect of display screen falling flat, can adjust at scene
The sequential control circuit (i.e. adjustment test instruction, reconfigures to the depositor in fpga) that fpga is built, until reach
To Expected Results, thus can the sequential control circuit built of fast verification obtain preferable sequential control circuit.
Specifically, with reference to Fig. 1, in order to increase the bright degree of liquid crystal TV set display, preferably apparent color, it is right to need
The brightness of liquid crystal TV set display carries out gamma correction.These, be required for by carrying out to liquid crystal TV set display
The physical attribute of gamma(display) correct to complete, therefore checking circuit interface 104 can also include: gamma correction circuit
10410, for being corrected to the brightness of display screen.
With reference to Fig. 2, the sequential control circuit 1024 that field programmable gate array 102 is built has multiple functional modules, example
As video processing module, random access memory controller module etc., wherein video processing module may include module of overdriving again
(overdrive), the functional module such as scaler (scaler), data compression decompression, therefore field programmable gate array 102 is built
Iic bus control unit 1022 be additionally operable to by described read-write operation instruction send to sequential control circuit correspond to specify function
The functional module of module's address, to complete to the configuration corresponding to the depositor specifying register address in the corresponding function module,
Wherein it is intended that functional module address and specified register address are parsings, described test instruction obtains.
Described iic bus control unit 1022 is additionally operable to send read-write operation instruction and corresponds to described sequential control circuit
In the functional module of specified functional module address, read in described functional module corresponding to the depositor specifying register address
Value, and export the value of this depositor by iic bus debugging interface, to obtain the work state information of described functional module.
Wherein, each functional module in the sequential control circuit 1024 that field programmable gate array 102 is built passes through system
Bus (for example, apb bus) connects to iic bus control unit 1022.
In other words, tcon chip internal comprises much individual functional modules, " video processing module ", " the internal memory control in such as Fig. 2
Device module processed ", " module n " etc., each module has corresponding one group of depositor, can realize mould by configuring these depositors
The change of block function is it is also possible to read the feedback information that some of which status register obtains module working condition.
As can be seen that the present invention realizes a kind of hardware using few logical block in fpga from above-described embodiment
Iic controller(iic bus control unit), this module can receive the iic data that host computer is sent by debugging acid
Stream, and parsing of the data stream is out executed the read-write operation to certain functional module in sequential control circuit 1024, each function
Module has different address spaces, such as a1 during video processing module corresponding address, and random access memory controller module is correspondingly
Location is a2.
It should be noted that, iic universal serial bus typically has two holding wires, and one is two-way data wire sda, and another is
Clock line scl.Serial data line sda on all each equipment being connected to iic bus is all connected on the sda of bus, each equipment
Clock line scl is connected on the scl of bus, such as in sequential control circuit 1024, the data wire of each functional module is connected to iic
Data wire in bus, the clock of each functional module is all connected to the clock line scl of the data wire in iic bus.Sequencing contro
Each functional module in circuit 1024 passes through system bus, such as apb(advanced with iic bus control unit 1022
Peripheral bus) bus links together, as shown in Figure 2.Apb bus is the amba bus specification released by arm company
One kind, it has also become structure on a kind of popular industrial standard piece.Iic bus control unit 1022 by existing apb bus and when
Each module in sequence control circuit 1024 is connected, and is also based on simplifying the consideration of design, can accelerate debugging progress simultaneously.
Operationally, the test instruction that host computer sends over is parsed by iic controller, translates into and meets
The read-write operation of apb bus timing, thus complete the configuration to the depositor of each functional module in sequential control circuit 1024.Right
For host computer 10, by this iic bus control unit (iic controller) it is possible to each functional module is regarded as not
Same slave device, the different device address of each functional module distribution, functional module internal distribution
register address.Device address and register that host computer 10 is sent by iic controller
Address translates into the address in apb bus address space, when read-write operation being translated as Read-write Catrol in apb bus simultaneously
Sequence.
For example, host computer Debugging interface is communicated with the iic controller within fpga by iic bus, iic
The read write command of the depositor that host computer is sended over by controller parses, when being found according to device address
Corresponding function module in sequence control circuit, finds the correspondence in this corresponding function module according to register address and deposits
Device, thus configure to corresponding registers.
So-called master device refers to the transmission (sending enabling signal) of log-on data, sends clock signal and biography
The equipment of stop signal is sent, in the present embodiment, host computer is master device at the end of sending.By master device
The equipment looked for is referred to as slave device.
Therefore, if only verified to certain functional module in sequential control circuit 1024, by the survey after parsing
Examination instructs the functional module sending to specifying address, if necessary to verify to multiple functional modules simultaneously, will need same
When the address of the plurality of functional module is provided.In this way, it is possible to realize the debugging of individual feature module and multiple functional modules
Combined debugging, and unlike uart interface debugging mode, in independent certain functional module of checking, need built-in process
Device, also will write uart drive software it will be apparent that accelerating debugging speed, and reduces debugging complexity.
Therefore, before tcon chip flow, by the auxiliary based on fpga platform, realize hardware integration inside fpga total
Line traffic control module, adds the checking system of the present invention, can compare true, comprehensively tcon function is verified, and iic
Bus is a kind of simple versabus, only two signals, implements fairly simple.
Next combine the verification method according to the sequential control circuit of the present invention for Fig. 3 explanation.
As shown in figure 3, the verification method of sequential control circuit according to an embodiment of the invention, following walking can be included
Rapid: step 302, build sequential control circuit and iic bus control unit using field programmable gate array;Step 304, uses
The test instruction of iic bus debugging interface receives input is simultaneously transmitted test instruction to iic bus control unit;Step 306, passes through
Iic bus control unit parses to test instruction, generates read-write operation instruction, receives for sequential control circuit and execute, can
To be transmitted the implementing result of sequential control circuit to authentication unit by iic bus debugging interface, to determine field-programmable
Whether the sequential control circuit that gate array is built is correct.
Because field programmable gate array (fpga) is a kind of semidefinite inhibition and generation circuit, achievable combination logic function, may be used again
Realize the basic logic unit module of sequential logic function.Value in depositor determines this logic list in logical units for storage
Connecting mode between the logic function of unit and each module or between module and i/o, and finally determine what fpga was realized
Function, therefore, can build sequential control circuit and iic bus control unit (iic controller), so, institute using fpga
The sequential control circuit built and iic bus control unit are just made up of hardware completely, and the iic bus control unit built is not
Need internal processor it is not required that supporting software accordingly, at the chip checking initial stage, reaching upper computer software being capable of velocity modulation soon
The purpose of examination sequential control circuit, obtains data by the i2c Debugging interface of host computer it is not necessary to cpu executes software, works as tune
Die trial block changes, and only need to carry out slight variations it is not necessary to change debugging software in host computer interface setting, therefore reduce
The complexity of debugging, compared with the jtag interface and uart interface, more simple and fast.Secondly, iic bus is a kind of simple
Versabus, only two signals, implement signal, realize fairly simple, so, just can simplify whole checking system
Design architecture so that debugging process is more efficient and convenient, the debug time of timing controller is greatly reduced, also improves
The motility of debugging.
After tentatively putting up sequential control circuit and iic bus control unit, in the driving to sequential control circuit
When performance is debugged, can input image data signal, and instructed by debugging interface input test, input in host computer 10 and survey
After examination instruction (comprising the instruction that depositor is configured), if the display effect of display screen falling flat, can show
The sequential control circuit (i.e. adjustment test instruction, reconfigures to the depositor in fpga) that field adjustment fpga is built,
Till producing a desired effect, thus can the sequential control circuit built of fast verification obtain preferable sequencing contro
Circuit.
It is preferred that being sent out the instruction of described read-write operation by described iic bus control unit in any of the above-described technical scheme
Deliver in described sequential control circuit and correspond to the functional module specifying functional module address, to complete in described functional module
Corresponding to the configuration of the depositor specifying register address, wherein, described sequential control circuit is made up of n functional module, institute
State the integer that n is more than or equal to 1, described specified functional module address and described specified register address are to parse described test to refer to
Order obtains.Each functional module has corresponding address space, can be easy to position each functional module and in each functional module
Depositor configured, the independent debugging of achievable functional module or the combined debugging of multiple functional module.
It is preferred that being sent out the instruction of described read-write operation by described iic bus control unit in any of the above-described technical scheme
Deliver to and in described sequential control circuit, correspond to the functional module specifying functional module address, right in described functional module to read
Should be in the value of the depositor of specified register address;Export the value of described depositor by described iic bus debugging interface, to obtain
Take the work state information of described functional module.
It is preferred that being connected described n functional module to described using system bus in any of the above-described technical scheme
Iic bus control unit.
It is preferred that being inputted by the Low Voltage Differential Signal in described checking circuit interface in any of the above-described technical scheme
The viewdata signal of input is transmitted and processes to described sequential control circuit by interface, by micro- in described checking circuit interface
Described sequential control circuit is processed the driving display signal transmission of output to display screen by type Low Voltage Differential Signal output interface.?
During checking sequential control circuit, can be by viewdata signal to sequential control circuit, outputing signal to sequential control circuit
By the display effect observing display screen, display screen, can determine whether whether the sequential control circuit currently built is correct, if not just
Really, can be configured by the depositor in the logical block to field programmable gate array for the iic bus debugging interface, thus changing
Become function, complete the debugging to sequential control circuit.
In an embodiment according to the present invention, iic bus control unit is realized it is not necessary to software support completely by hardware, no
Need embedded cpu module, simplify adjustment method, simplified the design of fpga checking system, make the debugging of individual module and many
The combined debugging of individual module is more smooth, reduces debug time.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.