WO2021075531A1 - トレース回路、半導体装置、トレーサ、トレースシステム - Google Patents

トレース回路、半導体装置、トレーサ、トレースシステム Download PDF

Info

Publication number
WO2021075531A1
WO2021075531A1 PCT/JP2020/039036 JP2020039036W WO2021075531A1 WO 2021075531 A1 WO2021075531 A1 WO 2021075531A1 JP 2020039036 W JP2020039036 W JP 2020039036W WO 2021075531 A1 WO2021075531 A1 WO 2021075531A1
Authority
WO
WIPO (PCT)
Prior art keywords
trace
program counter
destination address
output value
data
Prior art date
Application number
PCT/JP2020/039036
Other languages
English (en)
French (fr)
Inventor
高浩 西山
Original Assignee
ローム株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ローム株式会社 filed Critical ローム株式会社
Priority to CN202080072402.6A priority Critical patent/CN114556306A/zh
Priority to JP2021552457A priority patent/JP7489398B2/ja
Priority to US17/761,713 priority patent/US20220391297A1/en
Publication of WO2021075531A1 publication Critical patent/WO2021075531A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/27Built-in tests
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/10Distribution of clock signals, e.g. skew
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3648Software debugging using additional hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • G06F9/321Program or instruction counter, e.g. incrementing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • G06F9/322Address formation of the next instruction, e.g. by incrementing the instruction counter for non-sequential address
    • G06F9/324Address formation of the next instruction, e.g. by incrementing the instruction counter for non-sequential address using program counter relative addressing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]

Definitions

  • the invention disclosed herein relates to a trace circuit.
  • the reason is to find the cause of the problem that the program is not working as expected, or to investigate the code coverage (whether the test covers all the code) in the test of the program operation. To do.
  • Patent Document 1 and Patent Document 2 can be mentioned.
  • Patent Document 2 since only a part of the information is output to the outside of the LSI when the branch instruction is executed, it is necessary to analyze the branch destination address outside the LSI. Therefore, if the branch destination address cannot be narrowed down to one from the branch destination address candidates, tracing becomes impossible.
  • the invention disclosed in the present specification provides a tracing circuit for simply and completely tracing the read address of the program memory from the outside of the semiconductor device in view of the above problems found by the inventor of the present application.
  • the purpose is.
  • the trace circuit disclosed in the present specification is integrated in a semiconductor device together with a microprocessor equipped with an m-bit program counter, and externally outputs a trace clock and n-bit (where 2 ⁇ n ⁇ m) bit trace data.
  • the trace data when the program counter does not change, the trace data is set as the first output value in synchronization with the trace clock, and when the program counter is incremented, the trace data is synchronized with the trace clock.
  • the trace data is set to the third output value in synchronization with the trace clock, the state machine of the microprocessor is temporarily stopped, and then the data is loaded into the program counter.
  • the branch destination address or the interrupt destination address is divided and output as the trace data (first configuration).
  • the trace circuit having the first configuration becomes the first output value when the program counter does not change, becomes the second output value when the program counter is incremented, and becomes the third output when loaded into the program counter.
  • a status generator that generates a status signal to be a value; when the operation is started when the status signal reaches the third output value and the divided output period of the branch destination address or the interrupt destination address has expired.
  • the status signal is selected as the trace data while the counter is stopped, and a part of the branch destination address or the interrupt destination address is selected as the trace data during the operation of the counter. It is preferable to have a configuration (second configuration) having a selector selected as and;
  • the status generator may monitor the internal control signal of the microprocessor and generate the status signal (third configuration).
  • the trace clock may be configured to be the drive clock of the microprocessor (fourth configuration).
  • the semiconductor device disclosed in the present specification includes a trace circuit having the above-mentioned first to fourth configurations; the instruction code is read from the program memory using the output value of the program counter as a read address, and the instruction code thereof is read. It has a configuration (fifth configuration) in which a microprocessor that decodes and executes an instruction code and; are integrated.
  • the microprocessor may have a pipeline structure (sixth configuration).
  • the tracer disclosed in the present specification is externally attached to the semiconductor device having the fifth or sixth configuration, monitors the trace data in synchronization with the trace clock, and simulates the program counter. By doing so, the configuration is such that the trace result of the read address is output (seventh configuration).
  • the tracer having the seventh configuration includes a simulated program counter; the simulated program counter is invariant when the trace data is the first output value, and the trace data is the second output value when the trace data is the second output value.
  • a decoder that increments the mock program counter and sequentially stores the branch destination address or the interrupt destination address, which is subsequently divided and input when the trace data is the third output value, in the mock program counter;
  • a latch that takes in the output value of the simulated program counter as a definite value in synchronization with the trace clock except for the split input period of the branch destination address or the interrupt destination address; It is preferable to have a configuration (eighth configuration) having a trace memory to be stored as a result and;
  • the trace system disclosed in the present specification includes a semiconductor device having the fifth or sixth configuration; a tracer having the seventh or eighth configuration; and displaying and storing the trace results. It is configured to have a host for analysis and a; (9th configuration).
  • the trace program disclosed in the present specification is executed on a computer, and the input unit, display unit, storage unit, and arithmetic unit of the computer are input, display means, and display means of the trace result, respectively.
  • the computer By operating as a storage means and an analysis means, the computer functions as the host in the trace system having the ninth configuration (tenth configuration).
  • Diagram showing the overall configuration of the trace system The figure which shows one configuration example of LSI
  • the figure which shows an example of a trace operation (LSI) Diagram showing a configuration example of a tracer
  • LSI trace operation
  • trace operation (tracer) Diagram showing an example of tracing operation (entire system)
  • program code Diagram showing split input operation of branch destination address Diagram showing the execution result of the program code
  • FIG. 1 is a diagram showing an overall configuration of a trace system.
  • the trace system X of this configuration example includes an LSI 100, a tracer 200, and a host 300.
  • the LSI 100 is an example of a semiconductor device equipped with a CPU 110.
  • the tracer 200 is an example of an adapter (debugging tool) externally attached to the LSI 100.
  • an adapter debugging tool
  • the trace result trace_result is acquired and output to the host 300 (details will be described later).
  • USB universal serial bus
  • the host 300 receives the input of the trace result trace_result from the tracer 200, and displays, stores, analyzes, and the like.
  • a trace program 310 to be executed on the personal computer is prepared, and an input unit (USB port, etc.) and a display unit (LCD [liquid crystal display]) of the personal computer are prepared.
  • Etc. storage unit
  • HDD hard disc drive
  • SSD solid state drive
  • arithmetic unit CPU, DSP [digital signal processor], etc.
  • the tracer 200 and the trace program 310 are provided together with the LSI 100.
  • FIG. 2 is a diagram showing a configuration example of the LSI 100.
  • the trace circuit 120 is integrated together with the CPU 110 described above.
  • the CPU 110 is an example of a microprocessor that performs a program operation in synchronization with the drive clock CLK (for example, 100 MHz), and includes a state machine 111, a decoding / execution unit 112, an increment unit 113, a branch destination address storage unit 114, and the like. It has a selector 115, a program counter (PC [program counter]) 116, and a program memory 117.
  • CLK drive clock
  • the state machine 111 is a 3-bit sequential circuit (logic circuit) that controls the state transition of the CPU 110, and can take up to eight operating state states (FETCH, WAIT_KEEP, TRACE, PRE_FETCH, etc.).
  • the TRACE state is one of the operating state states newly introduced with the implementation of the trace circuit 120. Although the details will be described later, the state machine 111 is suspended in the TRACE state while the trace circuit 120 divides and outputs the branch destination address or the interrupt destination address loaded in the program counter 116 as trace data trace_data.
  • the decoding / execution unit 112 reads an instruction code from the program memory 117 with the output value pc_reg of the program counter 116 as a read address, decodes the instruction code, and executes the instruction code.
  • the increment unit 113 increases the output value pc_reg of the program counter 116 by a predetermined increment value and outputs it.
  • the branch destination address storage unit 114 holds the branch destination address or the interrupt destination address output from the decoding / execution unit 112 when the program counter 116 is loaded.
  • the selector 115 programs the output of either the increment unit 113 or the branch destination address storage unit 114 in response to the internal control signals (for example, the PC load instruction pc_load and the PC increment instruction pc_inc) output from the decode / execute unit 112. Selectively output to the counter 116.
  • the internal control signals for example, the PC load instruction pc_load and the PC increment instruction pc_inc
  • the output of the increment unit 113 is selectively output to the program counter 116.
  • the program counter 116 is incremented in parallel with the decoding / execution of the instruction code.
  • the program counter 116 is incremented after decoding / executing the instruction code.
  • the output of the branch destination address storage unit 114 is selectively output to the program counter 116. Therefore, for example, when any of the interrupt instructions NMI [non-maskable interrupt] and IRQ [interrupt request], the jump instruction JMP (absolute / relative), the subroutine call instruction CALL, and the return instructions RET and RETI are executed.
  • the output value pc_reg of the program counter 116 is used as the read address of the program memory 117.
  • the program memory 117 is a storage means for storing the instruction code of the CPU 110.
  • the instruction code read according to the read address (pc_reg) is decoded / executed by the above-mentioned decoding / execution unit 112.
  • the drive clock CLK of the CPU 110 may be used as it is.
  • the status generation unit 121 operates in synchronization with the trace clock trace_clk, monitors the internal control signals of the CPU 110 (for example, the PC load instruction pc_load and the PC increment instruction pc_inc), and generates a 2-bit status signal status.
  • the fourth output value "3d (11b)" of the status signal status may be set as a reserve value (unused value).
  • the counter 122 is a 4-bit pulse counter.
  • the counter 122 starts the pulse counting operation of the trace clock trace_clk when the status signal status becomes the third output value “2d (10b)”, that is, when the program counter 116 is loaded. Further, the counter 122 receives when the count value trace_count reaches a predetermined value (for example, 8d (1000b)), that is, when the split output period (details will be described later) of the branch destination address or the interrupt destination address has expired.
  • the pulse count operation is stopped and the count value trace_count is reset to 0.
  • the selector 123 selects one of the status signal status and the output value pc_reg (of which the maximum n bits) of the program counter 116 according to the operating state of the counter 122 (whether or not the count value trace_count is 0), and trace data. Output as trace_data.
  • the state machine 111 of the CPU 110 is set to the paused state (TRACE state) while the counter 122 is operating (trace_count ⁇ 0). Is desirable.
  • the trace data trace_data is set to the first output value "0d (00b)" in synchronization with the trace clock trace_clk when the program counter 116 does not change due to the extremely simple circuit configuration.
  • the trace data trace_data is set to the second output value "1d (01b)" in synchronization with the trace clock trace_clk, and when loading to the program counter 116, the trace data trace_data is set to the third in synchronization with the trace clock trace_clk.
  • FIG. 3 is a flowchart showing an example of a trace operation in the LSI 100 (particularly the trace circuit 120).
  • step S12 If no determination is made in step S12, it is necessary to inform the tracer 200 that the program counter 116 is invariant. Therefore, in step S13, the trace data trace_data is set to the first output value "0d (00b)". After that, the flow is returned to step S11.
  • step S11 determines whether a yes determination is made in step S11, it is necessary to inform the tracer 200 that the program counter 116 has been incremented. Therefore, in step S14, the trace data trace_data is set to the second output value "1d (01b)". After that, the flow is returned to step S11.
  • step S12 when a yes judgment is made in step S12, it is necessary to inform the tracer 200 that the program counter 116 has been loaded. Therefore, in step S15, the trace data trace_data is set to the third output value "2d (10b)".
  • step S16 the pulse count operation of the trace clock trace_clk by the counter 122 is started, and the state machine 111 of the CPU 110 is put into the paused state (TRACE state).
  • step S17 a part of the branch destination address or the interrupt destination address is divided and output as trace data trace_data in synchronization with the trace clock trace_clk.
  • step S18 it is determined whether or not the count value trace_count of the counter 122 has reached a predetermined value, that is, whether or not the count of the divided output period has expired.
  • step S18 If no determination is made in step S18, the flow is returned to step S17, and the split output of the branch destination address or the interrupt destination address is continued. On the other hand, if a yes judgment is made, the flow proceeds to step S19.
  • step S19 the count value trace_count of the counter 122 is reset to 0, and the state machine 111 of the CPU 110 is returned from the paused state (TRACE state). After that, the flow is returned to step S11, and the above series of operations is repeated.
  • FIG. 4 is a diagram showing a configuration example of the tracer 200.
  • the tracer 200 of this configuration example includes a decoder 201, an increment unit 202, a selector 203, a simulated program counter 204, a latch 205, and a trace memory 206.
  • the decoder 201 monitors the trace data trace_data in synchronization with the trace clock trace_clk, and controls each part of the tracer 200 (selector 203, latch 205, etc.).
  • the decoder 201 makes the simulated program counter 204 invariant when the trace data trace_data is the first output value "0d (00b)", and the trace data trace_data is the second output value "1d (01b)".
  • the mock program counter 204 is incremented, and when the trace data trace_data is the third output value "2d (10b)", the branch destination address or the interrupt destination address which is subsequently divided and input is sequentially input to the mock program counter 204.
  • the selector 203 is controlled so as to be stored.
  • the decoder 201 generates a fixed value fetch instruction signal fetch_inst based on the monitoring result of the trace data trace_data, and determines whether or not the output value pc_count of the simulated program counter 204 should be fetched by the latch 205 as the simulated PC fixed value dump_pc. Control.
  • the increment unit 202 increases the output value pc_count of the simulated program counter 204 by a predetermined increment value and outputs it.
  • the selector 203 selects and outputs one of the trace data trace_data, the output value of the increment unit 113, and the output value pc_count of the simulated program counter 204 to the simulated program counter 204.
  • the output value pc_count of the simulated program counter 204 is selected as the simulated program counter 204 in order to make the simulated program counter 204 invariant. It is output.
  • the simulated program counter 204 may be immutable by prohibiting the fetch operation of the simulated program counter 204.
  • the output value of the increment unit 113 is selectively output to the simulated program counter 204 in order to increment the simulated program counter 204.
  • the trace trace_data is the third output value "2d (10b)"
  • the trace trace_data is stored in the simulated program counter 204 in order to sequentially store the branch destination address or the interrupt destination address to be input separately thereafter. Is selected and output to the simulated program counter 204.
  • the trace memory 206 stores the simulated PC fixed value dump_pc that is sequentially taken into the latch 205 as the trace result trace_result.
  • the output operation of the trace result trace_result for example, it may be output at any time in response to a request from the host 300, or it may be output periodically every time a certain amount is buffered.
  • the configuration is such that the program counter 116 of the CPU 110 is simulated by using the trace memory, it is not necessary to mount the trace memory on the LSI 100. Therefore, the program operation (read address) of the CPU 110 can be easily and completely traced with a small number of pins without increasing the overhead of the LSI 100.
  • FIG. 5 is a flowchart showing an example of the tracing operation in the tracer 200.
  • the trace operation starts, in step S21, the output value pc_count of the simulated program counter 204 is first initialized.
  • the output value pc_reg of the program counter 116 usually starts from 0, so the output value pc_count of the simulated program counter 204 may also be initialized to 0.
  • the program operation may be temporarily broken at the address where the tracing is to be started, and the trace data may be recorded after the program operation is restarted. Therefore, the output of the simulated program counter 204 is output.
  • the value pc_count may be initialized to the address at the time of the break.
  • step S22 it is determined whether or not the trace data trace_data input from the LSI 100 has the second output value "1d (01b)".
  • step S23 it is determined whether or not the trace data trace_data input from the LSI 100 has the second output value "1d (01b)".
  • step S23 it is determined whether or not the trace data trace_data input from the LSI 100 is the third output value "2d (10b)".
  • step S24 it is determined whether or not the trace data trace_data input from the LSI 100 is the third output value "2d (10b)".
  • step S23 If no determination is made in step S23, it is considered that the trace data trace_data input from the LSI 100 is the first output value "0d (00b)". Therefore, in step S24, the flow is returned to step S22 after the simulated program counter 204 is made immutable.
  • step S22 if a yes determination is made in step S22, the flow is returned to step S22 after the simulated program counter 204 is incremented in step S25.
  • step S23 If a yes determination is made in step S23, it is necessary to load the branch destination address or the interrupt destination address into the simulated program counter 204. Therefore, in steps S26 and S27, the branch destination address or the interrupt destination address is divided and input.
  • step S26 a part (2 bits) of the branch destination address or the interrupt destination address that is dividedly input as the trace data trace_data is stored in the corresponding bit of the simulated program counter 204.
  • step S27 whether or not all the bit values of the branch destination address or the interrupt destination address are stored in the simulated program counter 204, that is, whether or not the division input of the branch destination address or the interrupt destination address is completed. Is determined.
  • step S27 If no determination is made in step S27, the flow is returned to step S26, and the split input of the branch destination address or the interrupt destination address is continued. On the other hand, if a yes determination is made, the flow proceeds to step S28.
  • step S28 the output value pc_count of the simulated program counter 204 is fixed as the simulated PC fixed value dump_pc. After that, the flow is returned to step S22, and the above series of operations is repeated.
  • FIG. 6 is a timing chart showing a specific example of the trace operation in the entire trace system X. From the top, the PC load instruction pc_load, the PC increment instruction pc_inc, the output value pc_reg of the program counter 116, the trace clock trace_clk, and the trace data. The trace_data, the count value trace_count of the counter 122, the operating state state of the state machine 111, the output value pc_count of the simulated program counter 204, the fixed value fetch instruction signal fetch_inst, and the simulated PC fixed value dump_pc are described.
  • FIG. 6 assumes a case where the CPU 110 has a three-stage pipeline structure. That is, in the CPU 110, the signal processing for one instruction code is decomposed into three unit signal processing (fetch (F), decode (D), execution (E)), and each of them is independently processed in parallel at the same time. ..
  • the number of stages of the pipeline structure may be two stages or four or more stages.
  • the CPU 110 does not have to have a pipeline structure.
  • the CPU 110 is an 8-bit CPU and the instruction code is for 16 bits.
  • the number of bits of the CPU 110 and the number of bits of the instruction code are not limited to this.
  • FIG. 7 is a diagram showing an example (partial excerpt) of the program code provided for the trace operation of FIG.
  • various instructions JMPC, HLT, STR, LDR, SDR, CALL, RET, OR, etc.
  • the increment value of the program counter 116 is "+2" because the CPU 110 is an 8-bit CPU and the instruction code is for 16 bits, so that the read address of the program memory 117 is incremented by 2 bytes. .. In this way, the increment value of the program counter 116 is determined according to the number of bits of the CPU 110 and the number of bits of the instruction code.
  • the CPU 110 has a three-stage pipeline structure. Therefore, for example, the LDR instruction at address 0x000C fetched at time t1 is decoded at time t2 and executed at time t3. The same applies to other commands as described above. However, due to the execution of a branch instruction or an interrupt instruction, an instruction that has been fetched or decoded in parallel may be discarded without being executed. Of course, this does not apply to CPUs that do not have a pipeline structure and CPUs that have a large number of pipeline stages.
  • the output value pc_count of the simulated program counter 204 is incremented by "+2" one clock later than the output value pc_reg of the program counter 116 (0A ⁇ 0C ⁇ 0E ⁇ 10 ⁇ 12 ⁇ 14).
  • fetch_inst "H”. Therefore, the simulated PC fixed value dump_pc is incremented by "+2" one clock later than the output value pc_count of the simulated program counter 204 (08 ⁇ 0A ⁇ 0C ⁇ 0E ⁇ 10 ⁇ 12).
  • the destination address 0x004C is divided and output as trace data trace_data by 2 bits (see the hatch area in the figure).
  • the operating state state of the state machine 111 is set to the TRACE state (paused state).
  • the mock program counter 204 sequentially stores the branch destination address 0x004C, which is divided and input by 2 bits as trace data trace_data.
  • FIG. 8 is a diagram showing the split input operation of the branch destination address, and shows the transitions of the count value trace_counter of the counter 122, the output value pc_counter of the simulated program counter 204, and the trace data trace_data.
  • trace_counter "3"
  • pc_counter "0000 0000 0000 1100b (0x000C)" (see time t10 in FIG. 6).
  • trace_counter "4"
  • pc_counter "0000 0000 0100 1100b (0x004C)" (see time t11 in FIG. 6).
  • trace_counter "8"
  • pc_counter "0000 0000 0100 1100b (0x004C)" (see time t15 in FIG. 6).
  • the 16-bit branch destination address 0x004C is divided and input to the simulated program counter 204 by dividing it into 8 times by 2 bits each.
  • the simulated PC fixed value dump_pc is incremented by "+2" one clock later than the output value pc_count of the simulated program counter 204 (4C ⁇ 4E ⁇ ).
  • FIG. 9 is a diagram showing the execution result of the program code (FIG. 7). As shown in this figure, the CPU 110 executes the instruction code of each address in the order of... ⁇ 0x0008 ⁇ 0x000A ⁇ 0x000C ⁇ 0x000E ⁇ 0x0010 ⁇ 0x0012 ⁇ 0x004C ⁇ 0x004E ⁇ 0x0050 ⁇ ....
  • the simulated PC fixed value dump_pc changes in the order of ... ⁇ 0x0008 ⁇ 0x000A ⁇ 0x000C ⁇ 0x000E ⁇ 0x0010 ⁇ 0x0012 ⁇ 0x004C ⁇ 0x004E ⁇ 0x0050 ⁇ ... I will go. That is, the simulated PC fixed value dump_pc obtained by the tracer 200 completely matches the execution result of the above-mentioned program code.
  • the invention disclosed in the present specification can be used, for example, for debugging a microprocessor implemented in various information processing devices (smartphones, game devices, car navigation systems, etc.).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

