CN115576473B - Waveform display method, computer device, and storage medium - Google Patents

Waveform display method, computer device, and storage medium Download PDF

Info

Publication number
CN115576473B
CN115576473B CN202210944147.0A CN202210944147A CN115576473B CN 115576473 B CN115576473 B CN 115576473B CN 202210944147 A CN202210944147 A CN 202210944147A CN 115576473 B CN115576473 B CN 115576473B
Authority
CN
China
Prior art keywords
scroll bar
waveform
time axis
point
scroll
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202210944147.0A
Other languages
Chinese (zh)
Other versions
CN115576473A (en
Inventor
黄锦标
颜可煌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Core Huazhang Technology Beijing Co ltd
Original Assignee
Core Huazhang Technology Beijing Co ltd
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 Core Huazhang Technology Beijing Co ltd filed Critical Core Huazhang Technology Beijing Co ltd
Priority to CN202210944147.0A priority Critical patent/CN115576473B/en
Publication of CN115576473A publication Critical patent/CN115576473A/en
Application granted granted Critical
Publication of CN115576473B publication Critical patent/CN115576473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/12Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a waveform display method, a computer device and a storage medium. The method comprises the following steps: and generating a waveform display area according to the waveform data, and receiving an operation instruction to display the modified scroll bar according to the operation instruction, so that the scale of the scroll bar is adjusted, a waveform diagram of a time period required to be debugged can be accurately positioned and displayed, and further, the simulation efficiency can be improved.

Description

Waveform display method, computer device, and storage medium
Technical Field
The present application relates to the field of electronics, and in particular, to a waveform display method, a computer device, a storage medium, and a computer program product.
Background
With the development of electronic technology, logic system designs (e.g., chip designs) have been widely used. Whereas debugging of logic system designs typically involves debugging of the emulated waveforms. For example, for a logic system design, a waveform diagram of a signal over a period of time may be obtained by a simulation tool, while debugging of the logic system design may be accomplished by debugging waveforms displayed on a waveform viewer.
In general, the waveform diagram obtained by the simulation tool is often the waveform of the chip in the whole operation period, and when the operation period is long, the display interface of the waveform viewer cannot completely and clearly display the whole waveform diagram. As shown in fig. 1, the display of waveforms for different time periods can now be controlled by moving the scroll bar 02 under the waveform viewer 01. In moving the scroll bar 02, the distance that the waveform moves each time is determined by the scale of the scroll bar 02, as shown in fig. 1, the scale of the scroll bar 02 is embodied as the length of the scroll bar 02. If the dimensions of the scroll bar 02 are too large, the waveform has moved a significant time interval even though the scroll bar 02 has moved only a small distance; whereas if the dimensions of the scroll bar 02 are too small, the waveform is only shifted for a small time interval even if the scroll bar 02 is shifted a large distance. The scale of the scroll bar 02 is the scale of the scroll bar 02, and the scale size of the scale is shown as a scale 04 in fig. 1.
However, since the debugging of the simulation waveform runs through the whole chip operation period, it is difficult to accurately position the waveform corresponding to the target time interval by moving the scroll bar at present, so that the simulation efficiency is low.
Therefore, in the process of waveform debugging, it is needed to find a method that can quickly adjust the scale of the scroll bar so as to accurately locate and display the waveform diagram of the time period required to be debugged.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a waveform display method, a computer device, a storage medium, and a computer program product that can improve simulation efficiency.
In a first aspect, the present application provides a waveform display method. The method comprises the following steps:
generating a waveform display area according to the waveform data, wherein the waveform display area comprises a waveform chart, a time axis and a scroll bar which is movable along the time axis;
receiving an operation instruction, wherein the operation instruction comprises a modification for activating the scroll bar and a modification range of the scroll bar; and
and displaying the modified scroll bar according to the operation instruction.
In a second aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method according to the first aspect above when the processor executes the computer program.
In a third aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method as described in the first aspect above.
In a fourth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the method as described in the first aspect above.
The waveform display method, the computer equipment, the storage medium and the computer program product can generate the waveform display area according to the waveform data and receive the operation instruction so as to display the modified scroll bar according to the operation instruction, thereby simply and conveniently realizing flexible adjustment of the scale of the scroll bar, accurately positioning and displaying the waveform graph of the time period required to be debugged, and further improving the simulation efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the present application or the prior art, the following description will briefly introduce the drawings that are needed in the embodiments or the prior art descriptions, it being obvious that the drawings in the following description are only the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic display of a waveform viewer;
FIG. 2 is an internal block diagram of a computer device for waveform display according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a waveform display according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another waveform display according to an embodiment of the present application;
FIG. 5 is a schematic diagram of yet another waveform display according to an embodiment of the present application;
FIG. 6 is a schematic diagram of yet another waveform display according to an embodiment of the present application;
fig. 7 is a flowchart of a waveform display method according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It is to be noted that unless otherwise defined, technical or scientific terms used herein should be taken in a general sense as understood by one of ordinary skill in the art to which this application belongs. The terms "first," "second," and the like, as used herein, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
As described above, since it is difficult to accurately locate a waveform corresponding to a target time zone by moving a scroll bar during waveform simulation of a logic system design (e.g., a chip design). The waveforms obtained by the simulation tool tend to be run for a relatively long time, and the user needs to move the waveform map to find the waveform for that time period that needs to be debugged. The user moves to the corresponding time on the time axis by moving the scroll bar (e.g., scroll bar 02 shown in fig. 1) below the waveform viewer, on which the waveform of the time position where the scroll bar is located is displayed. In the moving process, the distance of each movement of the waveform is determined by the scale of the rolling bar, and the length of the scale corresponds to the length of the rolling bar on the time axis. If the scale is too large, the waveform has moved a significant time interval even though the scrollbar has moved only a small distance; if the scale is too small, the scroll bar moves much and the waveform moves only a small time interval. Meanwhile, as shown in fig. 1, the time axis 03 and the scroll bar 02 are separated, and occupy a relatively large space.
Based on this, the present application provides a waveform display method, a computer device, a storage medium, and a computer program product to solve the above-described problems.
Fig. 2 is an internal structural diagram of the computer device 100 for waveform display according to an embodiment of the present application. The computer device 100 may include: processor 102, memory 104, network interface 106, peripheral interface 108, and bus 110. Wherein the processor 102, the memory 104, the network interface 106, and the peripheral interface 108 are communicatively coupled to each other within the computer device via a bus 110.
The processor 102 may be a central processing unit (Central Processing Unit, CPU), an image processor, a Neural network processor (Neural-network Processing Unit, NPU), a microcontroller (Microcontroller Unit, MCU), a programmable logic device, a digital signal processor (Digital Signal Processing, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits. The processor 102 may be used to perform functions related to the techniques described herein. In some embodiments, processor 102 may also include multiple processors integrated as a single logical component. As shown in fig. 2, the processor 102 may include a plurality of processors 102a, 102b, and 102c.
The memory 104 may be configured to store data. As shown in fig. 2, the data stored in the memory may include program instructions (e.g., program instructions for implementing the waveform display method of the present application) as well as data to be processed (e.g., waveform data). The processor 102 may also access program instructions and data stored in the memory and execute the program instructions to implement a waveform display method. The memory 104 may include volatile storage or nonvolatile storage. In some embodiments, memory 104 may include random access Memory (Random Access Memory, RAM), read-Only Memory (ROM), optical Disk, magnetic Disk, hard Disk, solid State Disk (or Solid State Drive, SSD), flash Memory, memory stick, and the like.
The network interface 106 may be configured to provide communication with other external devices to the computer device 100 via a network. The network may be any wired or wireless network capable of transmitting and receiving data. For example, the network may be a wired network, a local wireless network (e.g., bluetooth, wiFi, near field communication (Near Field Communication, NFC), etc.), a cellular network, the internet, or a combination of the above. It will be appreciated that the type of network is not limited to the specific examples described above. In some embodiments, the network interface 106 may include any combination of any number of network interface controllers (network interface controller, NIC), radio frequency modules, receivers, modems, routers, gateways, adapters, cellular network chips, etc.
Peripheral interface 108 may be configured to connect computer apparatus 100 with one or more peripheral devices to enable information input and output. For example, the peripheral devices may include input devices such as keyboards, mice, touchpads, touch screens, microphones, various types of sensors, and output devices such as displays, speakers, vibrators, and indicators.
Bus 110 may be configured to transfer information between the various components of computer device 100 (e.g., processor 102, memory 104, network interface 106, and peripheral interface 108), such as an internal bus (e.g., processor-memory bus), an external bus (universal serial bus (Universal Serial Bus, USB), a high-speed serial computer expansion bus (peripheral component interconnect express, PCI-E), etc.).
It will be appreciated by those skilled in the art that the structure shown in fig. 2 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Fig. 3 is a schematic diagram of a waveform display according to an embodiment of the present application.
In some embodiments, the computer device 100 may generate the waveform display area from waveform data. The waveform data may be waveform data of a correlation signal obtained after simulation of the logic system design. The waveform data may include a plurality of time periods, for example, 0 to 2,000, 2,000 to 4,000, 4,000 to 6,000, and the like. The time unit of the waveform data may be picoseconds, nanoseconds, milliseconds, etc., and may be specifically determined according to parameters of an actual logic system design. Corresponding to the waveform data, the waveform display area may include a waveform diagram 40, a time axis 41, and a scroll bar 42 movable along the time axis 41 as shown in fig. 3. The time interval of the time axis 41 may correspond to a period of the waveform data. Since the scroll bar 42 is located on the time axis 41, the scroll bar 42 and the time axis 41 share the same space at this time, and space occupation is reduced.
The computer device 100 may receive user operational instructions that may include modifications that activate the scrollbar 42, as well as modifying the scope of the scrollbar 42.
As shown in fig. 3, when the user needs to adjust the dimensions of the scroll bar, the user may click on one end point of the scroll bar 42 located on the time axis 41 in fig. 3. For example, the left or right end point of the scroll bar 42 may be clicked by a cursor of a mouse, or an activation instruction for modifying the scroll bar 42 may be initiated by touching the left or right end point of the scroll bar 42 based on a touch screen. The computer device 100 may then receive a cursor click on one of the endpoints (left or right endpoint) of the scrollbar 42, i.e., receive an activation instruction to modify the scrollbar 42.
In some embodiments, when the user clicks one of the endpoints of the scrollbar 42 via the cursor, then the modification to the scrollbar 42 is activated, and if the user drags the endpoint of the scrollbar 42 to continue moving at this point, then the original dimensions of the scrollbar 42 may be changed, i.e., the range of the scrollbar 42 is modified. And the computer device 100 may determine to modify the extent of the scrollbar 42 based on the direction and distance of movement corresponding to the cursor. For example, when the direction of movement is to drag the endpoint to the left of the scrollbar 42, then the computer device 100 may increase the scale of the scrollbar based on the particular distance of movement to obtain a new scrollbar; when the direction of movement is to drag the left end of the scrollbar 42 to move to the right, then the computer device 100 may decrease the scale of the scrollbar based on the particular distance of movement to obtain a new scrollbar; when the direction of movement is to drag the right end of the scrollbar 42 to move to the right, the computer device 100 may increase the scale of the scrollbar based on the specific distance of movement to obtain a new scrollbar; when the direction of movement is to drag the right end of the scrollbar 42 to the left, then the computer device 100 may decrease the dimensions of the scrollbar based on the particular distance of movement to obtain a new scrollbar. For another example, when the direction of movement is to drag the end point to the left of the scrollbar 42 to the right, then the computer device 100 may regenerate the scrollbar based on the particular distance of movement, and the dimensions of the newly generated scrollbar may be consistent with the distance of movement. In this way, the computer device 100 may enable flexible modification of the scroll bar dimensions.
Fig. 4 is a schematic diagram of another waveform display according to an embodiment of the present application.
In some embodiments, as shown in FIG. 5, when the user needs to adjust the dimensions of the scrollbar 52, the user may also click on any point on the timeline 51 of FIG. 4, thereby initiating an activation instruction that modifies the scrollbar 52. The computer device 100 may then receive the activation instruction and determine, based on clicking on any point on the timeline 51, that point as the first point, i.e., the first endpoint of the resized scroll bar 53.
To modify the range of the scroll bar, the computer device 100 may determine the direction and distance of movement of the cursor, from which the second point on the time axis the cursor resides. The second point may be a second end point of the scrollbar 53 after the scaling, and the connection line formed by the two end points is the scrollbar 53 after the scaling. The moving direction and moving distance of the cursor may refer to the moving direction and moving distance of the cursor with respect to the first point. For example, the user may click on the timeline 51 with a cursor to determine a first point, activate a modification to the scrollbar, and determine the first point as the first endpoint of the resized scrollbar 53. If the user drags the cursor to continue moving from the first point, such as to the left or right, and stops moving after moving a certain distance, the cursor stays at a second point on the time axis where the movement is stopped, the computer device 100 may determine the second point as the second end point of the scrollbar 53 after the scaling. Thus, the computer device 100 may generate the resized scroll bar 53 based on the first endpoint and the second endpoint, and both endpoints of the scroll bar 53 may correspond to the first point and the second point. In this way, the computer device 100 may enable flexible modification of the scroll bar dimensions.
In some embodiments, when the user desires to adjust the dimensions of the scroll bar, the computer device 100 may also activate a modification to the scroll bar by manipulating a mouse or touch screen to move a cursor over the corresponding scroll bar. If the user controls the scroll wheel scrolling of the mouse by operating the mouse at this time, the computer device 100 may modify the range of the scroll bar based on the scrolling of the mouse scroll wheel. For example, if the roller rolls upwards, the original scroll bar is expanded; if the roller rolls downwards, the original rolling bar is shortened, so that the rolling bar is expanded or shortened.
Fig. 5 is a schematic diagram of yet another waveform display according to an embodiment of the present application.
In some embodiments, when the user desires to adjust the dimensions of the scroll bar 62, then any point in the waveform diagram 60 of FIG. 5 may be clicked on to initiate an activation instruction to modify the scroll bar 62. The computer device 100 may then receive the activation instruction and determine that any point on the waveform 60 is the third point based on clicking on that point. By associating this third point with the time axis 61, the point that will correspond to the time axis 61 can be determined as the first end point of the resized scroll bar 63.
If the user drags the third point to continue moving (e.g., left or right) on the waveform 60 at this time and stops moving after moving a certain distance, the cursor stays at the fourth point on the waveform 60 where the movement is stopped. Similarly, by corresponding the fourth point to the time axis 61, the point on the time axis 61 corresponding to the fourth point can be determined as the second end point of the resized scroll bar 63. Thus, the computer device 100 may generate the resized scrollbar 63 based on the first endpoint and the second endpoint, thereby enabling flexible modification of the scrollbar dimensions.
In some embodiments, the computer device 100 may also determine the display range of the waveform map from the modified scroll bar range. As shown in fig. 5, the display range of the waveform diagram may be shown by a scale 64 above the waveform display area. The pre-modification scrollbar 62 ranges from 250,000,000 to 550,000,000, then the corresponding dimension is the distance between the two endpoints of the scrollbar 62 of 300,000,000 (i.e., 550,000,000-250,000,000). The displayed range of the waveform 60 corresponds to the scale of the scroll bar 62. If the position of the scroll bar 62 on the time axis 61 is moved, the display range of the waveform chart 60 matches the new position of the scroll bar 62 on the time axis 61, but the scale of the corresponding display remains unchanged. For example, by moving the position of the scroll bar 62 on the time axis 61, if the two end points after the movement are respectively located at 300,000,000 and 600,000,000 on the time axis 61, the display range corresponding to the waveform diagram 60 may be 300,000,000 to 600,000,000, and the scale (600,000,000-300,000,000 =300,000,000) displayed corresponds to the scale (550,000,000-250,000,000 =300,000,000) displayed before the movement. That is, by moving the position of the scroll bar 62 on the time axis 61, a waveform chart of different positions on the time axis 61 on the scale of the range of the scroll bar 62 can be displayed.
Fig. 6 is a schematic diagram of yet another waveform display according to an embodiment of the present application.
In some embodiments, the user may modify the scope of the scrollbar 62 to generate a new scrollbar 63. For example, the new scroll bar 63 may range from 380,000,000 to 500,000,000. At this point, the dimensions of the scrollbar change from the original dimensions 300,000,000 (i.e., 550,000,000-250,000,000) to 120,000,000 (i.e., 500,000,000-380,000,000). The display range of the waveform diagram also changes at this time. As shown in fig. 6, the displayed range of the waveform diagram 70 coincides with the range of the modified scroll bar 63. That is, the computer device 100 can display a waveform map corresponding to the range of the scroll bar by modifying the scale of the scroll bar, thereby making it easier to display the waveform map at the target time.
Fig. 7 is a flowchart of a waveform display method 700 according to an embodiment of the present application. The method 700 may be run on a computer device 100 as shown in fig. 2. Referring to fig. 7, the method 700 may include the following steps.
At step 702, the computer device 100 may generate a waveform display area from the waveform data. Waveform data may be obtained by simulating a logic system design with a simulation tool. The waveform data may include a plurality of time periods (e.g., 0-2,000, 2,000-4,000, 4,000-6,000, etc.). The time unit of the waveform data may be picoseconds, nanoseconds, milliseconds, etc., and may be specifically determined according to parameters of an actual logic system design. The waveform display area may include a waveform diagram (e.g., waveform diagram 40 shown in fig. 3), a time axis (e.g., time axis 41 shown in fig. 3), and a scroll bar (e.g., scroll bar 42 shown in fig. 3) movable along the time axis. The scroll bar 42 may be located in the time axis 41 and coincides with the time axis 41, so that space occupation of the waveform display area may be reduced.
At step 704, the computer device 100 may receive an operation instruction. The operating instructions may be from a user and may include a modification to activate the scrollbar and a modification of the scope of the scrollbar.
In some embodiments, activating the modification of the scrollbar further includes: the computer device 100 may receive a cursor click on an end point of the scrollbar (e.g., the left end point or the right end point of the scrollbar 42 shown in fig. 3). Modifying the range of the scrollbar further includes: the computer device 100 may determine the direction of movement (e.g., left or right movement) and distance of movement that the end point of the scroll bar follows the cursor.
In some embodiments, the modification to activate the scrollbar (e.g., scrollbar 52 shown in FIG. 4) further includes: the computer device 100 may receive a cursor click on a first point of the timeline (e.g., the timeline 51 shown in fig. 4). Modifying the range of the scrollbar further includes: the computer device 100 may determine a direction of movement and a distance of movement of the cursor, and determine a second point on the timeline at which the cursor resides based on the direction of movement and the distance of movement. Two end points of the modified scrollbar (e.g., scrollbar 53 shown in fig. 4) correspond to the first point and the second point.
In some embodiments, activating the modification of the scrollbar further includes: the computer device 100 may recognize that the cursor is moving onto the scroll bar. Modifying the range of the scrollbar further includes: the computer device 100 may determine the scroll of the wheel, expanding or contracting the scrollbar according to the scroll of the wheel.
In some embodiments, activating the modification of the scrollbar further includes: computer device 100 may receive a cursor click on a third point of the waveform diagram (e.g., waveform diagram 60 shown in fig. 5). Modifying the extent of the scrollbar (e.g., scrollbar 62 shown in FIG. 5) further includes: the computer device 100 may determine a direction of movement and a distance of movement of the cursor, and determine a fourth point on the waveform diagram at which the cursor rests based on the direction of movement and the distance of movement. The computer device 100 may correspond the third point to a time axis (e.g., time axis 61 shown in fig. 5) to determine a first endpoint of the modified scrollbar (e.g., scrollbar 63 shown in fig. 5); similarly, the computer device 100 may correspond this fourth point to the timeline (e.g., the timeline 61 shown in FIG. 5) to determine a second endpoint of the modified scrollbar (e.g., the scrollbar 63 shown in FIG. 5).
In step 706, the computer device 100 may display a modified scroll bar according to the operation instruction.
In some embodiments, the computer device 100 may generate the modified scroll bar (e.g., scroll bar 53 shown in fig. 4) with two endpoints of the modified scroll bar corresponding to a first point and a second point (e.g., two endpoints of scroll bar 53 shown in fig. 4).
In some embodiments, computer device 100 may generate a modified scrollbar (e.g., scrollbar 63 shown in fig. 5) from the third point and the fourth point. As described in step 704, the computer device 100 may correspond the third point to a time axis (e.g., time axis 61 shown in fig. 5) to determine a first endpoint of the modified scrollbar; similarly, the computer device 100 may correspond the fourth point to the timeline to determine a second endpoint of the modified scrollbar.
In some embodiments, the computer device 100 may also determine the display range (e.g., 380,000,000 to 500,000,000) of the waveform map (e.g., waveform map 70 shown in fig. 6) from the range of the modified scroll bar (e.g., scroll bar 63 shown in fig. 6).
In the above waveform display method, the computer device 100 may generate the waveform display area according to the waveform data, and receive the operation command to display the modified scroll bar according to the operation command, so as to simply and conveniently implement adjustment of the scale of the scroll bar, so as to accurately locate the waveform diagram of the time period required to be debugged, and further improve the simulation efficiency.
The application also provides a computer device. The computer device may be the computer device 100 shown in fig. 2. The computer device 100 may include a memory storing a computer program that when executed may implement a waveform display method consistent with the present application, such as the exemplary method described above (e.g., method 700 shown in fig. 7). And will not be described in detail herein.
The present application also provides a computer-readable storage medium. The non-transitory computer readable storage medium stores a set of instructions for the computer device 100. The set of instructions, when executed, cause computer device 100 to implement a waveform display method consistent with the present application, such as the exemplary method described above (e.g., method 700 shown in fig. 7). And will not be described in detail herein.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages. It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (8)

1. A waveform display method, comprising:
generating a waveform display area according to waveform data, wherein the waveform display area comprises a waveform chart, a time axis and a scroll bar which is movable along the time axis, the waveform data is a waveform of a signal in a certain time period obtained through simulation, the time interval of the time axis corresponds to the time period of the waveform data, and the scroll bar is positioned on the time axis and shares the same space with the time axis;
receiving an operation instruction, wherein the operation instruction comprises a modification for activating the scroll bar and a modification for modifying the range of the scroll bar, and the modification for activating the scroll bar comprises a cursor click on a first point of the time axis, and determining the first point as a first endpoint of the scroll bar subjected to scale adjustment; the modifying the range of the scroll bar comprises determining a moving direction and a moving distance of the cursor, and determining a second point where the cursor stays on the time axis according to the moving direction and the moving distance;
and generating a modified scroll bar according to the first point and the second point, and displaying the modified scroll bar.
2. The waveform display method of claim 1, wherein said activating a modification of said scroll bar further comprises identifying a cursor movement onto said scroll bar, said modifying a range of said scroll bar further comprising determining a scroll of a scroll wheel, expanding or contracting said scroll bar in accordance with a scroll of said scroll wheel.
3. The waveform display method according to claim 1 or 2, characterized in that the method further comprises:
and determining the display range of the waveform diagram according to the range of the modified scroll bar.
4. A waveform display method, comprising:
generating a waveform display area according to waveform data, wherein the waveform display area comprises a waveform chart, a time axis and a scroll bar which is movable along the time axis, the waveform data is a waveform of a signal in a certain time period obtained through simulation, the time interval of the time axis corresponds to the time period of the waveform data, and the scroll bar is positioned on the time axis and shares the same space with the time axis;
receiving an operation instruction, wherein the operation instruction comprises a modification for activating the scroll bar and a modification for modifying the range of the scroll bar, and the modification for activating the scroll bar comprises a cursor click received at a third point of the waveform diagram, and the third point is corresponding to the time axis, and the corresponding point on the time axis is determined to be a first endpoint of the scroll bar subjected to scale adjustment; the modifying of the range of the scroll bar comprises determining a moving direction and a moving distance of the cursor, and determining a fourth point where the cursor stays on the oscillogram according to the moving direction and the moving distance;
and generating a modified scroll bar according to the third point and the fourth point, and displaying the modified scroll bar.
5. The waveform display method of claim 4, wherein said activating a modification of said scroll bar further comprises identifying a cursor movement onto said scroll bar, said modifying a range of said scroll bar further comprising determining a scroll of a scroll wheel, expanding or contracting said scroll bar in accordance with a scroll of said scroll wheel.
6. The waveform display method of claim 4 or 5, wherein the method further comprises:
and determining the display range of the waveform diagram according to the range of the modified scroll bar.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the waveform display method of any one of claims 1 to 6 when the computer program is executed.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the waveform display method of any one of claims 1 to 6.
CN202210944147.0A 2022-08-05 2022-08-05 Waveform display method, computer device, and storage medium Active CN115576473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210944147.0A CN115576473B (en) 2022-08-05 2022-08-05 Waveform display method, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210944147.0A CN115576473B (en) 2022-08-05 2022-08-05 Waveform display method, computer device, and storage medium

Publications (2)

Publication Number Publication Date
CN115576473A CN115576473A (en) 2023-01-06
CN115576473B true CN115576473B (en) 2023-08-04

Family

ID=84579045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210944147.0A Active CN115576473B (en) 2022-08-05 2022-08-05 Waveform display method, computer device, and storage medium

Country Status (1)

Country Link
CN (1) CN115576473B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5491781A (en) * 1993-03-12 1996-02-13 Hewlett-Packard Company Method and apparatus for displaying a graphic image
US5553225A (en) * 1994-10-25 1996-09-03 International Business Machines Corporation Method and apparatus for combining a zoom function in scroll bar sliders
CN101261563A (en) * 2007-01-19 2008-09-10 Lg电子株式会社 Mobile terminal and method for scroll bar using the same
JP2011185911A (en) * 2010-03-11 2011-09-22 Yokogawa Electric Corp Waveform display device
CN107847175A (en) * 2015-10-10 2018-03-27 深圳迈瑞生物医疗电子股份有限公司 Medical menitoring system, the method for showing monitoring data and monitoring display device
CN108712671A (en) * 2018-04-26 2018-10-26 国政通科技股份有限公司 Monitor video document play-back method, device and terminal device
CN113132128A (en) * 2019-12-30 2021-07-16 北京华为数字技术有限公司 Prompt information processing method, device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8601388B2 (en) * 2008-01-09 2013-12-03 International Business Machines Corporation Efficiently adjusting a timeline in a time window

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5491781A (en) * 1993-03-12 1996-02-13 Hewlett-Packard Company Method and apparatus for displaying a graphic image
US5553225A (en) * 1994-10-25 1996-09-03 International Business Machines Corporation Method and apparatus for combining a zoom function in scroll bar sliders
CN101261563A (en) * 2007-01-19 2008-09-10 Lg电子株式会社 Mobile terminal and method for scroll bar using the same
JP2011185911A (en) * 2010-03-11 2011-09-22 Yokogawa Electric Corp Waveform display device
CN107847175A (en) * 2015-10-10 2018-03-27 深圳迈瑞生物医疗电子股份有限公司 Medical menitoring system, the method for showing monitoring data and monitoring display device
CN108712671A (en) * 2018-04-26 2018-10-26 国政通科技股份有限公司 Monitor video document play-back method, device and terminal device
CN113132128A (en) * 2019-12-30 2021-07-16 北京华为数字技术有限公司 Prompt information processing method, device and storage medium

Also Published As

Publication number Publication date
CN115576473A (en) 2023-01-06

Similar Documents

Publication Publication Date Title
US10338672B2 (en) System and method for manipulating objects in a graphical user interface
TWI611338B (en) Method for zooming screen and electronic apparatus and computer program product using the same
RU2005135845A (en) COORDINATION OF ANIMATIONS AND MULTIMEDIA WHEN DISPLAYING TO A COMPUTER DISPLAY
US8893036B1 (en) Display region scrolling
JP2017504877A (en) Method and apparatus for click object enlargement based on floating touch
US20140215393A1 (en) Touch-based multiple selection
CN105825537A (en) Method for generating animation curve and terminal
JP2022519981A (en) Variable speed phoneme sounding machine
EP3535677A1 (en) System and method for visual traceability of requirements for products
JP2022539290A (en) Visual programming for deep learning
CN109448120B (en) Processing method and device for three-dimensional building model and computer equipment
US7979819B2 (en) Minterm tracing and reporting
CN110275661B (en) Data display method and device
CN115576473B (en) Waveform display method, computer device, and storage medium
WO2018098960A1 (en) Method for operating touchscreen device, and touchscreen device
CN104732007B (en) Device with touch-sensitive display comprising a mechanism for copying and manipulating modeled objects
CN113039613B (en) Method and system for synchronizing a first simulation system and a second simulation system
CN114328062B (en) Method, device and storage medium for checking cache consistency
CN113391749A (en) Mouse click simulation method and device, computer readable storage medium and electronic equipment
US8863050B1 (en) Efficient single-run method to determine analog fault coverage versus bridge resistance
TW201931178A (en) Impedance calculation method for circuit layout pattern and layout detection system
US10509557B2 (en) Prototype storing method
CN115455876B (en) Method for debugging logic system design and electronic equipment
US20130339893A1 (en) Visual Display Techniques for Mitigating Latency
US11501475B2 (en) Graphical representation of electronic circuit operation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant