发明名称 Processor, cache memory of the processor and control method of the processor
摘要 A processor capable of storing trace data is disclosed. The processor includes a core adapted to execute programs, as well as a cache memory electrically connected to the core. The cache memory includes a core way and a trace way. The core way is adapted to store data that is required when the core executes the programs. The trace way is adapted to store data that is generated during debugging operations of the core. A control method of the processor is also disclosed.
申请公布号 US9436611(B2) 申请公布日期 2016.09.06
申请号 US201414256565 申请日期 2014.04.18
申请人 NATIONAL SUN YAT-SEN UNIVERSITY 发明人 Huang Ing-Jer;Lai Chun-Hung
分类号 G06F12/00;G06F11/34;G06F11/36;G06F12/08 主分类号 G06F12/00
代理机构 Muncy, Geissler, Olds & Lowe, P.C. 代理人 Muncy, Geissler, Olds & Lowe, P.C.
主权项 1. A processor capable of storing trace data, comprising: a core adapted to execute programs; and a cache memory electrically connected to the core and comprising a core way and a trace way, wherein the core way is adapted to store data that is required when the core executes the programs, and wherein the trace way is adapted to store data that is generated during debugging operations of the core, wherein each of the core way and the trace way comprises a data memory, a tag memory and a write back address memory, wherein the data memory of the core way is adapted to store the data that is required when the core executes the programs, wherein the data memory of the trace way is adapted to store the data that is generated during the debugging operations of the core, wherein the tag memory stores a plurality of states of row and a plurality of tags, and selects one of the plurality of states of row and one of the plurality of tags according to an address outputted by the core, wherein the write back address memory is adapted to store a plurality of row addresses, wherein the cache memory further comprises: a data/trace cache control register adapted to store a predetermined trace address and a plurality of cache way control bits, wherein each of the plurality of cache way control bits corresponds to a respective one of the data memories and comprises two state values; a line index calculator generating a trace address, a trace data and a trace enabling bit according to the plurality of cache way control bits, a valid trace bit and the data that is generated during the debugging operations of the core; a cache controller generating a core data, a core enabling bit and a cache way cleaning bit according to the address outputted by the core and the data that is required when the core executes the programs, wherein the address comprises a set index and an address tag; a plurality of data/trace configuration units, each corresponding to a respective one of the plurality of cache way control bits, wherein each of the plurality of data/trace configuration units controls the core data to be written into the data memory according to one of the two state values of the cache way control bit, the set index and the core enabling bit, or controls the trace data to be written into the data memory according to another one of the two state values of the cache way control bit, the trace address and the trace enabling bit; a plurality of comparators, each comparing the address tag with the tag outputted by the tag memory and generating a tag hit bit; a plurality of trace protection units, each generating a locking bit and a hit bit according to a corresponding one of the plurality of cache way control bits, the plurality of states of row outputted by the tag memory and the tag hit bit; and a plurality of trace dump units, each generating a write-back address according to a corresponding one of the plurality of cache way control bits, the plurality of row addresses, the plurality of states of row and the predetermined trace address.
地址 Kaohsiung TW