トレース回路は、mビットのプログラムカウンタを備えたマイクロプロセッサとともに半導体装置に集積化され、トレースクロックとnビット(ただし2≦n≦m)ビットのトレースデータを外部出力する。トレース回路は、前記プログラムカウンタの不変時には、前記トレースクロックに同期して前記トレースデータを第1出力値とし、前記プログラムカウンタのインクリメント時には、前記トレースクロックに同期して前記トレースデータを第2出力値とし、前記プログラムカウンタへのロード時には、前記トレースクロックに同期して前記トレースデータを第3出力値とし、前記マイクロプロセッサのステートマシンを一時停止した上で、前記プログラムカウンタにロードされた分岐先アドレス又は割込先アドレスを前記トレースデータとして分割出力する。

Description

トレース回路、半導体装置、トレーサ、トレースシステム
 本明細書中に開示されている発明は、トレース回路に関する。
 プログラム動作を行うマイクロプロセッサ(CPU[central processing unit]等)が搭載されているLSIにおいて、LSIの外部からプログラム動作をトレースしたい、すなわち、プログラムがどのように動いたかを知りたい、という要求がある。
 その理由は、思ったようにプログラムが動いていない不具合の原因を探るためであったり、プログラム動作のテストにおけるコードカバレッジ(全てのコードを網羅したテストとなっているか)を調査するためであったりする。
 上記の要求に応えるためには、CPUがプログラムメモリ上の命令コードをどのように読み込んでいったかを知る、言い換えれば、CPU内部におけるプログラムメモリのリードアドレスをトレースする必要がある。
 なお、上記に関連する従来技術の一例としては、特許文献1や特許文献2を挙げることができる。
特許第2727947号明細書 特許第3775462号明細書
 しかしながら、特許文献1では、LSIの内部にトレース記憶手段(トレースメモリ)が必要となる。若しくは、LSIの外部にアドレスバス全てを出力する必要がある。
 また、特許文献2では、分岐命令の実行時に一部の情報しかLSIの外部に出力されないので、LSIの外部で分岐先アドレスの解析が必要になる。そのため、分岐先アドレス候補の中から分岐先アドレスを一つに絞れない場合、トレースが不可能となってしまう。
 本明細書中に開示されている発明は、本願の発明者により見出された上記課題に鑑み、半導体装置の外部からプログラムメモリのリードアドレスを簡易かつ完全にトレースするためのトレース回路を提供することを目的とする。
 本明細書中に開示されているトレース回路は、mビットのプログラムカウンタを備えたマイクロプロセッサとともに半導体装置に集積化され、トレースクロックとnビット(ただし2≦n≦m)ビットのトレースデータを外部出力するトレース回路であって、前記プログラムカウンタの不変時には、前記トレースクロックに同期して前記トレースデータを第1出力値とし、前記プログラムカウンタのインクリメント時には、前記トレースクロックに同期して前記トレースデータを第2出力値とし、前記プログラムカウンタへのロード時には、前記トレースクロックに同期して前記トレースデータを第3出力値とし、前記マイクロプロセッサのステートマシンを一時停止した上で、前記プログラムカウンタにロードされた分岐先アドレス又は割込先アドレスを前記トレースデータとして分割出力する構成(第1の構成)とされている。
 なお、上記第1の構成から成るトレース回路は、前記プログラムカウンタの不変時に前記第1出力値となり、前記プログラムカウンタのインクリメント時に前記第2出力値となり、前記プログラムカウンタへのロード時に前記第3出力値となるステータス信号を生成するステータス生成部と;前記ステータス信号が前記第3出力値となったときに動作を開始し、前記分岐先アドレス又は前記割込先アドレスの分割出力期間が満了したときに動作を停止するカウンタと;前記カウンタの停止中には前記ステータス信号を前記トレースデータとして選択し、前記カウンタの動作中には前記分岐先アドレス又は前記割込先アドレスの一部を前記トレースデータとして選択するセレクタと;を有する構成(第2の構成)にするとよい。
 また、上記第2の構成から成るトレース回路において、前記ステータス生成部は、前記マイクロプロセッサの内部制御信号を監視して前記ステータス信号を生成する構成(第3の構成)にするとよい。
 また、第1~第3いずれかの構成から成るトレース回路において、前記トレースクロックは、前記マイクロプロセッサの駆動クロックである構成(第4の構成)にするとよい。
 また、本明細書中に開示されている半導体装置は、上記第1~第4いずれかの構成から成るトレース回路と;前記プログラムカウンタの出力値をリードアドレスとしてプログラムメモリから命令コードを読み出し、その命令コードをデコード及び実行するマイクロプロセッサと;を集積化して成る構成(第5の構成)とされている。
 なお、上記第5の構成から成る半導体装置において、前記マイクロプロセッサは、パイプライン構造を持つ構成(第6の構成)にするとよい。
 また、本明細書中に開示されているトレーサは、上記第5または第6の構成から成る半導体装置に外付けされ、前記トレースクロックに同期して前記トレースデータを監視し、前記プログラムカウンタを模擬することにより、前記リードアドレスのトレース結果を出力する構成(第7の構成)とされている。
 なお、上記第7の構成から成るトレーサは、模擬プログラムカウンタと;前記トレースデータが前記第1出力値であるときには前記模擬プログラムカウンタを不変とし、前記トレースデータが前記第2出力値であるときには前記模擬プログラムカウンタをインクリメントし、前記トレースデータが前記第3出力値であるときにはこれに引き続いて分割入力される前記分岐先アドレス又は前記割込先アドレスを前記模擬プログラムカウンタに順次格納させるデコーダと;前記分岐先アドレス又は前記割込先アドレスの分割入力期間を除き、前記トレースクロックに同期して前記模擬プログラムカウンタの出力値を確定値として取り込むラッチと;前記ラッチに順次取り込まれる前記確定値を前記トレース結果として格納するトレースメモリと;を有する構成(第8の構成)にするとよい。
 また、本明細書中に開示されているトレースシステムは、上記第5または第6の構成から成る半導体装置と;上記第7または第8の構成から成るトレーサと;前記トレース結果の表示、記憶、及び、解析を行うホストと;を有する構成(第9の構成)とされている。
 さらに、本明細書中に開示されているトレースプログラムは、コンピュータ上で実行され、前記コンピュータの入力部、表示部、記憶部、及び、演算部をそれぞれ、前記トレース結果の入力手段、表示手段、記憶手段、及び、解析手段として動作させることにより、上記第9の構成から成るトレースシステムにおける前記ホストとして前記コンピュータを機能させる構成(第10の構成)とされている。
 本明細書中に開示されているトレース回路によれば、半導体装置の外部からプログラムメモリのリードアドレスを簡易かつ完全にトレースすることが可能となる。
