It is KITE in "testadd.hex" which is a fruit line image after assembly of "testadd.asm" Following information can be gotten when hanging on the simulator ("kitesim").
% kitesim testadd.hex Start address=000 ---- acc=0000 ixr=000 sp=000 out=0000 pc=000 c108 ld #0x08 ---- acc=0008 ixr=000 sp=000 out=0000 pc=001 bc00 swp ---- acc=0800 ixr=000 sp=000 out=0000 pc=002 9100 or #0x00 ---- acc=0800 ixr=000 sp=000 out=0000 pc=003 f004 mv sp, acc ---- acc=0800 ixr=000 sp=800 out=0000 pc=004 c800 In 0x00 The omission ---- acc=0037 ixr=7fd sp=800 out=0000 pc=008 cc00 out 0x00 ---- acc=0037 ixr=7fd sp=800 out=0037 pc=009 f800 halt ---- acc=0037 ixr=7fd sp=800 out=0037 pc=00a f009 mv ixr, sp
It is described in the description of "kite_test.v" for the execution result to be able to be output with the format which is the same as this expectation value. When doing a simulation, following log is output in "verilog.log" which is log at the time of the simulation.
The omission ---- acc=0008 ixr=000 sp=000 out=0000 pc=001 bc00 ---- acc=0800 ixr=000 sp=000 out=0000 pc=002 9100 ---- acc=0800 ixr=000 sp=000 out=0000 pc=003 f004 The omission ---- acc=0037 ixr=7fd sp=800 out=0037 pc=009 f800 ---- acc=0037 ixr=7fd sp=800 out=0037 pc=00a f009 The omission
Therefore, it prepares a file in the part which omitted an assembly description from the output of the KITE simulator as the expectation value file, and also it copies only the part to support the expectation value from the "verilog.log" file and it makes beforehand it one file. Later, it compares these two files only.
It is possible if saving output to the screen to the file using the redirection to create the file of the expectation value.
% kitesim testadd.hex > testadd.sim
The execution result of the "diff" command when picking out the file name of the expectation value from "testadd.sim", picking out the execution trace-information of the logic simulator from the "verilog.log" file and saving it as "simout.tmp"
[panther] [1414]% of 4 bits of diff testadd.sim simout.tmp [panther] ~/work/cadence/ of [1413]% of 4 bits of ~/work/cadence/
Above, the description of the KITE-1 microprocessor is completion.
Next, IP of the KITE microprocessor.
Last modified on