System and method for preparing tracking data
By introducing data preparation circuitry into the system-on-a-chip, the tracking data is filtered and compressed, solving the problem of severe resource consumption and achieving efficient and accurate tracking data collection, supporting diagnostics and calibration in the automotive field.
Patent Information
- Application Number
- CN202211347879.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-29
- Filing Date
- 2022-10-31
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-10-31
AI Technical Summary
Existing technologies consume significant resources when capturing tracking data, leading to data loss and difficulties in evaluating tracking information, which particularly affects the accuracy of diagnostic or calibration operations in the automotive field.
By introducing data preparation circuitry, including filtering, data compression, and timestamp circuitry, into the system-on-a-chip, data packets are filtered and encapsulated based on memory location mapping, reducing unnecessary tracking data and improving the efficiency and reliability of data collection.
It effectively reduces the bandwidth requirements for tracking data, improves the comprehensiveness and accuracy of the data, ensures that critical tracking data is not lost, and supports efficient diagnostic and calibration operations.
Smart Images

Figure CN116069720B_ABST
Abstract
Description
Technical Field
[0001] This invention generally relates to systems and methods for providing tracking data. Background Technology
[0002] Tracing processing steps for components of on-chip systems or other devices is often advantageous. However, capturing trace data can be resource-intensive, posing challenges to generating synthesis data. Systems, devices, and methods that can more efficiently provide trace data are needed to meet the requirements for preparing synthesis data. Summary of the Invention
[0003] According to an embodiment, a system for providing filtered tracking data includes: a processor; a static random access memory (SRAM) controller; a first data preparation circuit coupled to the processor to receive tracked memory write data from the processor, the first data preparation circuit being configured to filter unselected tracked memory write data from selected tracked memory write data; a second data preparation circuit coupled to the SRAM controller to receive tracked memory write data from the SRAM controller, the second data preparation circuit being configured to filter unselected tracked memory write data from selected tracked memory write data; a data collection network configured to receive selected tracked memory write data from the first data preparation circuit and selected tracked memory write data from the second data preparation circuit; and an output interface coupled to the data collection network to output the selected tracked memory write data from the first data preparation circuit and the selected tracked memory write data from the second data preparation circuit.
[0004] According to an embodiment, the system further includes a processor that includes tightly coupled memory, and traced memory write data from the processor corresponds to memory write data operations for the tightly coupled memory.
[0005] According to an embodiment, the system further includes an SRAM controller communicating with a corresponding processor or non-processor host, and a tracked memory write data from the SRAM controller corresponding to a memory write data operation on memory accessed by the processor or non-processor host.
[0006] According to an embodiment, the system further includes traced memory write data from the processor including address bits, data bits, and control bits, and traced memory write data from the SRAM controller including address bits, data bits, and control bits.
[0007] According to an embodiment, the system further includes a first data preparation circuit configured to identify selected tracked memory write data from the processor based on a mapping of selected memory locations.
[0008] According to an embodiment, the system further includes a second data preparation circuit configured to identify selected memory write data from the SRAM controller based on a mapping of the selected memory location.
[0009] According to an embodiment, the system further includes, wherein the first data preparation circuit comprises: a filtering circuit for filtering data written to the selected tracked memory from the data written to the selected tracked memory; and a first-in-first-out buffer for storing the data written to the selected tracked memory.
[0010] According to an embodiment, the system further includes a first data preparation circuit configured to activate a backpressure signal provided to the processor in response to the first-in-first-out buffer reaching full capacity.
[0011] According to an embodiment, the system further includes a first data preparation circuit comprising a data compression circuit configured to identify data packets of selected tracked memory write data and to provide encapsulated data to a data encapsulation circuit of the first data preparation circuit to group the selected tracked memory write data into data packets having address and control information.
[0012] According to an embodiment, the system further includes a first data preparation circuit that includes a timestamp circuit configured to add timestamps to data packets.
[0013] According to an embodiment, the system also includes a trace-out controller coupled to the data encapsulation circuitry, which receives data packets and provides them to the data collection network.
[0014] According to an embodiment, a method for filtering tracking data includes: receiving memory write data being tracked; identifying selected memory write data; encapsulating the selected memory write data into a data packet; and outputting the data packet to a development tool.
[0015] According to an embodiment, the method further includes converting the data packet into a standard format for output.
[0016] According to an embodiment, the method further includes identifying selected tracked memory write data, which includes selecting memory write data for the selected memory location.
[0017] According to an embodiment, the method further includes, wherein the data written to the tracked memory includes address bits, data bits, and control bits.
[0018] According to an embodiment, the method further includes, wherein the selected memory write data is encapsulated into a data packet having control bytes.
[0019] According to an embodiment, the method further includes analyzing the selected memory write data to determine how to encapsulate the selected memory write data.
[0020] According to an embodiment, the method further includes analyzing the selected memory write data by determining whether the selected memory write data corresponds to memory write data operations pointing to contiguous addresses, pointing to non-contiguous addresses, and belonging to the same type.
[0021] According to an embodiment, a tracking data preparation circuit includes: a filtering circuit configured to receive data written to a tracked memory; a first-in-first-out (FIFO) buffer coupled to the filtering circuit to receive selected memory write data filtered by the filtering circuit; a data compression circuit coupled to the FIFO buffer and configured to provide encapsulated data based on the content of the selected memory write data; an encapsulation circuit configured to group the selected memory write data into data packets based on the encapsulated data; and an output controller configured to receive data packets from the encapsulation circuit and convert the data packets into a standard protocol format.
[0022] According to an embodiment, the tracking data preparation circuit includes a timestamp circuit configured to add a timestamp to every nth data packet, where n is an integer.
[0023] According to an embodiment, the tracking data preparation circuit further includes an output bus for the packaging circuit configured to send more bits per cycle than the input bus for the packaging circuit.
[0024] According to an embodiment, the tracking data preparation circuit further includes, wherein the tracked memory write data received by the filtering circuit includes address bits, data bits, and control bits.
[0025] According to an embodiment, the tracking data preparation circuit further includes a filtering circuit comprising an address input for receiving address bits, a data input for receiving data bits, a control input for receiving control bits, an address output for providing address bits, a data output for providing data bits, and a control output for providing control bits.
[0026] According to an embodiment, the tracking data preparation circuit further includes a cascaded circuit for receiving address bits from the filtering circuit, data bits from the filtering circuit, and control bits from the filtering circuit, the cascaded circuit being configured to cascade the address bits, data bits, and control bits and provide them to the first-in-first-out buffer. Attached Figure Description
[0027] To gain a more complete understanding of the invention and its advantages, reference is now made to the following description taken in conjunction with the accompanying drawings, wherein:
[0028] Figure 1 A system for providing filtered tracking data, consistent with the embodiments, is described;
[0029] Figure 2 A system for providing filtered tracking data, consistent with the embodiments, is described;
[0030] Figure 3 A tracking data preparation circuit consistent with the embodiment is depicted; and
[0031] Figure 4 A flowchart depicts a method for providing filtered tracking data consistent with the embodiments. Detailed Implementation
[0032] System-on-a-Chip (“SoC”) is used in a wide variety of applications. At different stages of the SoC’s lifecycle, it can be beneficial to test its performance using external tools. Such testing may occur for many different types of processes, including but not limited to calibration, diagnostics, and development. External tools can be used to trace the different execution steps that occur internally during the SoC’s operation as it performs its functions. Using this information, designers can identify potential problems that may adversely affect performance. Therefore, data traces can provide designers, technicians, or others with a window into the internal operation of the SoC, which helps them improve, debug, calibrate, or fix potential problems.
[0033] For example, synchronizing tracking data from the SoC with other external information can be beneficial for gaining insight into potential problems. For instance, tracking data can be used in conjunction with visual data to diagnose or calibrate parking assistance operations in motor vehicles. Tracking data can be correlated with sensor or video data from the target vehicle performing the parking maneuver. Tracking data received from the SoC can be synchronized with sensor and video data to track real-world stimuli and the SoC's response to those stimuli. This data can aid in development, calibration, or troubleshooting.
[0034] The trace data provided to external tools can advantageously include real-time data updated by the system software within the SoC. System software applications can run simultaneously on multiple cores within the SoC. These cores can continuously update data at numerous address locations mapped to system memory as operations are performed. These locations can, for example, be tightly coupled memory or system RAM.
[0035] For data tracing, memory write addresses and data information for these locations can be tracked and provided to external tools to track the operation of processor and non-processor functional blocks. Then, as the values of memory locations are updated to run local algorithms that provide information about system behavior, external tools can trace these memory writes using the traced memory write data with address and control information. This can then be analyzed for execution. The write data can also be generated by other non-CPU hosts, such as direct memory access devices. Tracking memory writes for these locations and providing the traced memory write data to external tools can also be advantageous.
[0036] As should be understood, the sheer volume of data generated by the number of operations performed by a SoC can quickly become a burden on trace data collection efforts. Many SoCs may simultaneously run multiple software applications writing to numerous memory locations across multiple cores. Simultaneously, multiple non-CPU hosts (such as DMA controllers) may also perform write operations. The sheer number of operations performed by the SoC can overwhelm a system attempting to capture trace data. In some cases, this can lead to data overflow, and critical trace data may be lost.
[0037] In many applications, lost tracking data severely hinders efforts to evaluate tracking information. For example, the requirements for instruments measuring signals from internal electronic control units are extremely high when developing electric vehicles, hybrid vehicles, and conventional gasoline vehicles. This is similar to the need for comprehensive tracking data. Without comprehensive data, diagnostic or calibration operations may be unsuccessful or inaccurate. The need for comprehensive tracking data also applies to many or all major application areas of the automotive industry, including but not limited to engine control, body and chassis, and other areas such as advanced driver assistance systems. Many sectors outside the automotive industry also benefit from comprehensive data used to measure runtime to provide tracking data.
[0038] Known methods for preparing trace data involve minimal filtering of the data before it is delivered to external tools. A System-on-a-Chip (SoC) may run multiple programs simultaneously on multiple cores and utilize multiple non-CPU hosts for writes. However, external tools may only be interested in a few processes occurring on the SoC at a specific time. Therefore, while synthesis data may be needed for some memory locations, external tools may never use trace data related to updates to the many (if not most) tightly coupled memories (“TCMs”) and on-chip static random access memory (“SRAMs”) present on the SoC. By tailoring trace data collection to specific data requirements, systems preparing trace data can provide synthesis data with improved reliability and efficiency (in terms of speed and operational hardware requirements).
[0039] This can be leveraged to provide more efficient systems and methods for delivering tracking data. Unwanted data can be filtered out, and more resources can be dedicated to collecting more comprehensive data from locations of interest. Therefore, data tracking can be improved by allowing high-granularity filtering to select only desired data locations for exploration.
[0040] This is beneficial in a wide range of fields, including but not limited to the automotive industry. For example, the instrumentation requirements of automotive applications can benefit from collecting updated data written by system software into in-system memories. In many cases, it is necessary to obtain all aggregated data from a selected memory location. However, updates related to other memory locations may not be required. To meet this requirement, embodiments consistent with this disclosure allow for fine-grained filtering of aggregated data from selected memory locations to remove unwanted memory-written data from the data provided to external tools. Furthermore, data compression and packetization can also enhance data tracking systems and methods.
[0041] Figure 1 A system for providing filtered tracking data, consistent with the embodiments, is described.
[0042] The system 100 providing filtered tracking data may be included on a system-on-a-chip. In various embodiments, the system 100 for providing filtered tracking data may include a processor 102. The processor 102 may be configured to execute software instructions stored in memory (not shown). During execution, the processor may write to memory locations. The processor may include tightly coupled (TCM) memory 101.
[0043] Memory write data, address, and control information for TCM memory (or other memory locations) may include address bits, data bits, and control bits. Each of these bits may be carried on a separate bus. Furthermore, as should be understood, the number of bits per bit may vary in different embodiments. The system may also include an SRAM controller 104 (Static Random Access Memory Controller). The SRAM controller may also process memory write data that facilitates capture of data being tracked. Such memory write data may also include address bits, data bits, and control bits that can be carried on a separate bus.
[0044] In various embodiments, the first data preparation circuit 106 may be coupled to the processor 102 to receive tracked memory write data from the processor 102. The tracked memory write data may include data for writing to the TCM memory 101 of the processor 102. Repeated write data may be provided to the first data preparation circuit 106.
[0045] In various embodiments, one or more buses delivering signals carrying memory write data may be coupled to the first data preparation circuit 106 to receive the memory write data. Communication between the processor 102 and the first data preparation circuit 106 may be accomplished using a memory write data port interface 111A, which is such as, but not limited to, a memory rebuild port (“MRP”), available in ARM Cortex processors and system memory controllers. In various embodiments, the data port interface 111A may be integrated into the processor 102. The write data memory port interface may provide various signals via an address bus, a data bus, and a control bus. The memory write data received by the data preparation circuit may be referred to as tracked memory write data.
[0046] In various embodiments, the first data preparation circuit 106 may provide a backpressure signal when its pipeline is full and it cannot process more data from the processor 102. In various embodiments, the memory write data port interface 111A may provide write data for the TCM memory 101 of the processor 102 to the first data preparation circuit 106.
[0047] In various embodiments, the first data preparation circuit 106 may perform a filtering operation to filter out some traced memory write data at selected address locations. This may help limit the data ultimately provided to external tools and reduce the bandwidth required for tracing operations. In various embodiments, the first data preparation circuit 106 may be configured to filter out unselected traced memory write data from selected traced memory write data corresponding to memory write operations for selected address locations, which correspond to memory write operations for unselected memory locations. In various embodiments, only traced memory write data for selected locations will be passed by the first data preparation circuit 106.
[0048] In various embodiments, system 100 may include additional data preparation circuitry. This additional data preparation circuitry may be coupled to an additional source that generates memory write data. Furthermore, the system may include an additional memory write data port interface (such as MRP, but not limited to). The additional memory write data port interface may operate as memory write data port interface 111A. The additional data preparation circuitry may also operate to filter the memory write data it receives.
[0049] As an example, system 100 may include a second data preparation circuit 108 coupled to SRAM controller 104. The second data preparation circuit 108 may receive traced memory write data from SRAM controller 104. A memory write data port interface 111B, which may include MRP, may carry the traced memory write data from SRAM controller 104 to the second data preparation circuit 108.
[0050] The second data preparation circuit 108 can be configured to filter out unselected tracked memory write data from the selected tracked memory write locations. In various embodiments, the selection can be determined by the memory location intended for memory write data. Memory write data for the selected memory location can be delivered by the second data preparation circuit 108, while memory write data for other memory locations is not delivered. In various embodiments, the coupling between the SRAM controller 104 and the second data preparation circuit 108 can be accomplished using a data port interface 111B, which may include an MRP.
[0051] In various embodiments, system 100 may further include a data collection network 110 configured to receive selected traced memory write data from a first data preparation circuit 106 and from a second data preparation circuit 108. The data collection network 110 may include components distributed throughout the SoC. In various embodiments, the data collection network may include memory to store the selected memory write data.
[0052] System 100 may further include an output interface 112 coupled to a data acquisition network 110 to output selected memory write data from a first data preparation circuit 106 and selected memory write data from a second data preparation circuit 108. Output interface 112 may include a high-speed serial probe controller interface. High-speed serial trace data may be provided to external development tools, which may include a measurement hardware infrastructure module 114 and measurement and calibration tools 116.
[0053] Processor 102 may include TCM memory 101, and traced memory write data from processor 102 can be traced based on memory write data to TCM memory 101. TCM memory may include low-latency memory with a dedicated connection to the core. In various embodiments, data preparation circuitry may receive memory write data to memory other than, or in place of, TCM memory.
[0054] In various embodiments, the SRAM controller 104 communicates with direct memory access circuitry, and the traced memory write data from the SRAM controller 104 is traced based on memory write data accessible to the direct memory access circuitry. The traced memory write data from the SRAM controller 104 may include address bits, data bits, and control bits. As should be understood, these may be carried on the address bus, data bus, and control bus, respectively.
[0055] In various embodiments, the first data preparation circuit 106 is configured to identify a selected memory write location of tracked memory write data from the processor 102 based on a mapping of selected memory locations. For example, each memory location of the TCM memory 101 may be mapped to a single bit. If the bit has a pass setting (which may be high or low in different embodiments), the memory write data for that address location may be passed by the first data preparation circuit 106. If the bit corresponding to a given memory location does not have a pass setting, then the memory write data for that memory location may not be passed.
[0056] As should be understood, other data preparation circuitry (such as the second data preparation circuitry 108) can operate in a similar manner. The mapping for the data preparation circuitry can correspond to a source-accessible memory location coupled to the data preparation circuitry. For example, in various embodiments, the second data preparation circuitry 108 can be configured to identify a selected memory write location for tracked memory write data received from the SRAM controller 104 based on a mapping of selected memory locations. This mapping can correspond to an SRAM-accessible memory location for writing filter bits indicating whether memory write data intended for that location is passed.
[0057] In various embodiments, the mapping can be programmed by an external tool. This allows the mapping to be adjusted based on the external tool coupled to system 100. Therefore, the external tool can select which memory locations are relevant to its purpose, so only the relevant memory write locations are ultimately passed to the external tool. Through a bus system that provides trace data externally, the external tool can access the mapping that can be stored in the memory of system 100.
[0058] It should also be understood that mapping provides only one possible way to filter tracked memory write data received by the data preparation circuitry. The data preparation circuitry can use other methods to filter out unselected memory write location data and pass the selected memory write data. One such example is a set of registers. Programmable registers can be used to program the filtering locations. Other filtering methods can also be utilized.
[0059] Figure 2 A system for providing filtered tracking data, consistent with the embodiments, is described.
[0060] System 200 includes additional data preparation circuitry. Unless otherwise indicated, features designated with the same reference numerals throughout this disclosure may include the same features defined with the same reference numerals throughout this disclosure. System 200 may include a third memory write source 103 and a fourth memory write source 105. As should be understood, additional sources may include additional cores, which may include additional tightly coupled memory (in... Figure 2 (Not depicted in the text).
[0061] Additional sources may also include additional SRAM controllers or other memory write sources. As an example, a third memory write source 103 may include a processor. A fourth memory write source 105 may include an SRAM controller. The traced memory write data may include address bits, data bits, and control bits, which may be carried on a separate bus.
[0062] The third memory write source 103 can be coupled to the third data preparation circuit 107 via a memory port interface 111C (such as an MRP). Furthermore, the fourth memory write source 105 can be coupled to the fourth data preparation circuit 109 via a memory write data port interface 111D (such as an MRP). The third data preparation circuit 107 can be configured to filter unselected memory write locations received from the third memory write source 103 based on selected memory write locations received from the third memory write source 103.
[0063] The fourth data preparation circuit 109 can be configured to filter unselected memory write locations received from the fourth memory write source 105 based on the selected memory write locations received from the fourth memory write source 105.
[0064] The filtering performed by the third data preparation circuit 107 can be accomplished through mapping of memory locations accessible by the third memory write source 103 for writing. Bits corresponding to memory locations can be set to store settings corresponding to the transmitted values; these settings can include high or low settings depending on the embodiment. Write data to memory locations whose corresponding bits have transmitted settings can be transmitted by the third data preparation circuit 107. Furthermore, memory locations whose corresponding bits do not have transmitted settings are not transmitted.
[0065] Similarly, the filtering performed by the fourth data preparation circuit 109 can be accomplished through a mapping of memory locations accessible by the fourth memory write source 105 for writing. Bits corresponding to memory locations can be set to store a setting corresponding to a transmitted value, which may include a high setting or a low setting depending on the embodiment. Write data for memory locations whose corresponding bits have transmitted settings can be transmitted by the fourth data preparation circuit 109. Furthermore, memory locations whose corresponding bits do not have transmitted settings are not transmitted.
[0066] Figure 3 A data preparation circuit consistent with the embodiment is depicted.
[0067] The tracking data preparation circuit 300 may include a filtering circuit 302 configured to receive tracked memory write data with addressing data. In various embodiments, the filtering circuit 302 may be programmed to filter multiple address locations within a 32 / 64-bit range or at most a single address location. In various embodiments, only the desired location data is passed from this stage to the next stage.
[0068] The filtering circuit 302 allows the tracking data preparation circuit 300 to select only the desired data that the external measurement tool might need for analysis. This, in turn, allows the tracking data preparation circuit 300 to reduce the tracking data bandwidth and reduces the complexity of the entire instrument system by reducing filtering in the software or hardware of the measurement tool.
[0069] The filtering circuit 302 can filter the tracked memory write data based on the intended destination of the memory write operation. For example, the tracking circuit can utilize a mapping that associates the source-accessible memory location of the memory write data with bits indicating whether memory write data is passed to that location. An example of such a mapping has been referenced. Figure 1 and Figure 2 The above has already been described, so for the sake of brevity, it will not be repeated here. It is not a mapping, or there are other filtering methods besides mapping that can be used.
[0070] Filtering based on a specified target location for a memory write location allows the filtering circuit 302 to pass all memory write data for the selected location while discarding unwanted information. In various embodiments, an external tool can be programmed to control the information received by the location of interest.
[0071] In various embodiments, the filtering circuit 302 may include an addressing interface 302A for receiving address bits of the memory write location being tracked, a data interface 302B for receiving data bits of the memory write data being tracked, and a control interface 302C for receiving control bits of the memory write data. In various embodiments, the memory port interface may include an addressing interface, a data interface, and a control interface.
[0072] The filtering circuit 302 may include an addressable output interface 302D for outputting the address bits of the selected traced memory write location, a data output interface 302E for outputting the data bits of the selected traced memory write data, and a control output interface 302F for outputting the control bits of the selected memory write data. The output interfaces 302D, 302E, and 302F can be used to output results after the traced memory write data received by the filtering circuit 302 has been filtered.
[0073] The tracking data preparation circuit 300 may also include an output 302G to provide a reverse voltage signal to a source of data being written to the memory, such as processor 102 or SRAM controller 104. In various embodiments, output 302G may be internally coupled to FIFO data storage device 306 (first-in, first-out data storage device).
[0074] In various embodiments, the tracking data preparation circuit 300 may include a cascaded circuit 304 for cascading the address bits, data bits, and control bits of the selected memory write data received from the filtering circuit 302. It may be advantageous to combine this data for storage in the FIFO data storage device 306. In various embodiments, the FIFO data storage device 306 may output a tracked memory write dataset each clock cycle.
[0075] The tracking data preparation circuit 300 may also include a FIFO data storage device 306. The FIFO data storage device 306 may be coupled to a filtering circuit 302 to receive selected memory write data after the filtering circuit 302 has filtered data at unselected memory write locations. In various embodiments, a cascaded circuit 304 may be coupled between the filtering circuit 302 and the FIFO data storage device 306. The FIFO data storage device 306 may be advantageous in reducing the frequency of the backpressure signal. Setting the backpressure signal to be triggered at a desired level allows the core and the memory controller in the system to operate transparently. For example, the backpressure signal may be activated when the FIFO data storage device 306 reaches a threshold capacity. The backpressure signal may be set based on the FIFO fill level.
[0076] The threshold capacity used to activate the backpressure signal may vary across different embodiments, and it may depend on other capabilities of system 100. For example, a SoC with a faster processor may need to activate the backpressure earlier than a system with a slower processor. As should be understood, the size of the FIFO data storage device 306 and other factors may also affect when the backpressure signal is activated or the selected capacity level for activation of the backpressure signal.
[0077] In various embodiments, the activation of a backpressure signal can halt the operation of the source providing data for memory writes. This may be relevant for embodiments where achieving comprehensive data collection is critical, even at the cost of speed. However, as mentioned above, the event that triggers the backpressure signal can be selected to minimize the time required for the backpressure signal.
[0078] In various embodiments, the tracking data preparation circuit 300 may include a data compression circuit 308 coupled to the FIFO data storage device 306. The data compression circuit 308 may provide encapsulation addresses and data based on the content of selected memory write data received from the FIFO data storage device 306. The data compression circuit 308 may examine the selected memory write data received from the FIFO data storage device 306 to determine how the data can be compressed and encapsulated.
[0079] To give just a few examples, the data compression circuit 308 can compare an incoming traced memory write address with a previously traced memory write address received by the data compression circuit 308. If the two addresses point to the same memory location, they can be marked as grouped together in a single data packet. If the two addresses point to consecutive memory locations, they can be marked as grouped together. Each of the foregoing examples can be accomplished by comparing the addressing data (such as address bits) of the traced memory write data in the current cycle with the addressing data in the previous cycle.
[0080] In another example, if two write datasets are of the same type (such as aligned double words or half words), they can be tagged for grouping. This can be checked by comparing the control data of the traced memory writes from the current cycle with the control data of the memory writes from the previous cycle.
[0081] It should be understood that the tracked memory write data received by the data compression circuit 308 can also be checked for various other combinations that may present potential data packet opportunities. In various embodiments, more than 100 combinations may be checked to identify compression opportunities. Based on the detected combinations, the data compression circuit 308 can provide information to the encapsulation circuit 310 to encapsulate the input data back-to-back into a wider output data bus. This principle, in turn, reduces the total number of clock cycles required to transmit tracked data from the output. This saves output bandwidth. Compression saves output bandwidth because it determines the encapsulation order of the input data in the wider output data bus.
[0082] Encapsulation can also allow the removal of additional data from the data supplied to external tools. Control bytes and address information can be encapsulated only once within a single packet of memory trace data to save output data bandwidth. For example, for a set of memory writes to the same or consecutive addresses that are packaged together, the address data can be provided only once, rather than providing addressing data for each instance of the memory write. Other data can also be removed depending on the packaging and compression.
[0083] The encapsulation circuit 310 can be configured to group selected memory write data and addresses into data packets based on encapsulation information received from the data compression circuit 308. For example, consecutive tracked memory write data can be packaged together and output. The data compression circuit 308 can activate a signal when it receives a consecutive memory write dataset. This signal can be provided to the data encapsulation circuit and can instruct the encapsulation circuit 310 to package the most recently received memory write data with the memory write data from the previous cycle. As long as this signal is activated from the data compression circuit 308, the encapsulation circuit 310 can continue to group subsequently received memory write data. Once the signal is deactivated, the encapsulation circuit 310 can output the current data packet.
[0084] For other cycles of traced memory writes identified for grouping, a similar procedure can be followed. When composable addresses and data are identified, data compression circuitry 308 can activate a signal. Encapsulation circuitry 310 can pack these addresses and data together until the signal is deactivated.
[0085] The encapsulation circuit 310 can accept input from the data compression circuit 308 and encapsulate consecutive and aligned data back-to-back with control bytes and address information. The width of the output bus 310A of the encapsulation circuit 310 can be larger than the width of the output bus 308A of the data compression circuit 308. This allows data packets containing addressed data written to the tracked memory to be output from the data encapsulation circuit, rather than outputting data corresponding to one write operation at a time.
[0086] In various embodiments, it may take more than one output cycle of the output bus 310A to output the tracked memory write data packet. For example, if a packet of consecutive memory write data fills the output bus 310A, the first cycle may output the first portion of the memory write data, and the second cycle may output the additional memory write data of the same packet. For the entire packet, addressing information may only need to be output once. Additional cycles may also be utilized until the signal indicating that composable data is identified is deactivated. Similarly, if the signal is deactivated before the bus is full, output can be performed even when all bits of the bus are filled with data.
[0087] In various embodiments, the trace data preparation circuitry 300 may further include an output controller 312 configured to receive data packets from the encapsulation circuitry and convert the packets into a standard protocol format. The output controller may receive encapsulated data and provide it to the SoC's downstream trace infrastructure (such as the data collection network 110). It may utilize standard interface protocols, such as ARM's Advanced Trace Bus (ATB). Probe data may be output at probe data output 312A, and probe control data may be output at probe control output 312B. Control output 312B may provide control data that can be decoded by the slave device receiving the trace data for further processing.
[0088] The tracking data preparation circuit 300 may also include a timestamp circuit 314. The timestamp circuit 314 may be a programmable unit that can add timestamp data to the tracking data after an interval. For example, the timestamp circuit 314 may count the output cycles until an interval is reached. If the interval is set to five cycles, a timestamp can be added every fifth cycle.
[0089] Timestamped data can be used by external tools to correlate data from various sources on a time scale. This can be helpful in tracking when a write occurred. As already discussed, systems for preparing tracking data can include numerous data preparation circuits, so timestamping the output can be advantageous. Timestamps can also be used by external tools to sort data after it has been written to the address and decapsulated.
[0090] The interval between timestamps can be programmable. For example, it can be programmed by an external tool. This interval can be stored in a memory location accessible to the external tool for writing. Communication can be carried from the external tool via a bus. As should be understood, the more data preparation circuitry in the system or the more demanding the external tool, the more beneficial it may be to reduce the interval.
[0091] Figure 4 A flowchart illustrating a method for providing filtered tracking data, consistent with the embodiments, is depicted.
[0092] In various embodiments, a method 400 for preparing filtered tracking data includes: in step 402, receiving tracked memory write data; in step 404, identifying a selected memory write location; in step 406, encapsulating the selected memory write address and data into a data packet; and in step 408, outputting the data packet to a development tool.
[0093] In various embodiments, method 400 may also include converting the data packet into a standard format for output.
[0094] In various embodiments, the method 400 includes identifying the selected memory write data by selecting a memory write address for the selected memory location.
[0095] In various embodiments, the method 400 may further include analyzing selected memory write locations to determine how to encapsulate the selected memory write data.
[0096] In various embodiments, method 400 may further include analyzing the selected memory write data by determining whether the memory write location points to a contiguous address, points to a non-contiguous address, or belongs to the same type.
[0097] The accompanying diagrams use block diagrams to depict the circuitry and other components. These diagrams should not be interpreted as marking the physical boundaries of the corresponding components. As should be understood, physical components can be distributed throughout the entire SoC.
[0098] Example 1. A system for providing filtered trace data, the system comprising: a processor; a static random access memory (SRAM) controller; a first data preparation circuit coupled to the processor to receive traced memory write data from the processor, the first data preparation circuit being configured to filter unselected traced memory write data from selected traced memory write data; a second data preparation circuit coupled to the SRAM controller to receive traced memory write data from the SRAM controller, the second data preparation circuit being configured to filter unselected traced memory write data from selected traced memory write data; a data collection network configured to receive selected traced memory write data from the first data preparation circuit and selected traced memory write data from the second data preparation circuit; and an output interface coupled to the data collection network to output the selected traced memory write data from the first data preparation circuit and the selected traced memory write data from the second data preparation circuit.
[0099] Example 2. The system according to Example 1, wherein the processor includes tightly coupled memory, and traced memory write data from the processor corresponds to memory write data operations of the tightly coupled memory.
[0100] Example 3. The system according to Example 1 or Example 2, wherein the SRAM controller communicates with a corresponding processor or non-processor host, and the traced memory write data from the SRAM controller corresponds to a memory write data operation for memory accessible by the processor or non-processor host.
[0101] Example 4. The system according to Examples 1 to 3, wherein the traced memory write data from the processor includes address bits, data bits and control bits, and the traced memory write data from the SRAM controller includes address bits, data bits and control bits.
[0102] Example 5. The system according to Examples 1 to 4, wherein a first data preparation circuit is configured to identify selected tracked memory write data from the processor based on a mapping of selected memory locations.
[0103] Example 6. The system according to Examples 1 to 5, wherein the second data preparation circuit is configured to identify selected memory write data from the SRAM controller based on a mapping of the selected memory location.
[0104] Example 7. The system according to Examples 1 to 6, wherein the first data preparation circuit includes: a filtering circuit for filtering unselected tracked memory write data from selected tracked memory write data; and a first-in-first-out buffer for storing selected tracked memory write data.
[0105] Example 8. The system according to Examples 1 through 7, wherein the first data preparation circuit is configured to activate the backpressure signal provided to the processor in response to the first-in-first-out buffer reaching full capacity.
[0106] Example 9. The system according to Examples 1 to 8, wherein the first data preparation circuit includes a data compression circuit configured to identify a data packet of selected tracked memory write data and provide encapsulated data to a data encapsulation circuit of the first data preparation circuit to group the selected tracked memory write data into data packets having address and control information.
[0107] Example 10. The system according to Examples 1 to 9, wherein the first data preparation circuit further includes a timestamp circuit that adds timestamps to data packets.
[0108] Example 11. The system according to Examples 1 through 4 further includes a seeker controller coupled to data encapsulation circuitry for receiving data packets and providing them to a data collection network.
[0109] Example 12. A method for filtering trace data, the method comprising: receiving traced memory write data; identifying selected memory write data; encapsulating the selected memory write data into a data packet; and outputting the data packet to a development tool.
[0110] Example 13. The method described in Example 12 further includes converting the data packet into a standard format for output.
[0111] Example 14. The method according to Example 12 or Example 13, wherein identifying the selected tracked memory write data includes selecting memory write data for the selected memory location.
[0112] Example 15. The method according to Examples 12 to 14, wherein the data written to the traced memory includes address bits, data bits, and control bits.
[0113] Example 16. The method according to Examples 12 through 15, wherein the selected memory write data is encapsulated into a data packet having control bytes.
[0114] Example 17. The method according to Examples 12 to 16 further includes analyzing the selected memory write data to determine how to encapsulate the selected memory write data.
[0115] Example 18. The method according to Examples 12 to 17, wherein analyzing the selected memory write data includes determining whether the selected memory write data corresponds to memory write data operations pointing to contiguous addresses, pointing to non-contiguous addresses, and of the same type.
[0116] Example 19. A tracking data preparation circuit includes: a filtering circuit configured to receive tracked memory write data; a first-in-first-out (FIFO) buffer coupled to the filtering circuit to receive selected memory write data filtered by the filtering circuit; a data compression circuit coupled to the FIFO buffer and configured to provide encapsulated data based on the content of the selected memory write data; an encapsulation circuit configured to group the selected memory write data into data packets based on the encapsulated data; and an output controller configured to receive data packets from the encapsulation circuit and convert the data packets into a standard protocol format.
[0117] Example 20. The tracking data preparation circuit according to Example 19 further includes a timestamp circuit configured to add a timestamp to every nth data packet, where n is an integer.
[0118] Example 21. A tracking data preparation circuit according to Example 19 or Example 20, wherein the output bus for the encapsulation circuit is configured to send more bits per cycle than the input bus for the encapsulation circuit.
[0119] Example 22. The method according to Examples 19 to 21, wherein the traced memory write data received by the filtering circuit includes address bits, data bits and control bits.
[0120] Example 23. The method according to Examples 19 to 22, wherein the filtering circuit includes an address input for receiving address bits, a data input for receiving data bits, a control input for receiving control bits, an address output for providing address bits, a data output for providing data bits, and a control output for providing control bits.
[0121] Example 24. The method according to Examples 19 to 23 further includes a cascaded circuit for receiving address bits, data bits, and control bits from the filter circuit, the cascaded circuit being configured to cascade the address bits, data bits, and control bits and provide them to the first-in-first-out buffer.
[0122] While the invention has been described with reference to illustrative embodiments, this description is not intended to be limiting. Various modifications and combinations of the illustrative embodiments, as well as other embodiments of the invention, will be apparent to those skilled in the art upon reference to this description. Therefore, the appended claims are intended to cover any such modifications or embodiments.
Claims
1. A system for providing filtered tracking data, the system comprising: processor; Static Random Access Memory (SRAM) controller; A first data preparation circuit, coupled to the processor to receive tracked memory write data from the processor, is configured to filter unselected tracked memory write data from selected tracked memory write data. A second data preparation circuit, coupled to the SRAM controller to receive tracked memory write data from the SRAM controller, is configured to filter unselected tracked memory write data from selected tracked memory write data. A data collection network is configured to receive the selected tracked memory write data from a first data preparation circuit and from a second data preparation circuit. as well as An output interface, coupled to the data collection network, outputs the selected tracked memory write data from the first data preparation circuit and the selected tracked memory write data from the second data preparation circuit. Each of the first data preparation circuit and the second data preparation circuit includes: a corresponding filtering circuit for filtering the unselected tracked memory written data from the selected tracked memory; And a corresponding first-in-first-out (FIFO) buffer for storing the selected data written to the tracked memory. Each of the first and second data preparation circuits includes a corresponding data compression circuit coupled to the corresponding FIFO buffer. The data compression circuit is configured to identify a data packet containing selected traced memory write data and provide encapsulation data to the data encapsulation circuit of the corresponding data preparation circuit to group the selected traced memory write data into a data packet containing address and control information. The data compression circuit is configured to examine the selected traced memory write data received from the FIFO buffer to determine how the data can be compressed and packaged by comparing the address and control data of the traced memory write data in the current cycle with the address and control data of the previous cycle.
2. The system of claim 1, wherein the processor includes tightly coupled memory, and the tracked memory write data from the processor corresponds to a memory write data operation for the tightly coupled memory.
3. The system of claim 1, wherein the SRAM controller communicates with a corresponding processor or non-processor host, and the tracked memory write data from the SRAM controller corresponds to a memory write data operation for memory accessible by the processor or the non-processor host.
4. The system of claim 1, wherein the traced memory write data from the processor includes address bits, data bits, and control bits, and the traced memory write data from the SRAM controller includes address bits, data bits, and control bits.
5. The system of claim 1, wherein the first data preparation circuit is configured to identify the selected tracked memory write data from the processor based on a mapping of the selected memory location.
6. The system of claim 1, wherein the second data preparation circuit is configured to identify the selected memory write data from the SRAM controller based on a mapping of the selected memory location.
7. The system of claim 1, wherein the first data preparation circuit is configured to activate a backpressure signal provided to the processor in response to the first-in-first-out buffer reaching full capacity.
8. The system of claim 1, wherein the first data preparation circuit further comprises a timestamp circuit configured to add a timestamp to the data packet.
9. The system of claim 1 further includes a seeker controller coupled to the data encapsulation circuit, the seeker controller being configured to receive data packets and provide them to the data collection network.
10. A method for filtering tracking data in a system according to any one of claims 1 to 9, the method comprising: Receive data written to the tracked memory; The selected memory is used to write data; The selected memory is written data and encapsulated into a data packet; as well as Output the data packet to the development tool.
11. The method of claim 10, further comprising converting the data packet into a standard format for output.
12. The method of claim 10, wherein identifying the selected tracked memory write data includes selecting memory write data for the selected memory location.
13. The method of claim 10, wherein the data written to the tracked memory includes address bits, data bits, and control bits.
14. The method of claim 10, wherein the selected memory write data is encapsulated into a data packet having control bytes.
15. The method of claim 10, further comprising analyzing the selected memory write data to determine how to encapsulate the selected memory write data.
16. The method of claim 15, wherein analyzing the selected memory write data includes determining whether the selected memory write data corresponds to memory write data operations pointing to contiguous addresses, pointing to non-contiguous addresses, and belonging to the same type.
17. A tracking data preparation circuit, comprising: The filtering circuit is configured to receive data written to the tracked memory. A first-in-first-out buffer is coupled to the filtering circuit to receive selected memory write data filtered by the filtering circuit. A data compression circuit, coupled to the first-in-first-out buffer, is configured to provide encapsulated data based on the content of the data written to the selected memory; The encapsulation circuit is configured to group the selected memory write data into a data packet based on the encapsulation data; as well as The output controller is configured to receive data packets from the encapsulation circuit and convert the data packets into a standard protocol format.
18. The tracking data preparation circuit of claim 17 further includes a timestamp circuit configured to add a timestamp to each nth data packet, where n is an integer.
19. The tracking data preparation circuit of claim 17, wherein the output bus for the packaged circuit is configured to send more bits per cycle than the input bus for the packaged circuit.
20. The tracking data preparation circuit of claim 17, wherein the tracked memory write data received by the filtering circuit includes address bits, data bits, and control bits.
21. The tracking data preparation circuit of claim 17, wherein the filtering circuit includes an address input for receiving address bits, a data input for receiving data bits, a control input for receiving control bits, an address output for providing address bits, a data output for providing data bits, and a control output for providing control bits.
22. The tracking data preparation circuit of claim 17, further comprising a cascaded circuit for receiving address bits, data bits, and control bits from the filtering circuit, the cascaded circuit being configured to cascade the address bits, data bits, and control bits and provide them to the first-in-first-out buffer.
Citation Information
Patent Citations
Compression of data traces for an integrated circuit with multiple memories
EP1745489A1
System and method for capturing and storing trace data signals in system main storage
US20020078264A1
Integrated real-time data tracing with low pin count output
US20030018929A1
Compression of data traces for an integrated circuit with multiple memories
US20050268177A1
Method and apparatus for filtering trace information
US20140068344A1