トレースシステムの全体構成を示す図 LSIの一構成例を示す図 トレース動作(LSI)の一例を示す図 トレーサの一構成例を示す図 トレース動作(トレーサ)の一例を示す図 トレース動作(システム全体)の一例を示す図 プログラムコードの一例を示す図 分岐先アドレスの分割入力動作を示す図 プログラムコードの実行結果を示す図
<トレースシステム>
 図1は、トレースシステムの全体構成を示す図である。本構成例のトレースシステムXは、LSI100と、トレーサ200と、ホスト300と、を有する。
 LSI100は、CPU110を搭載する半導体装置の一例である。なお、LSI100は、外部からCPU110のプログラム動作(=プログラムメモリのリードアドレス)を簡易かつ完全にトレースするために、1本のトレースクロックtrace_clkとこれに同期したnビット(例えばn=2)のトレースデータtrace_dataをトレーサ200に外部出力する機能を備えている(詳細は後述)。
 トレーサ200は、LSI100に外付けされるアダプタ(デバッグツール)の一例であり、トレースクロックtrace_clkに同期してトレースデータtrace_dataを監視し、CPU110内部のプログラムカウンタを模擬することにより、上記したリードアドレスのトレース結果trace_resultを取得してホスト300に出力する(詳細は後述)。なお、トレーサ200とホスト300との通信手段としては、USB[universal serial bus]などを好適に用いることができる。
 ホスト300は、トレーサ200からトレース結果trace_resultの入力を受け付けて、その表示、記憶、及び、解析などを行う。例えば、パーソナルコンピュータをホスト300として用いる場合には、当該パーソナルコンピュータ上で実行されるトレースプログラム310を用意しておき、パーソナルコンピュータの入力部(USBポートなど)、表示部(LCD[liquid crystal display]など)、記憶部(HDD[hard disc drive]、SSD[solid state drive]など)、及び、演算部(CPU、DSP[digital signal processor]など)を、それぞれ、トレース結果trace_resultの入力手段、表示手段、記憶手段、及び、解析手段として機能させるとよい。
 なお、上記のトレーサ200及びトレースプログラム310は、LSI100とともに提供されることが望ましい。
<LSI>
 図2は、LSI100の一構成例を示す図である。本構成例のLSI100には、先出のCPU110とともに、トレース回路120が集積化されている。
 CPU110は、駆動クロックCLK(例えば100MHz)に同期してプログラム動作を行うマイクロプロセッサの一例であり、ステートマシン111と、デコード/実行部112と、インクリメント部113と、分岐先アドレス格納部114と、セレクタ115と、プログラムカウンタ(PC[program counter])116と、プログラムメモリ117と、を有する。
 ステートマシン111は、CPU110の状態遷移を司る3ビットの順序回路(論理回路)であり、最大8通りの動作状態state(FETCH、WAIT_KEEP、TRACE、PRE_FETCHなど)を取り得る。TRACEステートは、トレース回路120の実装に伴い新規導入された動作状態stateの一つである。詳細は後述するが、プログラムカウンタ116にロードされた分岐先アドレス又は割込先アドレスをトレース回路120がトレースデータtrace_dataとして分割出力している間、ステートマシン111は、TRACEステートで一時停止される。
 デコード/実行部112は、プログラムカウンタ116の出力値pc_regをリードアドレスとしてプログラムメモリ117から命令コードを読み出し、その命令コードをデコードして実行する。
 インクリメント部113は、プログラムカウンタ116の出力値pc_regを所定のインクリメント値だけ増やして出力する。
 分岐先アドレス格納部114は、プログラムカウンタ116へのロード時において、デコード/実行部112から出力される分岐先アドレス又は割込先アドレスを保持する。
 セレクタ115は、デコード/実行部112から出力される内部制御信号(例えば、PCロード命令pc_loadとPCインクリメント命令pc_inc)に応じて、インクリメント部113及び分岐先アドレス格納部114いずれか一方の出力をプログラムカウンタ116に選択出力する。
 例えば、pc_inc=”H”(=PCインクリメント時の論理レベル)であるときには、インクリメント部113の出力がプログラムカウンタ116に選択出力される。その結果、CPU110がパイプライン構造を持つ場合には、命令コードのデコード/実行と並行してプログラムカウンタ116がインクリメントされる。若しくは、CPU110がパイプライン構造を持たない場合には、命令コードのデコード/実行後にプログラムカウンタ116がインクリメントされる。
 一方、pc_load=”H”(=PCロード時の論理レベル)であるときには、分岐先アドレス格納部114の出力がプログラムカウンタ116に選択出力される。従って、例えば割込命令NMI[non-maskable interrupt]及びIRQ[interrupt request]、ジャンプ命令JMP(絶対/相対)、サブルーチンコール命令CALL、並びに、リターン命令RET及びRETIのいずれかが実行されたことにより、pc_load=”H”となった場合には、プログラムカウンタ116に分岐先アドレス又は割込先アドレスがロードされる。
 プログラムカウンタ116は、駆動クロックCLKに同期して動作するmビット(例えばm=16)のレジスタである。なお、プログラムカウンタ116の出力値pc_regは、プログラムメモリ117のリードアドレスとして用いられる。
 プログラムメモリ117は、CPU110の命令コードを格納する記憶手段である。なお、リードアドレス(pc_reg)に応じて読み出された命令コードは、先出のデコード/実行部112でデコード/実行される。
 トレース回路120は、1本のトレースクロックtrace_clkとこれに同期したnビット(ただし2≦n≦m、例えばn=2)のトレースデータtrace_dataをトレーサ200に外部出力する新規な機能ブロックであり、ステータス生成部121と、カウンタ122と、セレクタ123と、を有する。
 なお、上記のトレースクロックtrace_clkとしては、CPU110の駆動クロックCLKをそのまま用いればよい。
 ステータス生成部121は、トレースクロックtrace_clkに同期して動作し、CPU110の内部制御信号(例えばPCロード命令pc_loadとPCインクリメント命令pc_inc)を監視して2ビットのステータス信号statusを生成する。
 より具体的に述べると、ステータス信号statusは、プログラムカウンタ116の不変時(pc_load=”L”かつpc_inc=”L”)に第1出力値「0d(00b)」となり、プログラムカウンタ116のインクリメント時(pc_inc=”H”)に第2出力値「1d(01b)」となり、プログラムカウンタ116へのロード時(pc_load=”H”)に第3出力値「2d(10b)」となる。ステータス信号statusの第4出力値「3d(11b)」については、リザーブ値(未使用値)としておけばよい。
 カウンタ122は、4ビットのパルスカウンタである。カウンタ122は、ステータス信号statusが第3出力値「2d(10b)」となったとき、すなわち、プログラムカウンタ116へのロードが発生したときに、トレースクロックtrace_clkのパルスカウント動作を開始する。また、カウンタ122は、そのカウント値trace_countが所定値(例えば8d(1000b))に達したとき、すなわち、分岐先アドレス又は割込先アドレスの分割出力期間(詳細は後述)が満了したときに、パルスカウント動作を停止してカウント値trace_countを0にリセットする。
 セレクタ123は、カウンタ122の動作状態(カウント値trace_countが0であるか否か)に応じて、ステータス信号statusとプログラムカウンタ116の出力値pc_reg(そのうち最大nビット)の一方を選択し、トレースデータtrace_dataとして出力する。
 より具体的に述べると、カウンタ122の停止中(trace_count=0)には、ステータス信号statusがトレースデータtrace_dataとして出力される。一方、カウンタ122の動作中(trace_count≠0)には、プログラムカウンタ116の出力値pc_reg(=分岐先アドレス又は割込先アドレスの一部)がトレースデータtrace_dataとして順次出力される。
 なお、トレースデータtrace_dataとして分岐先アドレス又は割込先アドレスを完全に出力させるためには、カウンタ122の動作中(trace_count≠0)において、CPU110のステートマシン111を一時停止状態(TRACEステート)とすることが望ましい。
 上記の構成から成るトレース回路120であれば、極めて簡易な回路構成により、プログラムカウンタ116の不変時には、トレースクロックtrace_clkに同期してトレースデータtrace_dataを第1出力値「0d(00b)」とし、プログラムカウンタ116のインクリメント時には、トレースクロックtrace_clkに同期してトレースデータtrace_dataを第2出力値「1d(01b)」とし、プログラムカウンタ116へのロード時には、トレースクロックtrace_clkに同期してトレースデータtrace_dataを第3出力値「2d(10b)」とし、CPU110のステートマシン111を一時停止させた上で、プログラムカウンタ116にロードされた分岐先アドレス又は割込先アドレスをトレースデータtrace_dataとして分割出力することができる。以下、フローチャートを参照しながら詳述する。
