3 HiTraining execution
In the HiTraining view,choose kernel combo, Click Start button after config the information. If not choose the kernel, shown as Figure 3-1.
In HiTraining View, supports kernel training, choose one and setting.
Kernel Training:
If the use default value button is selected, File, Result file and Reg File will can't be edited. The browse button will disable, shown as Figure 3-2.
Figure 3-2 Default button is selected. Custom configuration disabled
When the use default value button is selected, the drop-down box below it will be enabled, change the item of the drop-down box, the text behind the drop-down box will load script file in the directory of the tool(Hitool /Resources / HiTraining/ current chip name),the file based on the value of the drop-down box.If the script file exists, the text box displays the absolute path to the script file in the local directory, shown as Figure 3-3.
Figure 3-3 Default button is selected, the default configuration
If the script file is not existed,shown as Figure 3-4.
Figure 3-4 Script file does not exist, the pop-up warning message
Tip:(When the Use default button is checked, the HiTraining folder in Resources folder need in your Hitool product directory, it contains some folder named by the chip name. The chip name folder must contain three files (script file, reg.bin and result.txt) the file name is case-sensitive. )
Click Start button,program will search the folder which is matching the current chip in the HiTraining folder, if found, will load these three files as default value.
If not found,it will show warning, shown as Figure 3-5.
Figure 3-5 The default configuration fails to load, pop-up warning
If use default value button is not checked (the user can config the file by yourself):
To use kernel training before implementation, must pass the following verification:
Script file input box cannot be empty, shown as Figure 3-6.
Figure 3-6 Script file text box is empty, information warning
Script file must exist,shown as Figure 3-7.
Figure 3-7 Script file does not exist, information warning
Reg input file must exist,shown as Figure 3-8.
Figure 3-8 The Reg file does not exist, information warning
Note:
Setup is complete, click the start button, the implementation of the algorithm process is as follows:
Note
When registergroup only defines a register, hereinafter referred to as the Single.
When the registergroup defines a plurality of register, hereinafter referred to as the Multiple.
1 began to read the script file.
2.start watchdog.
3. Executed ko command and start regtool, ko command can setting at the preference,
4. Reading needs to traverse the register save up, recorded as initial value.
5. Treatment of loops, and then recycling processing each loops inside loop.
6. Treatment of loop_level_begin.
Note:if in the course of implementation of boot is not automatically restart, tools will be prompted to manually restart.
7. All of the loop_level of all loops after the completion of the execution, find the merge reg files, processing and print save optimal results. Can refer to the following detailed description.
Note: According to the results of each loop performs a set, each loop have a best value.
Explanation: just as print format reference, perform data should be tool to perform the data subject.
Every time you execute a loop, print description.
such as £º
dqs0 dq0 dq1 dq2 dq3 dq4 dq5 dq6 dq7 result
And then when the single cycle, such as the default dqs 3
7 0 0 0 0 2 2 1 fail |
6 0 0 0 0 2 2 1 ok |
5 0 0 0 0 2 2 1 ok |
4 0 0 0 0 2 2 1 ok |
Execution of Multiple cycle time
3 1 1 1 1 3 3 3 2 ok |
3 2 2 2 2 4 4 4 3 ok |
3 3 3 3 3 5 5 5 4 fail |
To the first fail on the end of the term cycle, take the middle behavior best value
so 4 0 0 0 0 2 2 2 1
Print out the best and default values £º dqs0 dq0 dq1 dq2 dq3 dq4 dq5 dq6 dq7
Default | 3 0 0 0 0 2 2 2 1 |
Best | 4 0 0 0 0 2 2 2 1 |
When the training type is bittraining, also print the following contents, no maximum value, will not print the maximum value in that column
MaxRegister:(register the name specified by the loops)
MaxValue:(The maximum specified by loops register)
The effective combination of values (maximum key register columns and each value of loop)
max | main1 | main2 | |
Loop1: | 0 | 0 | |
Loop2: | 0 | 0 |
The best combination of values of the loops
max | main1 | main2 | |
best: | 0 | 0 | 0 |
DM:0
From the search input Reg file matching the same address to merge, and update the combined value.
Save the results:
Note: the training execution failed or canceled operation, will not save results to results file.
Training right after the success of the implementation, the optimal training save results to a reg.bin file, you can think of the reg.bin file format is a series of
struct regentry {
unsigned int reg_addr; ---- register address
unsigned int value; -------register value
unsigned int delay;
unsigned int attr;
};The structure forms, such as we have rddqs0 and rddqs1 values are set to 4, then the 0x10100b4c register value should be modified for 0x24,
The Reg file format
Struct | Struct | Struct | ..... | Struct |
regentry | regentry | regentry | ..... | Struct |