A kind of VBIOS adjustment method of special-purpose display controller
Technical field
The present invention relates to special-purpose display controller technical field, specifically the method for a kind of debugging VBIOS that combines at the FPGA of special-purpose display controller Qualify Phase hardware and software.
Background technology
VBIOS (Video Basic Input Output System) is the display control program that a group and display controller are combined closely, and is solidificated among the ROM, becomes the part of video card.Even to this day, every kind of display controller has the special-purpose VBIOS of oneself to support, but all VBIOS support VGA (Video graphics array) standard and VBE (VESA BIOS Extension) standard bar none.The VGA standard is that IBM Corporation in 1987 formulates the video card standard, comprise VGA register standard and VGA BIOS standard, later stage is because the development of display technique, the VGA standard can't satisfy application demand, video electronic is learned the VBIOS funcall interface standard that ANSI VESA (Video Electronics Standards Association) has proposed one group of expansion, be VBE (VESA BIOS Extension), realized compatibility between the various video cards at the software interface level.The VBIOS function comprises the interrupt service routine of video card initialize routine and INT 10H.Operating system or driver are by the basic operation of VIBOS interface to display controller, as adjusting resolution, color depth, refresh rate etc.
The VBIOS design is closely related with the display controller bottom hardware, and the deviser wishes to identify FPGA hardware design mistake and VBIOS design software mistake.But VBIOS designs complicated, and only has software interface standard, and traditional hardware debug method is difficult to identification VBIOS design problem.Simultaneously, the VBIOS debugging faces the problem that display terminal can not show any information, has limited the use of traditional software debugging method, and conventional debugging method is fewer.
In order to solve above-mentioned problems of the prior art, the present invention utilizes the characteristics of VBIOS funcall, has proposed a kind of adjustment method that combines based on the software and hardware of FPGA.
Summary of the invention
The VBIOS adjustment method that the purpose of this invention is to provide a kind of special-purpose display controller, related special-purpose display controller and VBIOS be compatible with VGA standard and VBE standard.The present invention realizes simply, can the parameter that the VBIOS that be concerned about calls be sent to main frame by jtag interface, locates easily VBIOS executing location and executing state.
A kind of VBIOS adjustment method of special-purpose display controller, described debugging enironment comprise the FPGA debug platform of special-purpose display controller of an integrated FPGA, jtag interface, seven segment digital tubes, VBIOS chip and the main frame of accepting sampled data.
A kind of VBIOS adjustment method of special-purpose display controller, its step is as follows:
(1) set up the FPGA engineering of special-purpose display controller at main frame, corresponding and set sampling condition one by one the signal in VBIOS register parameters and the fpga logic design, then logic compiler generates the FPGA configuration file;
(2) the FPGA configuration file downloads to the FPGA debug platform of special-purpose display controller by jtag interface from main frame, and the signal in VBIOS register parameters and the fpga logic design is set up corresponding relation, finishes the FPGA initialization;
(3) the power on FPGA debug platform of rear display controller is started working, and according to sampling condition, main frame reads from the FPGA debug platform by jtag interface and obtains the data that need, and the seven segment digital tubes that is connected with FPGA simultaneously also can show these data;
(4) the VBIOS register parameters value that obtains according to main frame of designer is judged the executing state of VBIOS and to interpretation of result according to parameter value, thus the problem in the VBIOS design of location and solving.
Cardinal principle of the present invention is as follows: the fpga logic project engineering that the designer sets up at main frame, corresponding one by one the signal in VBIOS register parameters and the fpga logic design, by the JTAG technology, to the FPGA initialization, main frame just can be accessed the internal register of FPGA and the VBIOS register parameters of loading by jtag interface.The unified INT 10H function of using of VBIOS funcall is inputted one group of register parameters simultaneously, and the return parameters value realizes various Presentation Functions again.Therefore, the VBIOS register parameters value that the designer obtains according to main frame is easy to VBIOS executing location location, and analyzes the problem of hardware or Software for Design appearance.
The advantage of the VBIOS adjustment method of the special-purpose display controller of the present invention is: (1) this VBIOS adjustment method can correctly be identified the VBIOS practice condition, accurately location VBIOS executing location solves the difficult problem that the traditional hardware adjustment method is difficult to identification VBIOS design problem; (2) face in the situation that display terminal can not show any information in VBIOS debugging, this VBIOS adjustment method still can be obtained the data that need and obtain the VBIOS practice condition, and having broken through the traditional software adjustment method need to have the just operable restriction of demonstration information; (3) this VBIOS adjustment method is simple and convenient, just can obtain the data that need by jtag interface, does not need other debugging acids, has saved expensive expense and time.This VBIOS adjustment method has solved the VBIOS design problem of a special-purpose display controller well, and this special-purpose display controller is working properly at present.
Description of drawings
Fig. 1 VBIOS adjustment method logical organization synoptic diagram;
Fig. 2 VBIOS adjustment method process synoptic diagram.
Embodiment:
Root a tree name Fig. 1, shown in Figure 2
,A kind of VBIOS adjustment method of special-purpose display controller, its step is as follows
:
1. loading parameters and sampling condition
The designer sets up the FPGA engineering of special-purpose display controller at main frame, simultaneously in this FPGA engineering, load specific logic signals, these logical signals are corresponding one by one with register parameters such as the used AX of VBIOS function, BX, CX, DX, ES, DI, set simultaneously sampling condition.Sampling condition is made as INT 10H funcall has occured, and the register parameters such as AX, BX, CX, DX, ES, DI have just had its meaning like this, for lower surface analysis VBIOS ready.After above condition was established, compiling formed the FPGA configuration file to the designer to the fpga logic project engineering.
2. by jtag interface parameter is outputed to the FPGA debug platform of special-purpose display controller
The FPGA configuration file downloads to FPGA by jtag interface, and the signal in VBIOS register parameters and the fpga logic design has been set up corresponding relation, finishes the FPGA initialization.
3. the VBIOS parameter value seven segment digital tubes that outputs to main frame or be connected with FPGA
Main frame reads the data of obtaining needs according to the sampling condition of main frame setting by jtag interface from the FPGA debug platform of special-purpose display controller, and the seven segment digital tubes that is connected with FPGA simultaneously also can show these data.
4. analyze the VBIOS parameter value
Logical design and the VBIOS of special-purpose display controller FPGA design compatible with VGA standard and VBE standard.VGA funcall regulation: AH equals the function number of VGA; AH<13H; Call INT 10H.VBE funcall regulation: AH must equal 4Fh, illustrates to call the VBE function; AL equals the function number of VBE; BL equals subfunction number, also can not have subfunction; Call INT 10H; Rreturn value is all in AX.Be easy to analyze the implementation status of VBIOS according to above regulation.
If sampling condition does not occur, illustrate that the VBIOS function of appointment is not carried out, analyze the VBIOS program and whether jumped out.If sampling condition has occured, called which function from the judgement of the register parameters values such as AX, BX, CX, DX, ES, DI, whether these functions are correctly carried out at last, and whether rreturn value meets the requirements, and from returning AX parameter location VBIOS executing location.If rreturn value AX value is 0, illustrate that this interrupts 10 functions and correctly carries out, if fruit AX value is 1, illustrates and interrupt not correct execution of 10 functions.