<トレース動作(LSI側)>
 図3は、LSI100(特にトレース回路120)におけるトレース動作の一例を示すフローチャートである。トレース動作が開始すると、ステップS11では、プログラムカウンタ116がインクリメントされたか否か(pc_inc=”H”であるか否か)の判定が行われる。ここで、ノー判定が下された場合には、フローがステップS12に進み、イエス判定が下された場合には、フローがステップS14に進む。
 ステップS11でノー判定が下された場合、ステップS12では、プログラムカウンタ116が変更(分岐又は割込)されたか否か(pc_load=”H”であるか否か)の判定が行われる。ここで、ノー判定が下された場合には、フローがステップS13に進み、イエス判定が下された場合には、フローがステップS15に進む。
 ステップS12でノー判定が下された場合には、プログラムカウンタ116が不変であることをトレーサ200に伝える必要がある。そこで、ステップS13では、トレースデータtrace_dataが第1出力値「0d(00b)」とされる。その後、フローは、ステップS11に戻される。
 一方、ステップS11でイエス判定が下された場合には、プログラムカウンタ116がインクリメントされたことをトレーサ200に伝える必要がある。そこで、ステップS14では、トレースデータtrace_dataが第2出力値「1d(01b)」とされる。その後、フローは、ステップS11に戻される。
 また、ステップS12でイエス判定が下された場合には、プログラムカウンタ116へのロードが発生したことをトレーサ200に伝える必要がある。そこで、ステップS15では、トレースデータtrace_dataが第3出力値「2d(10b)」とされる。
 さらに、プログラムカウンタ116へのロード時には、分岐先アドレス又は割込先アドレスをトレーサ200に伝える必要がある。そこで、続くステップS16~S18では、分岐先アドレス又は割込先アドレスの分割出力が行われる。
 具体的に述べると、まずステップS16では、カウンタ122によるトレースクロックtrace_clkのパルスカウント動作が開始されるとともに、CPU110のステートマシン111が一時停止状態(TRACEステート)とされる。
 次に、ステップS17では、トレースクロックtrace_clkに同期して、分岐先アドレス又は割込先アドレスの一部がトレースデータtrace_dataとして分割出力される。
 次に、ステップS18では、カウンタ122のカウント値trace_countが所定値に達したか否か、すなわち、分割出力期間のカウントが満了したか否かの判定が行われる。
 例えば、プログラムカウンタ116の出力値pc_reg(=分岐先アドレス又は割込先アドレス)が16ビットであり、トレースデータtrace_dataが2ビットである場合には、分岐先アドレス又は割込先アドレスの全ビット値を出力するために、最低8パルスのトレースクロックtrace_clkが必要となる。
 なお、ステップS18でノー判定が下された場合には、フローがステップS17に戻されて、分岐先アドレス又は割込先アドレスの分割出力が継続される。一方、イエス判定が下された場合には、フローがステップS19に進められる。
 ステップS19では、カウンタ122のカウント値trace_countが0にリセットされるとともに、CPU110のステートマシン111が一時停止状態(TRACEステート)から復帰される。その後、フローがステップS11に戻されて、上記一連の動作が繰り返される。
<トレーサ>
 図4は、トレーサ200の一構成例を示す図である。本構成例のトレーサ200は、デコーダ201と、インクリメント部202と、セレクタ203と、模擬プログラムカウンタ204と、ラッチ205と、トレースメモリ206と、を有する。
 デコーダ201は、トレースクロックtrace_clkに同期してトレースデータtrace_dataを監視し、トレーサ200の各部(セレクタ203やラッチ205など)を制御する。
 具体的に述べると、デコーダ201は、トレースデータtrace_dataが第1出力値「0d(00b)」であるときには模擬プログラムカウンタ204を不変とし、トレースデータtrace_dataが第2出力値「1d(01b)」であるときには模擬プログラムカウンタ204をインクリメントし、トレースデータtrace_dataが第3出力値「2d(10b)」であるときにはこれに引き続いて分割入力される分岐先アドレス又は割込先アドレスを模擬プログラムカウンタ204に順次格納させるように、セレクタ203を制御する。
 また、デコーダ201は、トレースデータtrace_dataの監視結果に基づいて確定値取込指示信号fetch_instを生成し、模擬プログラムカウンタ204の出力値pc_countを模擬PC確定値dump_pcとしてラッチ205で取り込むべきか否かを制御する。
 インクリメント部202は、模擬プログラムカウンタ204の出力値pc_countを所定のインクリメント値だけ増やして出力する。
 セレクタ203は、トレースデータtrace_data、インクリメント部113の出力値、及び、模擬プログラムカウンタ204の出力値pc_countのうち、いずれか一つを模擬プログラムカウンタ204に選択出力する。
 より具体的に述べると、トレースデータtrace_dataが第1出力値「0d(00b)」であるときには、模擬プログラムカウンタ204を不変とすべく、模擬プログラムカウンタ204の出力値pc_countが模擬プログラムカウンタ204に選択出力される。なお、模擬プログラムカウンタ204のフェッチ動作を禁止することにより、模擬プログラムカウンタ204を不変としてもよい。
 一方、トレースデータtrace_dataが第2出力値「1d(01b)」であるときには、模擬プログラムカウンタ204をインクリメントすべく、インクリメント部113の出力値が模擬プログラムカウンタ204に選択出力される。
 また、トレースデータtrace_dataが第3出力値「2d(10b)」であるときには、これに引き続いて分割入力される分岐先アドレス又は割込先アドレスを模擬プログラムカウンタ204に順次格納させるように、トレースtrace_dataが模擬プログラムカウンタ204に選択出力される。
 模擬プログラムカウンタ204は、トレースクロックtrace_clkに同期して動作するmビット(例えばm=16)のレジスタであり、CPU110のプログラムカウンタ116を模擬する。
 ラッチ205は、分岐先アドレス又は割込先アドレスの分割入力期間(詳細は後述)を除き、トレースクロックtrace_clkに同期して模擬プログラムカウンタ204の出力値pc_countを模擬PC確定値dump_pcとして取り込む。なお、ラッチ205の動作可否は、確定値取込指示信号fetch_instに基づいて決定される。より具体的に述べると、fetch_inst=”H”であるときにはラッチ動作が許可される一方、fetch_inst=”L”であるときにはラッチ動作が禁止される。
 トレースメモリ206は、ラッチ205に順次取り込まれる模擬PC確定値dump_pcをトレース結果trace_resultとして格納する。なお、トレース結果trace_resultの出力動作については、例えば、ホスト300からの要求に応じて随時出力してもよいし、或いは、一定量がバッファされる毎に定期的に出力してもよい。
 このように、LSI100(特にトレース回路120)から、1本のトレースクロックtrace_clkとこれに同期したnビット(例えばn=2)のトレースデータtrace_dataを外部出力し、LSI100に外付けされたトレーサ200を用いてCPU110のプログラムカウンタ116を模擬する構成であれば、LSI100にトレースメモリを実装せずに済む。従って、LSI100のオーバーヘッドを増すことなく、僅かなピン数でCPU110のプログラム動作(リードアドレス)を簡易かつ完全にトレースすることができる。
 なお、高速の駆動クロックCLK(例えば100MHz)に同期するCPU110のプログラム動作をトレースするためには、トレースクロックtrace_clk(=駆動クロックCLK)に同期して動作するトレーサ200のハードウェア処理が不可欠であると言える。
