The present disclosure relates to a method and a system for reducing calculating time and a computer readable recording medium. More particularly, the present disclosure relates to a method and a system for reducing efficiency calculating time and a computer readable recording medium.
Due to the increase of the efficiency and the functions of the conventional System On a Chip (SOC), the circuit complexity of the SOC also increases, the data transmission between nodes and different buses are more common. However, the conventional efficiency analyzing method records the waveform and signal variation of all the nodes in the SOC, hence, the data amount is huge. Thus, reading the waveform signal of each of the nodes from the waveform recording profile and obtaining a data amount, a transmitting time, a transmitting beginning time and a transmitting ending time takes a lot of computing time and also needs to be computed by a processor with better performance to calculate the transmission performance.
Therefore, a method and a system for reducing efficiency calculating time and a computer readable recording medium which can reduce the computing data amount are commercially desirable.
According to one aspect of the present disclosure, a method for reducing efficiency calculating time, which is configured to transform a waveform recording profile of a bus structure into an efficiency analyzing information so as to analyze a transmission efficiency of a transmission instruction. The method for reducing efficiency calculating time includes driving a processor to read the waveform recording profile from a database, the waveform recording profile includes a plurality of waveform signal information corresponding to the bus structure; driving the processor to retrieve a part of the waveform signal information corresponding to a designated list from the waveform recording profile, the designated list is corresponding to a plurality of nodes of the bus structure; driving the processor to map the part of the waveform signal information to a plurality of transmitting signal information of a plurality of connecting ports to generate a mapped waveform recording profile, any one of the connecting ports is configured to connect two of the nodes; driving the processor to define a plurality of timestamps of each of the connecting ports according to a designated voltage level of each of the transmitting signal information; and driving the processor to integrate the mapped waveform recording profile and the timestamps to generate the efficiency analyzing information.
According to another aspect of the present disclosure, a system for reducing efficiency calculating time, which is configured to transform a waveform recording profile of a bus structure into an efficiency analyzing information so as to analyze a transmission efficiency of a transmission instruction. The system for reducing efficiency calculating time includes a database and a processor. The database is signally connected to the bus structure, and includes the waveform recording profile and a designated list. The waveform recording profile includes a plurality of waveform signal information corresponding to the bus structure. The designated list is corresponding to a plurality of nodes of the bus structure, and corresponding to a part of the waveform signal information. The processor is signally connected to the database, and is configured to implement a method for reducing efficiency calculating time. The method for reducing efficiency calculating time includes reading the waveform recording profile; retrieving the part of the waveform signal information corresponding to the designated list from the waveform recording profile; mapping the part of the waveform signal information to a plurality of transmitting signal information of a plurality of connecting ports of the bus structure to generate a mapped waveform recording profile, any one of the connecting ports is configured to connect two of the nodes; defining a plurality of timestamps of each of the connecting ports according to a designated voltage level of each of the transmitting signal information; and integrating the mapped waveform recording profile and the timestamps to generate the efficiency analyzing information.
According to another aspect of the present disclosure, a computer readable recording medium stores a program for a processor capable of transforming a waveform recording profile of a bus structure into an efficiency analyzing information so as to analyze a transmission efficiency of a transmission instruction, to execute a method for reducing efficiency calculating time. The method for reducing efficiency calculating time includes driving the processor to read the waveform recording profile from a database, the waveform recording profile includes a plurality of waveform signal information corresponding to the bus structure; driving the processor to retrieve a part of the waveform signal information corresponding to a designated list from the waveform recording profile, the designated list is corresponding to a plurality of nodes of the bus structure; driving the processor to map the part of the waveform signal information to a plurality of transmitting signal information of a plurality of connecting ports to generate a mapped waveform recording profile, any one of the connecting ports is configured to connect two of the nodes; driving the processor to define a plurality of timestamps of each of the connecting ports according to a designated voltage level of each of the transmitting signal information; and driving the processor to integrate the mapped waveform recording profile and the timestamps to generate the efficiency analyzing information.
The present disclosure can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows:
The embodiment will be described with the drawings. For clarity, some practical details will be described below. However, it should be noted that the present disclosure should not be limited by the practical details, that is, in some embodiment, the practical details is unnecessary. In addition, for simplifying the drawings, some conventional structures and elements will be simply illustrated, and repeated elements may be represented by the same labels.
It will be understood that when an element (or device) is referred to as be “connected to” another element, it can be directly connected to other element, or it can be indirectly connected to the other element, that is, intervening elements may be present. In contrast, when an element is referred to as be “directly connected to” another element, there are no intervening elements present. In addition, the terms first, second, third, etc. are used herein to describe various elements or components, these elements or components should not be limited by these terms. Consequently, a first element or component discussed below could be termed a second element or component.
Please refer to
In detail, the bus structure 10 can be the AMBA or other SOC in the Advanced RISC Machine (ARM), the database 120 can include a Random Access Memory (RAM) capable to store information and instruction for the processor 130 to process or other dynamic storing device, the processor 130 can include any type of processor, microprocessor, but the present disclosure is not limited thereto. The waveform recording profile PF records the waveform signal information S1 of the bus structure 10. The waveform signal information S1 includes a signal code, a voltage value and the time interval corresponded to the voltage value of each of the signal of each of the nodes. The waveform recording profile PF can include one of an IEEE 1364 Value Change Dump (VCD) profile, a Fast Signal Data Base (FSDB) profile, a Signal Value profile or other signal variation profile with other formats, but the present disclosure is not limited thereto.
The method 200 for reducing efficiency calculating time is configured to transform the waveform recording profile PF of the bus structure 10 into an efficiency analyzing information so as to analyze a transmission efficiency of a transmission instruction. The method 200 for reducing efficiency calculating time includes steps S01, S02, S03, S04, S05. The step S01 includes driving the processor 130 to read the waveform recording profile PF from the database 120. The waveform recording profile PF includes the waveform signal information S1 corresponding to the bus structure 10. The step S02 includes driving the processor 130 to retrieve a part of the waveform signal information S1 corresponding to the designated list L1 from the waveform recording profile PF. The designated list L1 is corresponding to the nodes of the bus structure 10. The step S03 includes driving the processor 130 to map the part of the waveform signal information S1 to a plurality of transmitting signal information of the connecting ports to generate a mapped waveform recording profile. Any one of the connecting ports is configured to connect two of the nodes. The step S04 includes driving the processor 130 to define a plurality of timestamps of each of the connecting ports according to a designated voltage level of each of the transmitting signal information. The step S05 includes driving the processor 130 to integrate the mapped waveform recording profile and the timestamps to generate the efficiency analyzing information. Thus, the system 100 for reducing efficiency calculating time of the present disclosure retrieves a part of the waveform signal information S1 without calculating all the waveform signal information S1 in the waveform recording profile PF, thereby reducing the computing data amount of the efficiency analyzation, shorten the analyzing computing time and increasing the computing speed.
In detail, the step S01 is performed to read the waveform recording profile PF of the bus structure 10 stored in the database 120. The step S02 is performed to retrieve a part of the waveform signal information S1 in the waveform recording profile PF, and the part of the waveform signal information S1 are listed in the designated list L1. The designated list L1 can be listed in Table 1. For example, the bus structure 10 includes M nodes (i.e., node 1, node 2-node M), the node 1 includes six waveform signal information S1, the node 2 includes seven waveform signal information S1, and the node M includes eight waveform signal information S1. The designated list L1 shows the signal names of the signals with the voltage level changes during the nodes 1, 2-M transmitting data. The voltage level of the signals changed while the nodes 1, 2-M transmitting data are listed in the designated list L1. In the step S02, three waveform signal information S1 of the node 1 corresponding to the designated list L1, five waveform signal information S1 of the node 2 corresponding to the designated list L1 and three waveform signal information S1 of the node M are sketched, and so on.
Each adjacent two nodes in the bus structure 10 are connected via a connecting port, and transmit data via the connecting port. The step S03 is performed to match the waveform signal information S1 of each of the nodes record in the waveform recording profile PF with the transmitting signal information of the connecting ports to generate a mapped waveform recording profile. The details of the steps S01, S02, S03 will be described in more detail below.
Please refer to
Please refer to
In detail, when one of the nodes initiates a data transmission to another one of the nodes, and the data transmission is reading data, a number of the timestamps of one of the connecting ports between the one and the another one of the nodes is five, and the timestamps includes a first timestamp, a second timestamp, a third timestamp, a fourth timestamp and a fifth timestamp. The first timestamp is corresponding to a time point when the one of the nodes initiates an address communicating request. The second timestamp is corresponding to a time point when the another one of the nodes replies the address communicating request. The third timestamp is corresponding to a time point when the one of the nodes transmits a data. The fourth timestamp is corresponding to a time point when the another one of the nodes receives the data. The fifth timestamp is corresponding to a time point when the data has been transmitted. When the data transmission is writing data, a number of the timestamps is seven, and the timestamps can further include a sixth timestamp and a seventh timestamp. The sixth timestamp is corresponding to a time point when the another one of the nodes requests to establish a reply channel. The seventh timestamp is corresponding to a time point when the one of the nodes receives the reply channel being established.
Please refer to
Please refer to
In other embodiments of the present disclosure, the method for reducing efficiency calculating time can further generate an efficiency abnormal alert information when the transmission efficiency is not conform to a predetermined value. In detail, the method for reducing efficiency calculating time can compare the time interval between all the timestamps with a predetermined value of the timestamps of the historical transmitting information. When the time interval between two of the adjacent timestamps is much bigger than the predetermined value, the time interval may have some problem, and the efficiency abnormal alert information is generated.
Please refer to
For instance, in
In
In
In detail, the transmission recording table can be listed in Table 2. The transmission recording table can be a data statistics profile developed by the C++ program language, but the present disclosure is not limited thereto.
Please refer to Table 2, Table 2 lists the data transmission behaviors DT1, DT2, DT3, DT4, DT5, DT6, DT7, DT8, DT9, DT10, DT11, DT12, DT13-DTN-3, DTN-2, DTN-1 and DTN begin from the time value 0. Take the data transmission behavior DT1 as example, a signal variation of the connecting port code P4 occurred when the time value is 100 ns is the same as a designated voltage level of the first timestamp, therefore, the timestamp of the data transmission behavior DT1 is 1, and the address of the terminal node is “2689597440”. As shown in the data transmission behaviors DT2-DTN in Table 2, the time values of the signal variations of the connecting port code P5 are all near to the connecting port code P4, and the timestamp of the connecting port code P5 are the same as the connecting port code P4. Therefore, the terminal node of the data transmission behavior DT1 is corresponding to the connecting port code P5, and “2689597440” is an address corresponded to the connecting port code P5.
In the fourth embodiment, when the connecting port code P4 reads a data from the connecting port code P5, all the operation corresponded to the first timestamp, the second timestamp, the third timestamp, the fourth timestamp and the fifth timestamp of the reading data should be completed.
Please refer to
In other words, the data stream storing step S17 is performed to take out the data transmission behaviors DT1, DT3, DT5, DT7, DT9, DTN-3 and DTN-1, which are corresponded to the connecting port code P4, from the queues Q1-Q7, and combine the data transmission behaviors DT1, DT3, DT5, DT7, DT9, DTN-3 and DTN-1 into a data stream, and take out the data transmission behaviors DT2, DT4, DT6, DT8, DT10, DTN-2 and DTN, which are corresponded to the connecting port code P5, from the queues Q1-Q7, and combine the data transmission behaviors DT2, DT4, DT6, DT8, DT10, DTN-2 and DTN into another data stream.
Please refer to
In response to determine that the first determining result is true and the second determining result is false, the comparing step S18 can further include a first temporary storing step S184, a step S185, a second temporary storing step S186 and a step S187. The first temporary storing step S184 includes configuring the processor 130 to store the one of the data streams into one register. The step S185 includes configuring the processor 130 to perform the first determining step S182b and the second determining step S183b to another one of the data streams. The second temporary storing step S186 includes configuring the processor 130 to store another one of the data streams into the register, when the first determining result corresponding to another one of the data streams is true and the second determining result corresponding to the another one of the data streams is false. The step S187 includes configuring the processor 130 to calculate a sum of the data transmission amounts in the register, and determine whether the sum is the same as the data amount of the data. In response to determine that the first determining result is true and the second determining result is true, the one of the data streams and another one of the data streams are both the one of the connecting port codes P4, P5, P11, P12, P21 and P22.
In detail, the step S18 can further include the steps S181a and S181b. The step S181a is performed to obtain a data stream. The first determining step S182a is performed to determine at least one of the connecting port codes P4, which is corresponded to the data transmission behaviors DT1, DT3, DT5, DT7, DT9, DTN-3, DTN-1 of the data stream and the terminal node (the connecting port code P5) is the same as the transmitting port (the connecting port code P4) and the receiving port (the connecting port code P12), and whether the transmitting starting time (100 ns) of the data stream is later than the transmitting time of the transmission instruction. If any of the nodes n1-n18 and the terminal node corresponded to the present data stream is different from the transmitting port and the receiving port of the transmission instruction, the present data stream may not be one of the connecting port codes P4, P5, P11, P12, P21, P22 of the transmission route R1 of the transmission instruction. If both of the nodes n1-n18 and the terminal node corresponded to the present data stream are the same as the transmitting port and the receiving port of the transmission instruction and the transmitting starting time of the present data stream is earlier than the transmitting time of the transmission instruction, the present data stream occurred before the transmission instruction. Thus, the present data stream may not be one of the connecting port codes P4, P5, P11, P12, P21 and P22 of the transmission route R1 of the transmission instruction.
In response to determine that the first determining result of the first determining step S182a is false, the step S181a is performed again to obtain another data stream. In response to determine that the first determining result is true, the second determining step S183a is performed. When the data amount of the data transmitted by the transmission instruction is 8 bytes, and the data transmission amount of the present data stream is also 8 bytes, the second determining result is true, and the present data stream is determined as one of the connecting port codes P4, P5, P11, P12, P21 and P22. If the data amount of the data transmitted by the transmission instruction is 8 bytes, and the data transmission amount of the present data stream is 4 bytes, the second determining result is false, and the first temporary storing step S184 is performed. The first temporary storing step S184 is performed to store the present data stream in the aforementioned register, and the step S185 is performed. The step S185 includes performing the step S181b, the first determining step S182b and the second determining step S183b. The step S181b is performed to obtain another data stream, and perform the first determining step S182b on another data stream. In response to determine that the first determining result of the first determining step S182b is false, the step S181b is performed to obtain other data stream. In response to determine that the first determining result is true, the second determining step S183b is performed. If the data amount of the data transmitted by the transmission instruction is 8 bytes, and the data transmission amount of another data stream is also 8 bytes, the second determining result is true, and another data stream is determined as one of the connecting port codes P4, P5, P11, P12, P21 and P22. If the data amount of the data transmitted by the transmission instruction is 8 bytes, and the data transmission amount of another data stream is 4 bytes, the second determining result is false, and the second temporary step S186 is performed to store another data stream into the aforementioned register. The step S187 is performed to calculate a sum of the data transmission amounts of the data streams in the register, and determine whether the sum is the same as the data amount of the data. If the data transmission amount of the present data stream and the data transmission amount of another data stream are both 4 bytes, the sum of the data transmission amounts of the present data stream and another data stream is the same as the data amount of the data, and a storing address of the present data stream and a storing address of the another data stream are continuous at the same node, that is, a transmission instruction with a 8 byte data is divided into two pieces of 4 byte data to transmit. Thus, the present data stream and another data stream are both correspond to one of the connecting port codes P4, P5, P11, P12, P21 and P22. In detail, if a data of the present data stream is stored in addresses 100-103 of the connecting port code P5, and a data of another data stream is stored in addresses 104-107 of the connecting port code P5, the storing addresses of the present data stream and another data stream at the connecting port code P5 are continuous. Thus, the method 300 for reducing efficiency calculating time of the present disclosure can calculate the data transmitting efficiency crossing different buses.
Please refer to
A computer readable recording medium stores a program for a processor (not shown) capable of transforming a waveform recording profile of a bus structure into an efficiency analyzing information so as to analyze a transmission efficiency of a transmission instruction, to execute the method 200, 200a, 300 for reducing efficiency calculating time. The computer readable recording medium can be a CR-ROM, a flexible disk (FD), a CD-R, a digital versatile disk (DVD), a USB medium and a flash memory, but the present disclosure is not limited thereto.
According to the aforementioned embodiments and examples, the advantages of the present disclosure are described as follows.
1. The system for reducing efficiency calculating time of the present disclosure retrieves a part of the waveform signal information without calculating all the waveform signal information in the waveform recording profile, thereby reducing the computing data amount of the efficiency analyzation, shorten the analyzing computing time and increasing the computing speed.
2. The method for reducing efficiency calculating time of the present disclosure can calculate the state of each of the timestamps during the data transmission accurately, and find out the interval with abnormal transmitting speed, thereby clearing the abnormal problem effectively.
3. The method for reducing efficiency calculating time of the present disclosure can calculate the data transmitting efficiency crossing different buses.
Although the present disclosure has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the embodiments contained herein.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present disclosure without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the present disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
113130469 | Aug 2024 | TW | national |
This application claims priority to U.S. provisional Ser. No. 63/594,960, filed Nov. 1, 2023 and Taiwan Application Serial Number 113130469, filed Aug. 14, 2024, which are herein incorporated by reference.
Number | Date | Country | |
---|---|---|---|
63594960 | Nov 2023 | US |