<トレース動作(トレーサ側)>
 図5は、トレーサ200におけるトレース動作の一例を示すフローチャートである。トレース動作が開始すると、ステップS21では、まず模擬プログラムカウンタ204の出力値pc_countが初期化される。
 例えば、プログラムの先頭からトレースを開始する場合には、通常、プログラムカウンタ116の出力値pc_regが0から始まることから、模擬プログラムカウンタ204の出力値pc_countも0に初期化すればよい。一方、プログラムの途中からトレースを開始する場合には、トレースを始めたいアドレスでプログラム動作に一旦ブレークを掛け、同プログラム動作の再開後にトレースデータを記録すればよいことから、模擬プログラムカウンタ204の出力値pc_countを上記ブレーク時点でのアドレスに初期化すればよい。
 次に、ステップS22では、LSI100から入力されたトレースデータtrace_dataが第2出力値「1d(01b)」であるか否かの判定が行われる。ここで、ノー判定が下された場合には、フローがステップS23に進み、イエス判定が下された場合には、フローがステップS25に進む。
 ステップS22でノー判定が下された場合、ステップS23では、LSI100から入力されたトレースデータtrace_dataが第3出力値「2d(10b)」であるか否かの判定が行われる。ここで、ノー判定が下された場合には、フローがステップS24に進み、イエス判定が下された場合には、フローがステップS26に進む。
 ステップS23でノー判定が下された場合には、LSI100から入力されたトレースデータtrace_dataが第1出力値「0d(00b)」であると考えられる。そこで、ステップS24では、模擬プログラムカウンタ204が不変とされた後、フローがステップS22に戻される。
 一方、ステップS22でイエス判定が下された場合、ステップS25では、模擬プログラムカウンタ204がインクリメントされた後、フローがステップS22に戻される。
 また、ステップS23でイエス判定が下された場合には、分岐先アドレス又は割込先アドレスを模擬プログラムカウンタ204にロードする必要がある。そこで、ステップS26及びS27では、分岐先アドレス又は割込先アドレスの分割入力が行われる。
 具体的に述べると、まずステップS26では、トレースデータtrace_dataとして分割入力される分岐先アドレス又は割込先アドレスの一部(2ビット分)が模擬プログラムカウンタ204の該当ビットに格納される。
 次に、ステップS27では、分岐先アドレス又は割込先アドレスの全ビット値が模擬プログラムカウンタ204に格納されたか否か、すなわち、分岐先アドレス又は割込先アドレスの分割入力が完了したか否かの判定が行われる。
 なお、ステップS27でノー判定が下された場合には、フローがステップS26に戻されて、分岐先アドレス又は割込先アドレスの分割入力が継続される。一方、イエス判定が下された場合には、フローがステップS28に進められる。
 ステップS28では、模擬プログラムカウンタ204の出力値pc_countが模擬PC確定値dump_pcとして確定される。その後、フローがステップS22に戻されて、上記一連の動作が繰り返される。
<トレース動作(システム全体)>
 図6は、トレースシステムX全体におけるトレース動作の一具体例を示すタイミングチャートであり、上から順に、PCロード命令pc_load、PCインクリメント命令pc_inc、プログラムカウンタ116の出力値pc_reg、トレースクロックtrace_clk、トレースデータtrace_data、カウンタ122のカウント値trace_count、ステートマシン111の動作状態state、模擬プログラムカウンタ204の出力値pc_count、確定値取込指示信号fetch_inst、及び、模擬PC確定値dump_pcが描写されている。
 なお、図6では、CPU110が3段のパイプライン構造を持つ場合を想定している。すなわち、CPU110では、一つの命令コードに対する信号処理が3つの単位信号処理(フェッチ(F)、デコード(D)、実行(E))に分解されており、それぞれが独立して同時並列処理される。ただし、パイプライン構造の段数は、2段でもよいし、4段以上でもよい。もちろん、CPU110は、パイプライン構造を持たなくてもよい。
 また、図6では、CPU110が8ビットCPUであり、命令コードが16ビット用である場合を想定している。ただし、CPU110のビット数や命令コードのビット数は、これに限定されるものではない。
 図7は、図6のトレース動作に供されるプログラムコードの一例(一部抜粋)を示す図である。ここで例示したプログラムコードでは、アドレス0x0000~0x0058それぞれに種々の命令(JMPC、HLT、STR、LDR、SDR、CALL、RET、及び、ORなど)が記載されている。
 以下では、図6及び図7を適宜参照しながら、トレースシステムX全体におけるトレース動作を4つの期間T1~T4に大別してそれぞれ詳細に説明する。
 まず、期間T1(=時刻t1~t6)に着目する。期間T1では、pc_load=”L”かつpc_inc=”H”となっている。従って、プログラムカウンタ116の出力値pc_regは、トレースクロックtrace_clk(=駆動クロックCLK)に同期して、「+2」ずつインクリメントされていく(0C→0E→10→12→14→16)。
 なお、プログラムカウンタ116のインクリメント値が「+2」であるのは、CPU110が8ビットCPUであり、命令コードが16ビット用であるため、プログラムメモリ117のリードアドレスが2バイトずつインクリメントされることによる。このように、プログラムカウンタ116のインクリメント値は、CPU110のビット数や命令コードのビット数に応じて決定される。
 また、先にも述べた通り、CPU110は、3段のパイプライン構造を持つ。従って、例えば、時刻t1でフェッチされたアドレス0x000CのLDR命令は、時刻t2でデコードされ、時刻t3で実行される。その他の命令についても、基本的には上記と同様である。ただし、分岐命令や割込命令の実行により、同時並列的にフェッチないしデコードされていた命令が実行されることなく破棄される場合もある。もちろん、パイプライン構造を持たないCPUやパイプライン段数の深いCPUについては、その限りでない。
 また、期間T1では、トレースデータtrace_dataが第2出力値「1」(=PCインクリメント)となっている。このとき、カウンタ122が非動作状態(trace_count=0)となり、ステートマシン111の動作状態stateがFETCHステートとなる。
 また、期間T1では、模擬プログラムカウンタ204の出力値pc_countがプログラムカウンタ116の出力値pc_regから1クロック遅れて「+2」ずつインクリメントされていく(0A→0C→0E→10→12→14)。
 また、期間T1では、fetch_inst=”H”となっている。従って、模擬PC確定値dump_pcは、模擬プログラムカウンタ204の出力値pc_countから1クロック遅れて「+2」ずつインクリメントされていく(08→0A→0C→0E→10→12)。
 次に、期間T2(=時刻t6~t8)に着目する。時刻t6において、アドレス0x0012のCALL命令(=サブルーチンを呼び出すための分岐命令)が実行されると、pc_inc=”L”となり、続く時刻t7において、pc_load=”H”となり、さらに続く時刻t8において、分岐先アドレス0x004Cがプログラムカウンタ116の出力値pc_regとしてフェッチされる。このとき、トレースデータtrace_dataは、それまでの第2出力値「1」(=PCインクリメント)から、第1出力値「0」(=PC不変)に切り替わり、続いて第3出力値「2」(=PC変更(分岐))に切り替わる。また、ステートマシン111の動作状態stateは、FETCHステートからWAIT_KEEPステートに切り替わる。
 また、期間T2では、模擬プログラムカウンタ204の出力値pc_countが不変値(それまでの「14」を保持)となる。さらに、fetch_inst=”L”となるので、模擬PC確定値dump_pcも不変値(それまでの「12」を保持)となる。
 次に、期間T3(=時刻t8~t16)に着目する。トレースデータtrace_dataが第3出力値「2」(=PC変化(分岐))となった場合には、次サイクルから分岐先アドレス0x004C(=0000 0000 0100 1100)の分割出力が開始される。
 より具体的に述べると、時刻t8において、カウンタ122のパルスカウント動作(=カウント値trace_countのカウントアップ)が開始され、同パルスカウント動作が継続されている間、トレースクロックtrace_clkに同期して、分岐先アドレス0x004Cが2ビットずつトレースデータtrace_dataとして分割出力される(図中のハッチング領域を参照)。
 例えば、プログラムカウンタ116の出力値pc_reg(=分岐先アドレス又は割込先アドレス)が16ビットであり、トレースデータtrace_dataが2ビットである場合には、分岐先アドレス又は割込先アドレスの全ビット値を出力するために、最低8パルスのトレースクロックtrace_clkが必要となる。仮に、トレースデータtrace_dataを4ビットに拡張すれば4パルスで済み、8ビットに拡張すれば2パルスで済み、16ビット(すなわちn=m)に拡張すれば1パルスで済む。
 また、このとき、分岐先アドレス0x004Cの全ビット値を完全に出力するために、ステートマシン111の動作状態stateがTRACEステート(一時停止状態)とされる。
 一方、模擬プログラムカウンタ204には、トレースデータtrace_dataとして2ビットずつ分割入力される分岐先アドレス0x004Cが順次格納されていく。
 図8は、分岐先アドレスの分割入力動作を示す図であり、カウンタ122のカウント値trace_counter、模擬プログラムカウンタ204の出力値pc_counter、及び、トレースデータtrace_dataそれぞれの変遷が描写されている。以下、先出の図6も適宜参照しながら分岐先アドレス0x004C(=0000 0000 0100 1100)の分割入力動作を説明する。
 trace_counter=「0」では、pc_counter=「0000 0000 0001 0100 (0x0014)」である(図6の時刻t7を参照)。
 trace_counter=「1」では、16ビットの分岐先アドレス0x004Cのうち、第1ビット値及び第2ビット値([1:0]=”0d(00b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第1ビット値及び第2ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0001 0100b (0x0014)」となる(図6の時刻t8を参照)。
 trace_counter=「2」では、16ビットの分岐先アドレス0x004Cのうち、第3ビット値及び第4ビット値([3:2]=”3d(11b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第3ビット値及び第4ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0001 1100b (0x001C)」となる(図6の時刻t9を参照)。
 trace_counter=「3」では、16ビットの分岐先アドレス0x004Cのうち、第5ビット値及び第6ビット値([5:4]=”0d(00b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第5ビット値及び第6ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0000 1100b (0x000C)」となる(図6の時刻t10を参照)。
 trace_counter=「4」では、16ビットの分岐先アドレス0x004Cのうち、第7ビット値及び第8ビット値([7:6]=”1d(01b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第7ビット値及び第8ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0100 1100b (0x004C)」となる(図6の時刻t11を参照)。
 trace_counter=「5」では、16ビットの分岐先アドレス0x004Cのうち、第9ビット値及び第10ビット値([9:8]=”0d(00b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第9ビット値及び第10ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0100 1100b (0x004C)」となる(図6の時刻t12を参照)。
 trace_counter=「6」では、16ビットの分岐先アドレス0x004Cのうち、第11ビット値及び第12ビット値([11:10]=”0d(00b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第11ビット値及び第12ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0100 1100b (0x004C)」となる(図6の時刻t13を参照)。
 trace_counter=「7」では、16ビットの分岐先アドレス0x004Cのうち、第13ビット値及び第14ビット値([13:12]=”0d(00b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第13ビット値及び第14ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0100 1100b (0x004C)」となる(図6の時刻t14を参照)。
 trace_counter=「8」では、16ビットの分岐先アドレス0x004Cのうち、第15ビット値及び第16ビット値([15:14]=”0d(00b)”)が2ビットのトレースデータtrace_dataとして、模擬プログラムカウンタ204の第15ビット値及び第16ビット値にそれぞれ入力される。その結果、pc_counter=「0000 0000 0100 1100b (0x004C)」となる(図6の時刻t15を参照)。
 このように、16ビットの分岐先アドレス0x004Cは、2ビットずつ8回に分けて模擬プログラムカウンタ204に分割入力される。
 図6に戻り、期間T4(=時刻t16~t19)に着目して、トレース動作の詳細な説明を続ける。
 時刻t16において、分岐先アドレス0x004Cの分割出力が完了すると、カウンタ122のカウント値trace_countが0に戻り、ステートマシン111がTRACEステート(一時停止状態)からPRE_FETCHステートを経てFETCHステートに復帰する。
 なお、時刻t16では、分岐先アドレス0x004CのLDR命令がデコードされたことを受けて、pc_inc=”H”となっている。従って、プログラムカウンタ116の出力値pc_regは、次サイクルからトレースクロックtrace_clk(=駆動クロックCLK)に同期して、「+2」ずつインクリメントされていく(4C→4E→50→52→…)。
 また、期間T4では、トレースデータtrace_dataが第2出力値「1」(=PCインクリメント)となる。従って、模擬プログラムカウンタ204の出力値pc_countは、期間T3で書き込まれた分岐先アドレス0x004Cから「+2」ずつインクリメントされていく(4C→4E→50→…)。
 また、期間T4では、trace_data=「1」(=PCインクリメント)が2サイクル連続したときにfetch_inst=”H”となり、模擬プログラムカウンタ204の出力値pc_count(=0x004C)が模擬PC確定値dump_pcとしてラッチされる。そして、それ以降、模擬PC確定値dump_pcは、模擬プログラムカウンタ204の出力値pc_countから1クロック遅れて「+2」ずつインクリメントされていく(4C→4E→…)。
 なお、trace_data=「1」が2サイクル連続したときに模擬プログラムカウンタ204の出力値pc_countを模擬PC確定値dump_pcとして確定させる理由は、CPU110が3段のパイプライン構造を持っており、PCインクリメントが2回連続したときに初めて、読み出された命令コードが実行されるからである。
 図9は、プログラムコード(図7)の実行結果を示す図である。本図で示したように、CPU110は、…→0x0008→0x000A→0x000C→0x000E→0x0010→0x0012→0x004C→0x004E→0x0050→…という順に、各アドレスの命令コードを実行していく。
 一方、模擬PC確定値dump_pcは、先出の図6で示したように、…→0x0008→0x000A→0x000C→0x000E→0x0010→0x0012→0x004C→0x004E→0x0050→…という順に、その値が変遷していく。すなわち、トレーサ200で得られる模擬PC確定値dump_pcは、上記したプログラムコードの実行結果と完全に一致している。
 従って、これまでに説明してきたトレーサシステムXによれば、CPU110のプログラム動作を完全に把握することが可能となる。
<その他の変形例>
 なお、本明細書中に開示されている種々の技術的特徴は、上記実施形態のほか、その技術的創作の主旨を逸脱しない範囲で種々の変更を加えることが可能である。すなわち、上記実施形態は、全ての点で例示であって制限的なものではないと考えられるべきであり、本発明の技術的範囲は、上記実施形態に限定されるものではなく、特許請求の範囲と均等の意味及び範囲内に属する全ての変更が含まれると理解されるべきである。
 本明細書中に開示されている発明は、例えば、種々の情報処理装置(スマートフォン、ゲーム機器、カーナビゲーションシステムなど)に実装されるマイクロプロセッサのデバッグに利用することが可能である。
   100  LSI(半導体装置)
   110  CPU(マイクロプロセッサ)
   111  ステートマシン
   112  デコード/実行部
   113  インクリメント部
   114  分岐先アドレス格納部
   115  セレクタ
   116  プログラムカウンタ
   117  プログラムメモリ
   120  トレース回路
   121  ステータス生成部
   122  カウンタ
   123  セレクタ
   200  トレーサ
   201  デコーダ
   202  インクリメント部
   203  セレクタ
   204  模擬プログラムカウンタ
   205  ラッチ
   206  トレースメモリ
   300  ホスト
   310  トレースプログラム
   X  トレースシステム

Claims (10)

  1.  mビットのプログラムカウンタを備えたマイクロプロセッサとともに半導体装置に集積化され、トレースクロックとnビット(ただし2≦n≦m)ビットのトレースデータを外部出力するトレース回路であって、
     前記プログラムカウンタの不変時には、前記トレースクロックに同期して前記トレースデータを第1出力値とし、
     前記プログラムカウンタのインクリメント時には、前記トレースクロックに同期して前記トレースデータを第2出力値とし、
     前記プログラムカウンタへのロード時には、前記トレースクロックに同期して前記トレースデータを第3出力値とし、前記マイクロプロセッサのステートマシンを一時停止した上で、前記プログラムカウンタにロードされた分岐先アドレス又は割込先アドレスを前記トレースデータとして分割出力する、
     ことを特徴とするトレース回路。
  2.  前記プログラムカウンタの不変時に前記第1出力値となり、前記プログラムカウンタのインクリメント時に前記第2出力値となり、前記プログラムカウンタへのロード時に前記第3出力値となるステータス信号を生成するステータス生成部と;
     前記ステータス信号が前記第3出力値となったときに動作を開始し、前記分岐先アドレス又は前記割込先アドレスの分割出力期間が満了したときに動作を停止するカウンタと;
     前記カウンタの停止中には前記ステータス信号を前記トレースデータとして選択し、前記カウンタの動作中には前記分岐先アドレス又は前記割込先アドレスの一部を前記トレースデータとして選択するセレクタと;
     を有することを特徴とする請求項1に記載のトレース回路。
  3.  前記ステータス生成部は、前記マイクロプロセッサの内部制御信号を監視して前記ステータス信号を生成することを特徴とする請求項2に記載のトレース回路。
  4.  前記トレースクロックは、前記マイクロプロセッサの駆動クロックであることを特徴とする請求項1~請求項3のいずれか一項に記載のトレース回路。
  5.  請求項1~請求項4のいずれか一項に記載のトレース回路と;
     前記プログラムカウンタの出力値をリードアドレスとしてプログラムメモリから命令コードを読み出し、その命令コードをデコード及び実行するマイクロプロセッサと;
     を集積化して成ることを特徴とする半導体装置。
  6.  前記マイクロプロセッサは、パイプライン構造を持つことを特徴とする請求項5に記載の半導体装置。
  7.  請求項5または請求項6に記載の半導体装置に外付けされ、前記トレースクロックに同期して前記トレースデータを監視し、前記プログラムカウンタを模擬することにより、前記リードアドレスのトレース結果を出力することを特徴とするトレーサ。
  8.  模擬プログラムカウンタと;
     前記トレースデータが前記第1出力値であるときには前記模擬プログラムカウンタを不変とし、前記トレースデータが前記第2出力値であるときには前記模擬プログラムカウンタをインクリメントし、前記トレースデータが前記第3出力値であるときにはこれに引き続いて分割入力される前記分岐先アドレス又は前記割込先アドレスを前記模擬プログラムカウンタに順次格納させるデコーダと;
     前記分岐先アドレス又は前記割込先アドレスの分割入力期間を除き、前記トレースクロックに同期して前記模擬プログラムカウンタの出力値を確定値として取り込むラッチと;
     前記ラッチに順次取り込まれる前記確定値を前記トレース結果として格納するトレースメモリと;
     を有することを特徴とする請求項7に記載のトレーサ。
  9.  請求項5または請求項6に記載の半導体装置と、
     請求項7または請求項8に記載のトレーサと、
     前記トレース結果の表示、記憶、及び、解析を行うホストと、
     を有することを特徴とするトレースシステム。
  10.  コンピュータ上で実行され、前記コンピュータの入力部、表示部、記憶部、及び、演算部をそれぞれ、前記トレース結果の入力手段、表示手段、記憶手段、及び、解析手段として動作させることにより、請求項9に記載のトレースシステムにおける前記ホストとして前記コンピュータを機能させることを特徴とするトレースプログラム。
PCT/JP2020/039036 2019-10-18 2020-10-16 トレース回路、半導体装置、トレーサ、トレースシステム WO2021075531A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202080072402.6A CN114556306A (zh) 2019-10-18 2020-10-16 跟踪电路、半导体装置、跟踪器及跟踪系统
JP2021552457A JP7489398B2 (ja) 2019-10-18 2020-10-16 トレース回路、半導体装置、トレーサ、トレースシステム
US17/761,713 US20220391297A1 (en) 2019-10-18 2020-10-16 Tracing circuit, semiconductor device, tracer, and tracing system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019-191068 2019-10-18
JP2019191068 2019-10-18

Publications (1)

Publication Number Publication Date
WO2021075531A1 true WO2021075531A1 (ja) 2021-04-22

Family

ID=75538273

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/039036 WO2021075531A1 (ja) 2019-10-18 2020-10-16 トレース回路、半導体装置、トレーサ、トレースシステム

Country Status (4)

Country Link
US (1) US20220391297A1 (ja)
JP (1) JP7489398B2 (ja)
CN (1) CN114556306A (ja)
WO (1) WO2021075531A1 (ja)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62200439A (ja) * 1986-02-28 1987-09-04 Toshiba Corp 命令実行回数解析方式
JPH08185336A (ja) * 1994-12-28 1996-07-16 Hewlett Packard Japan Ltd マイクロプロセッサ、マイクロプロセッサ−デバッグツール間信号伝送方法及びトレース方法
JP2000172531A (ja) * 1998-12-03 2000-06-23 Oki Data Corp プログラムカウンタのトレース装置
WO2001093040A1 (fr) * 2000-05-30 2001-12-06 Matsushita Electric Industrial Co., Ltd. Systeme et procede d'analyse de compteur de programme, et dispositif a semi-conducteur
JP2004199333A (ja) * 2002-12-18 2004-07-15 Sanyo Electric Co Ltd マイクロコンピュータおよびその評価装置
JP2005209172A (ja) * 2003-12-24 2005-08-04 Matsushita Electric Ind Co Ltd 半導体集積回路、開発支援装置及び実行履歴復元方法

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5724566A (en) * 1994-01-11 1998-03-03 Texas Instruments Incorporated Pipelined data processing including interrupts
US20090222646A1 (en) * 2008-02-28 2009-09-03 International Business Machines Corporation Method and apparatus for detecting processor behavior using instruction trace data
JP2011100388A (ja) * 2009-11-09 2011-05-19 Fujitsu Ltd トレース情報収集装置,トレース情報処理装置,およびトレース情報収集方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62200439A (ja) * 1986-02-28 1987-09-04 Toshiba Corp 命令実行回数解析方式
JPH08185336A (ja) * 1994-12-28 1996-07-16 Hewlett Packard Japan Ltd マイクロプロセッサ、マイクロプロセッサ−デバッグツール間信号伝送方法及びトレース方法
JP2000172531A (ja) * 1998-12-03 2000-06-23 Oki Data Corp プログラムカウンタのトレース装置
WO2001093040A1 (fr) * 2000-05-30 2001-12-06 Matsushita Electric Industrial Co., Ltd. Systeme et procede d'analyse de compteur de programme, et dispositif a semi-conducteur
JP2004199333A (ja) * 2002-12-18 2004-07-15 Sanyo Electric Co Ltd マイクロコンピュータおよびその評価装置
JP2005209172A (ja) * 2003-12-24 2005-08-04 Matsushita Electric Ind Co Ltd 半導体集積回路、開発支援装置及び実行履歴復元方法

Also Published As

Publication number Publication date
JP7489398B2 (ja) 2024-05-23
US20220391297A1 (en) 2022-12-08
CN114556306A (zh) 2022-05-27
JPWO2021075531A1 (ja) 2021-04-22

Similar Documents

Publication Publication Date Title
US6145123A (en) Trace on/off with breakpoint register
US4879646A (en) Data processing system with a pipelined structure for editing trace memory contents and tracing operations during system debugging
US5630102A (en) In-circuit-emulation event management system
US7930162B1 (en) Accelerating hardware co-simulation using dynamic replay on first-in-first-out-driven command processor
US20020144235A1 (en) Debugging embedded systems
TWI461908B (zh) 於即時指令追蹤紀錄中之除錯動作的選擇性紀錄技術
JP2003085000A (ja) トレース情報生成装置およびその方法
KR20150008447A (ko) 인터럽트 상태에 기초한 구성 가능한 브레이크포인트를 갖는 디바이스
US8607202B2 (en) Real-time profiling in a multi-core architecture
US7971040B2 (en) Method and device for saving and restoring a set of registers of a microprocessor in an interruptible manner
JPH10228393A (ja) 二重プロセッサ回路の動作をシミュレーションするためのコンピュータ実行方法及び信号プロセッサシミュレータ
JP3938580B2 (ja) 情報処理装置、情報処理方法、半導体装置、コンピュータプログラム
KR20150008428A (ko) 명령어 트레이스 기능을 갖춘 프로세서 디바이스
GB2374694A (en) Storing instruction set information
JP2002163127A (ja) トレース制御回路
WO2021075531A1 (ja) トレース回路、半導体装置、トレーサ、トレースシステム
US20020120801A1 (en) Technique for capturing information
JP3260083B2 (ja) デバッグシステム及びデバッグ方法
CN111177067B (zh) 一种片上系统
WO2011109971A1 (zh) 微控制器在线调试电路及方法、微控制器
US20200257545A1 (en) Simulation device, simulation method, and computer readable medium
JPH10275092A (ja) マイクロプロセッサのトレース情報出力方法
US9934035B2 (en) Device and method for tracing updated predicate values
Longbottom Raspberry Pi 5 64 Bit Benchmarks and Stress Tests
JP3349911B2 (ja) マイクロプロセッサ及びその開発支援装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20876655

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021552457

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20876655

Country of ref document: EP

Kind code of ref document: A1