CN114328706B - ICD graphical expression system and method - Google Patents
ICD graphical expression system and method Download PDFInfo
- Publication number
- CN114328706B CN114328706B CN202210243854.7A CN202210243854A CN114328706B CN 114328706 B CN114328706 B CN 114328706B CN 202210243854 A CN202210243854 A CN 202210243854A CN 114328706 B CN114328706 B CN 114328706B
- Authority
- CN
- China
- Prior art keywords
- instruction set
- basic data
- data type
- modification
- visual
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000004048 modification Effects 0.000 claims abstract description 122
- 238000012986 modification Methods 0.000 claims abstract description 122
- 230000000007 visual effect Effects 0.000 claims abstract description 104
- 238000012800 visualization Methods 0.000 claims description 20
- 238000012795 verification Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000004458 analytical method Methods 0.000 claims description 5
- 238000010276 construction Methods 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 7
- 238000004891 communication Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 2
- 238000004132 cross linking Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention relates to the technical field of ICD construction, in particular to an ICD graphical expression system and a method, which comprises an instruction set construction unit and a basic data type input unit; the instruction level architecture is obtained by setting the preset byte length, basic construction of a visual initial instruction set is completed by inputting basic data types, the visual initial instruction set is perfected through subsequent modification, and the visual instruction set is finally obtained.
Description
Technical Field
The invention relates to the technical field of ICD construction, in particular to an ICD graphical expression system and method.
Background
The ICD is used for explaining interface information conditions inside the system and between the systems, and records various information including signal types, signal values, signal offsets, transmission frequencies, transmission paths and the like.
With the development of new technologies, the amount of signals involved is increasing, and the cross-linking relationship between various data is very complicated. When a communication instruction is constructed in an ICD system in the prior art, a tree structure is mostly adopted for constructing line by line, and the construction of the communication instruction can also be completed, but the following problems still exist: (1) the method has the advantages that the instruction content, the instruction type and the instruction name need to be manually input item by item, time and labor are generally wasted, the efficiency is low, human errors are easily generated, and the method is inconvenient to modify and upgrade; (2) when the instructions are looked up, the relation among the instructions, the represented functions, the signal migration amount and the like cannot be clearly and intuitively expressed; (3) ICD signal quantity is numerous, cross-linking relation among data is complex, and accurate query and retrieval of instructions cannot be achieved by adopting a tree structure.
Disclosure of Invention
Aiming at the defects existing in the ICD system in the process of constructing the communication command, the invention aims to provide the ICD graphical expression system and the ICD graphical expression method, so that the visual expression can be achieved in the process of constructing the ICD communication command, and the working efficiency is improved.
The invention solves the technical problems as follows:
an ICD graphical expression system, comprising:
The instruction set building unit is used for generating an instruction set framework according to the byte length of a preset instruction set, uploading the instruction set framework and displaying the byte length of the instruction set framework; the instruction set architecture comprises rectangular blocks which correspond to byte lengths and are sequentially arranged, each rectangular block comprises a position display area and a type display area, the position display areas are used for displaying storage positions of the rectangular blocks, and the type display areas are used for displaying names of basic data types in the rectangular blocks;
and the basic data type input unit is used for receiving the instruction set architecture, sequentially inputting the basic data types and storing the basic data types into corresponding rectangular blocks to obtain a visual initial instruction set and finish the visual expression of the ICD graph.
Further defined, the ICD graphical expression system further comprises:
the file analysis unit is used for analyzing the imported original instruction set to obtain the byte length, the basic data type and the basic data type storage position of the original instruction set and uploading the byte length, the basic data type and the basic data type storage position;
the instruction set constructing unit is also used for receiving the byte length of the original instruction set, generating an instruction set architecture and uploading the instruction set architecture;
the basic data type input unit is further used for receiving the basic data type and the basic data type storage position of the original instruction set, inputting the basic data type in the original instruction set according to the basic data type storage position and storing the basic data type in the corresponding rectangular block, and obtaining a visual initial instruction set corresponding to the original instruction set.
Further, the ICD graphical expression system further includes a modification unit configured to modify the visualization initial instruction set to obtain a modification instruction set;
the modification unit comprises:
the rectangular block modification module is used for adding and/or deleting rectangular blocks at specified positions in the visualization initial instruction set;
a byte length modification module for modifying the displayed byte length;
the merging module is used for merging the type display areas which are sequentially connected in the visual initial instruction set and display the same basic data type name to obtain a type merging display area;
the offset calculation and modification module is used for calculating and displaying the offset of the basic data type in the memory area of the visual initial instruction set and modifying the offset corresponding to the basic data type;
the searching module is used for searching and displaying a corresponding rectangular block in the visual initial instruction set according to the name of the basic data type;
the grouping module is used for taking the connected rectangular blocks containing the same basic data types as a type group and displaying the type group;
the name display modification module is used for displaying an identification name corresponding to the basic data type on one side of the type display area and/or the type combination display area and modifying the identification name;
And the modification instruction set output module is used for outputting the visual initial instruction set which is modified to obtain a modification instruction set and uploading the modification instruction set.
Further defined, the ICD graphical expression system further comprises:
the verifying unit is used for receiving the modification instruction set and judging whether the modification instruction set meets requirements or not; if the requirements are met, generating a visual instruction set, and if the requirements are not met, modifying the modification instruction set through a modification module, and then judging the modification unit through the verification unit again until the requirements are met;
and the output unit is used for saving the visual instruction set.
An ICD graphical expression method is characterized by comprising the following steps:
s1, generating an instruction set architecture according to the byte length of a preset instruction set, uploading the instruction set architecture, and displaying the byte length of the instruction set architecture;
s2, receiving the instruction set architecture, sequentially inputting basic data types and storing the basic data types in corresponding rectangular blocks to obtain a visual initial instruction set, and finishing visual expression of an ICD (interface control document) graph;
s3, modifying the visual initial instruction set to obtain a modified instruction set;
s4, receiving a modification instruction set and judging whether the modification instruction set meets the requirement; if the requirements are met, generating a visual instruction set, and if the requirements are not met, modifying the modification instruction set through a modification module, and then judging the modification unit through the verification unit again until the requirements are met;
And S5, saving the visualization instruction set.
Further, before the step S1, the method further includes:
s0, analyzing the imported original instruction set to obtain the byte length, basic data type and basic data type storage position of the original instruction set, and uploading;
the step S1 further includes: receiving the byte length of an original instruction set, generating an instruction set architecture and uploading;
the step S2 further includes: and receiving the basic data type and the basic data type storage position of the original instruction set, inputting the basic data type in the original instruction set according to the basic data type storage position and storing the basic data type in the corresponding rectangular block to obtain a visual initial instruction set corresponding to the original instruction set.
Further defined, the step S3 includes the steps of:
s31, adding and/or deleting rectangular blocks at specified positions in the visualization initial instruction set;
s32, modifying the length of the displayed bytes;
s33, merging the type display areas which are sequentially connected in the visual initial instruction set and display the same basic data type name to obtain a type merging display area;
s34, calculating and displaying the offset of the basic data type in the memory area of the visual initial instruction set, and modifying the offset corresponding to the basic data type;
S35, searching and displaying a corresponding rectangular block in a visual initial instruction set according to the name of the basic data type;
s36, using the connected rectangular blocks containing the same basic data type as a type group and displaying;
s37, displaying the identification name corresponding to the basic data type on one side of the type display area and/or the type combination display area, and modifying the identification name;
and S38, outputting the visual initial instruction set which is finished with modification to obtain a modified instruction set and uploading the modified instruction set.
Further defined, the step S4 includes the steps of:
s41, judging whether the byte length of the modification instruction set is consistent with the displayed byte length, if so, meeting the requirement, otherwise, returning to the step S32 to modify the modified byte length to be consistent with the byte length of the modification instruction set;
s42, judging whether the offset of the basic data type in the modification instruction set is correct, if so, meeting the requirement, otherwise, returning to the step S34 to recalculate the offset and display the offset;
s43, judging whether there is duplication between the identification names in the same type group and whether there is duplication between the identification names in the same type group, if there is no duplication between the identification names in the same type group, then the requirement is satisfied, otherwise, returning to step S37 to modify the corresponding identification name to no duplication.
The invention has the beneficial effects that:
1. the method comprises the steps of generating an instruction set framework by directly inputting the byte length of an instruction set to be constructed, inputting different basic data types in the instruction set framework according to needs, and displaying the corresponding basic data types on a rectangular block in the instruction set framework, so that a visual initial instruction set is generated, visual expression of the ICD graph is completed, the method is simple and convenient, the positions of all the basic data types can be displayed on the generated visual initial instruction set, the visual initial instruction set can be read and checked more visually and more simply and quickly when the visual instruction set is checked, the instruction represented by the instruction set is known, visual expression of the ICD file is realized, the ICD file is constructed more simply, conveniently and quickly, the accuracy of ICD expression is improved, the time cost is saved, and the working efficiency is improved.
2. The ICD files in other formats stored outside can be directly converted into the graphical visual initial instruction set for reading or modifying after being analyzed by the file analysis unit, the application range is wide, operators can modify or read the ICD files in the existing formats after converting the ICD files, and the working efficiency is improved.
3. The modification instruction set obtained by modification according to requirements is more perfect through the rectangular block modification module, the byte length modification module, the merging module, the offset calculation generation module, the search module, the grouping module and/or the naming display modification module, so that the instruction set can be read or checked more visually and conveniently, the readability of the instruction set is improved, the basic data type and/or the rectangular block at the position can be modified conveniently, and the working efficiency is improved.
4. The modification instruction set is verified during storage, so that the byte length, the instruction offset and the instruction name in the modification instruction set are verified, parameter information errors caused by huge byte length can be avoided during storage, the errors can be timely positioned and modified during modification, or the instruction name can be modified by self definition, the instruction set is generated after the errors are verified, the construction process is simple, visual and efficient, and the working efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a visualization of an initial instruction set according to the present invention;
fig. 2 is a schematic diagram of a system for implementing ICD graphical representation according to a preset byte length in embodiment 1 of the present invention;
FIG. 3 is a schematic diagram of a system for implementing ICD graphical representation according to an imported original instruction set according to embodiment 2 of the present invention;
FIG. 4 is a schematic diagram of an ICD graphical expression system based on embodiment 1 in embodiment 3 of the present invention;
fig. 5 is a schematic diagram of an ICD graphical expression system according to embodiment 3 of the present invention based on embodiment 2;
fig. 6 is a schematic diagram of a system for implementing ICD graphical expression according to embodiment 3 in embodiment 4 of the present invention;
fig. 7 is a schematic diagram of a system for implementing ICD graphical expression for importing an original instruction set according to embodiment 3 in embodiment 4 of the present invention;
FIG. 8 is a flowchart of a method for implementing ICD graphical representation according to a predetermined byte length according to embodiment 5 of the present invention;
fig. 9 is a flowchart of a method for implementing ICD graphical representation according to the imported original instruction set in embodiment 6 of the present invention.
Detailed Description
Example 1
Referring to fig. 1 and 2, a system for constructing an ICD graphical representation includes an instruction set construction unit and a basic data type input unit, wherein:
the instruction set building unit is used for generating an instruction set framework according to the byte length of a preset instruction set, uploading the instruction set framework and displaying the byte length of the instruction set framework; the instruction set architecture comprises rectangular blocks which correspond to byte lengths and are sequentially arranged, each rectangular block comprises a position display area and a type display area, the position display areas are used for displaying storage positions of the rectangular blocks, and the type display areas are used for displaying names of basic data types in the rectangular blocks.
In actual use, a user can preset a preset instruction set with a byte length n according to needs, wherein the preset instruction set refers to how much the byte length of the instruction set needs to be obtained when the instruction set is constructed, the constructed instruction set is called a preset instruction set, the preset instruction set is often an existing instruction set, the function foundation is simple, n is a positive integer, then n is manually input into an instruction set construction unit to generate a corresponding instruction set architecture, at the moment, n is the same as the byte length of the generated instruction set architecture, the byte length n is displayed on a picture, at the moment, the byte length of the instruction set architecture is represented by n, and the byte length n is preferably displayed in a byte length display column on one side of the instruction architecture; the instruction set building unit comprises n rectangular blocks, the n rectangular blocks are sequentially arranged from top to bottom, 1 rectangular block corresponds to 1 byte, the rectangular blocks comprise position display areas used for displaying the storage positions of the rectangular blocks, the instruction set building unit defaults to be sequentially ordered from 0 to 1 at intervals, for example, the storage position display area of the top rectangular block is displayed as 0, and the position display areas of the rest rectangular blocks are sequentially ordered from 1 to n-1 until the position display area of the last rectangular block is displayed as n-1; the rectangular block further comprises a type display area for displaying the basic data type name in the rectangular block; different from the traditional tree form, an instruction set framework composed of rectangular blocks belongs to a simple and visual initial instruction set framework, and the instruction set construction unit completes construction of the instruction set framework mainly through graphic visualization, so that the operation is convenient and simple, and the working efficiency is improved.
And the basic data type input unit receives the instruction set architecture, sequentially inputs the basic data types and stores the basic data types in the corresponding rectangular blocks to obtain a visual initial instruction set, and completes visual expression of the ICD graph.
When the method is used, after an instruction set frame is constructed, a corresponding basic data type is input to the instruction set frame through a basic data type input unit, the basic data type is indicated by A, B, C, D, E, for example, B can indicate a Fix Value basic data type when in actual use, A is selected according to requirements and input through a basic data type input unit and stored in the 1 st rectangular block, namely the rectangular block with the position display area of 0, the name of A is displayed in the type display area in the rectangular block immediately, the purpose of quick identification is achieved, the basic data type with the code number of A is input in the position of the rectangular block, similarly, A is selected and continuously input into the rectangular block with the position display area of 1, the name of A is displayed in the type display area in the corresponding rectangular block, and the like, the required basic data type can be input and stored in the corresponding rectangular block, completing construction of a visual initial instruction set, and realizing visual expression of an ICD graph; in order to avoid reducing the checking and reading effect due to excessive basic data type names, different colors or background patterns can be used for representing different basic data types, and a worker can quickly position, check and confirm different basic data types in an instruction set through the colors or the patterns when constructing or checking the basic data types, so that the reading is more visual and effective, and the working efficiency is improved.
Example 2
Referring to fig. 3, unlike embodiment 1, a system for constructing an ICD graphical representation further includes a file parsing unit, wherein:
the file analysis unit is used for analyzing the imported original instruction set to obtain the byte length, the basic data type and the basic data type storage position of the original instruction set and uploading the byte length, the basic data type and the basic data type storage position;
the instruction set constructing unit is also used for receiving the byte length of the original instruction set, generating an instruction set architecture and uploading the instruction set architecture;
the basic data type input unit is also used for receiving the basic data type and the basic data type storage position of the original instruction set, inputting the basic data type in the original instruction set according to the basic data type storage position and storing the basic data type in a corresponding rectangular block to obtain a visual initial instruction set corresponding to the original instruction set;
when the method is used, common import files are in XML and Excel formats, for the XML files, if an original instruction set in the XML files needs to be converted into a visual initial instruction set, at the moment, a file analysis unit can analyze and upload the byte length, the basic data type and the basic data type storage position of the original instruction set in the XML files, and the basic data type storage position is the position of the basic data type in the instruction set and corresponds to the position of a rectangular block.
And then the instruction set construction unit generates a corresponding instruction set architecture after receiving the byte length of the original instruction set and uploads the instruction set architecture.
And then the basic data type input unit receives the uploaded instruction set architecture, inputs the basic data types into the rectangular blocks at corresponding positions according to the basic data type storage positions, displays the names of the corresponding basic data types in the type display areas of the rectangular blocks, and finally obtains a visual initial instruction set by importing other format files.
Therefore, the requirement of converting files in other formats into visual instruction sets is met, the files in other formats can be read and checked visually conveniently, and the working application range and the adaptive environment are improved; for the Excel file, all information in the original instruction set is directly displayed in the table, and when the Excel file is imported, corresponding information in the Excel is directly read and directly input into a corresponding module, and a corresponding visual initial instruction set is generated immediately, so that convenience is brought to reading of a user.
Example 3
Because the byte length is often large in actual use, for example, n =20000 when the byte length is input initially, the directly constructed visual initial instruction set needs to be modified and adjusted according to actual requirements to meet actual use requirements, and at this time, the visual initial instruction set needs to be modified.
As shown in fig. 4, when the visualization initial instruction set is modified, the obtained visualization initial instruction set is modified based on embodiment 1, or as shown in fig. 5, when the visualization initial instruction set is modified, the obtained visualization initial instruction set is modified based on embodiment 2, specifically, the system for constructing the ICD graphical expression further includes a modification unit, configured to modify the visualization initial instruction set to obtain a modification instruction set, specifically, modify a rectangular block in the visualization initial instruction set to obtain the modification instruction set, so as to modify the visualization initial instruction set to make its function more complete.
Wherein the modification unit comprises:
the rectangular block modification module is used for adding and/or deleting rectangular blocks at specified positions in the visualization initial instruction set;
when the method is used, after the visual initial instruction set is obtained, the byte length, the rectangular block and the basic data type in the visual initial instruction set are often changed according to actual requirements; the rectangular block modification module is used for deleting one or more rectangular blocks at the specified position, so that redundant rectangular blocks and/or basic data types stored in the rectangular blocks can be deleted, one or more rectangular blocks can be added at the specified position, new basic data types can be input on the newly added rectangular blocks, the rectangular blocks and the basic data types can be modified simply, conveniently and quickly, the working efficiency is improved, when the rectangular blocks are deleted, the basic data types stored in the rectangular blocks can be deleted at the same time, and the added rectangular blocks are blank rectangular blocks without input basic data types.
A byte length modification module for modifying the displayed byte length;
in use, whether the byte length is manually input or is obtained by importing file parsing, the byte length displayed when the visual initial instruction set is obtained does not change in real time due to subsequent modification, and when rectangular blocks are subsequently added or deleted, if the byte length is calculated and redisplayed every operation step, the efficiency is reduced and the workload is increased, so the displayed byte length is generally modified into a final actual value after finishing the modification.
The merging module is used for merging a plurality of adjacent type display areas occupied by the same basic data type in the visual initial instruction set into a type merging display area;
when the combined type display area is used, as the number of the rectangular blocks is large, the corresponding basic data types in the rectangular blocks are also many, and a plurality of basic data types sequentially occupy the rectangular blocks, in order to visually know the positions of the same basic data types in the visual initial instruction set during reading and checking, the adjacent type display areas displaying the same basic data type names can be combined into the type combined display area through the combining module, so that the reading is more visual, and the display of the same basic instruction type names is reduced; for example, for the basic data type A sequentially input into the rectangular blocks in the 3 rd to 5 th rows, three rows of names A are displayed in the type display area, and reading is affected after the number of the names A is large, so that the three adjacent type display areas are combined to obtain a type combined display area, and only one A is displayed at the moment, so that reading is facilitated.
The offset calculation and modification module is used for calculating and displaying the offset of the basic data type in the memory area of the visual initial instruction set and modifying the offset corresponding to the basic data type;
when the method is used, the offset of each basic data type in the memory area of the visual initial instruction set is calculated and generated by the offset calculation generation module and displayed, referring to fig. 1, for example, the offset at position 0 is 0, the offset at position 1 is 1, and so on, D at positions 4 and 5, that is, the offset of D in the type merging display area is 4, since there is a D with an offset of 5 at position 5, the offset is 1 value after merging the type display area, and the offsets of the subsequent basic data types are sequentially calculated according to the offsets of the basic data types when the basic data types are not merged, that is, the offset of the basic data types at position 6 is 6, and based on this list, the offset of each basic data type is increased by taking a rectangular block as a unit, that is, by taking a byte as a unit, the offset of each basic data type can be calculated and displayed through an offset calculation generation module, the offset of the selected basic data type can be displayed during display, the offset of the first basic data type is displayed in a default mode when the offset of each basic data type is not selected, and the offset of each basic data type can be manually modified after the offset is selected; similarly, when the visual initial instruction set is constructed and completed, after the offset of the basic data type in the memory area of the visual initial instruction set is calculated and displayed, the corresponding offset cannot be updated in real time when the modification is performed through the rectangular block modification module, and the offset can be modified into an accurate value after the modification is completed.
The searching module is used for searching and displaying the rectangular blocks of the basic data types in the visual initial instruction set according to the names of the basic data types;
when the method is used, a new basic data type needs to be added in the middle of a certain basic data type or at the top or the bottom of an adjacent basic data type, so that the name of the basic data type can be directly input for directly searching, and a rectangular block storing the corresponding basic data type can be displayed for subsequent modification, and the modification efficiency is improved.
The grouping module is used for taking adjacent rectangular blocks containing the same basic data type as a type group and displaying the type group;
in use, the rectangular blocks in which the same basic data types are located are divided into a group in the visual initial instruction set, and a grouping line and a grouping name are displayed on one side of the corresponding rectangular block, preferably on the left side of the rectangular block, the grouping line is used for indicating one type group, for example, the rectangular blocks located at the positions of n-3-n-1 in fig. 1 are divided into one type group, the grouping display can be selected to be displayed through arrows or brackets formed between the n-3-n-1 rectangular blocks, and meanwhile, for the convenience of reading speed, the meaning of the grouping here is taken, the signal name represented by the grouping is displayed, and the readability of the initial data is improved.
A name display modification module for displaying the identification name corresponding to the basic data type on one side of the type display area and/or the type combination display area, and modifying the identification name;
when the visual initial instruction set is modified, the identifier represented by each type display area or the type combination display area after combination of a plurality of type display areas is displayed on one side of the rectangular block, preferably on the right side of the rectangular block, the default display is standby, when the visual initial instruction set is modified, for convenience of reading and checking, the identifier name corresponding to the type display area or the type combination display area can be modified into a name convenient for recognition, the same group of the same basic data types can be distinguished on one side of the corresponding type display area through different identifier names, such as standby 1, standby 2, standby 3 and the like, the identifier names corresponding to the ungrouped and different basic data types can be the same, and the different groups can be the same, but the identifier names corresponding to the same basic data types can also be repeated, and after finishing the modification, modifying the identification name corresponding to the basic data type contained in the same group, so that the identification is not repeated.
The modification instruction set output module is used for outputting the visual initial instruction set which is modified to obtain a modification instruction set and uploading the modification instruction set;
when the visual modification instruction set is used, after the modification of any one or any two or any more of the above items is completed, the modified visual initial instruction set is finally output as a modification instruction set, so that a modification instruction set is obtained.
Example 4
Because the length of bytes of the modified instruction set is increased sharply and the number of the modified instruction set is huge, and the number of rectangular blocks is about 3-8 thousands, after the visual initial instruction set is modified, if the identification name, the offset of the basic data type and the bytes of the modified instruction set are corrected in real time, a large amount of time and energy are consumed, and the working efficiency is reduced, so that when the visual initial instruction set is modified, the identification name and the offset of the basic data type are not updated and corrected in real time, the modified instruction set is obtained and then verified uniformly, errors often exist in manual input, in order to ensure the accuracy of the modified instruction set and improve the working efficiency, the modified project can be verified uniformly before the modified instruction set is saved to judge whether the modified project meets the requirements, if the modified project meets the requirements, the visual instruction set is generated, if the modified instruction set does not meet the requirements, the modified instruction set is verified again until the requirements are met, as shown in fig. 6 and fig. 7, in embodiment 3, a modification instruction set is obtained after modifying the visual initial instruction set, and a check is performed before saving the modification instruction set to determine whether the modification instruction set can be used, specifically:
The ICD graphical expression system further comprises:
the verifying unit is used for receiving the modification instruction set and judging whether the modification instruction set meets requirements or not; if the requirements are met, generating a visual instruction set, and if the requirements are not met, modifying the modification instruction set through a modification module and then judging again until the requirements are met;
when in use, the judgment whether the modification instruction set meets the requirements is mainly to check and judge the following three items:
firstly, judging whether the byte length of the modification instruction set is consistent with the displayed byte length through a checking unit, if so, indicating that the byte length of the modification instruction set is displayed correctly, and meeting the requirement of the item; if the byte length is not consistent with the byte length, the requirement is not met, and the modification unit is required to return to correct the displayed byte length modification through the byte length modification module.
Secondly, judging whether the offset of the basic data type in the modification instruction set is accurate or not through a checking unit, and if so, meeting the requirement of the item; if the rectangular block is added or deleted, the judgment result does not meet the requirement usually, at the moment, the return modification unit calculates all the basic data type offsets in sequence, and the corresponding correct offsets can be displayed when the basic data types on the corresponding rectangular block are selected or clicked, so that the modification meets the requirement.
Thirdly, whether the identification names are repeated in the same group or not and whether the identification names which are not in the group are repeated or not are judged through a checking unit, and if the identification names are not repeated, the requirement is met; otherwise, the modification unit is returned at this time, the repeated identification names in the same group are automatically modified, and usually, numbers are added in sequence after the identification names by default, that is, the identification names in the same group are not repeated, the identification names which are not in the group are not repeated, and the identification names which are not in the group and the identification names which are in the group can be repeated.
And after finishing modification, checking and judging the obtained modification instruction set again, judging whether the three items are all satisfied, if so, generating a visual instruction set, and if not, continuously modifying the three items until the requirements are satisfied.
When the verification judgment is carried out, the judgment on the three items is carried out simultaneously, when one item does not meet the requirement, the corresponding item is prompted to not meet the requirement, when the verification unit does not pass, manual modification or automatic modification can be selected for the unsatisfied item, and the automatic modification can calculate and update the byte length of the primary modification instruction set for displaying again; recalculating the offset of each basic data type, so that the recalculated accurate offset can be displayed when any basic data type is clicked or selected; the positive integers 1 and 2 and the like are added after the second repeated identification name for the repeated identification name in each type group, the numbers 1 and 2 and the like are added after the second repeated identification name if the repeated identification name after manual modification is repeated, the repeated identification name without the type group is modified, generally, the inspection requirement can be met after the automatic modification is finished, but one-side check judgment is carried out to ensure that all parameters are correct, and one-time check judgment is needed to be carried out again after the manual modification until the three items meet the requirement.
When the verification unit modifies the modification instruction set for the second time, the modification instruction set belongs to the modified visual initial instruction set, so that corresponding modification is performed in the modification unit.
The output unit is used for storing the visual instruction set;
when the visual instruction is used, the visual instruction is stored after being obtained, and the visual instruction is usually stored in an XML format or a JSON format, so that the visual instruction is convenient to store and transmit.
Example 5
Referring to fig. 8, an ICD graphical representation method according to embodiment 4 includes the following steps:
and S1, generating an instruction set architecture according to the byte length of the preset instruction set, uploading the instruction set architecture, and displaying the byte length of the instruction set architecture.
And S2, receiving the instruction set architecture, sequentially inputting the basic data types and storing the basic data types in corresponding rectangular blocks to obtain a visual initial instruction set, and finishing visual expression of the ICD graph.
S3, modifying the visual initial instruction set to obtain a modified instruction set;
s31, adding and/or deleting rectangular blocks at specified positions in the visualization initial instruction set;
s32, modifying the length of the displayed bytes;
s33, merging the type display areas which are sequentially connected in the visual initial instruction set and display the same basic data type name to obtain a type merging display area;
S34, calculating and displaying the offset of the basic data type in the memory area of the visual initial instruction set, and modifying the offset corresponding to the basic data type;
s35, searching and displaying a corresponding rectangular block in a visual initial instruction set according to the name of the basic data type;
s36, using the connected rectangular blocks containing the same basic data type as a type group and displaying;
s37, displaying the identification name corresponding to the basic data type on one side of the type display area and/or the type combination display area, and modifying the identification name;
and S38, outputting the visual initial instruction set after finishing the modification to obtain a modification instruction set.
S4, receiving a modification instruction set and judging whether the modification instruction set meets the requirement; if the requirements are met, generating a visual instruction set, and if the requirements are not met, modifying the modification instruction set through a modification module, and then judging the modification unit through the verification unit again until the requirements are met;
s41, judging whether the byte length of the modification instruction set is consistent with the displayed byte length, if so, meeting the requirement, otherwise, returning to the step S32 to modify the modified byte length to be consistent with the byte length of the modification instruction set;
S42, judging whether the offset of the basic data type in the modification instruction set is correct, if so, meeting the requirement, otherwise, returning to the step S34 to recalculate the offset and display the offset;
s43, judging whether there is duplication between identification names in the same type group and duplication between identification names in the same type group, if there is no duplication between identification names in the same type group, then the requirement is satisfied, otherwise, returning to step S37 to modify the corresponding identification name to no duplication.
And S5, saving the visualization instruction set.
When the visual instruction framework is used, the visual instruction framework is stored in an XML or JSON format after being constructed, so that transmission and reading are facilitated.
The modification steps of the visual initial instruction set are not limited to the sequence of steps S31 to S38, and may be modified according to any steps according to the habit or the modification requirement, preferably according to the sequence of steps S31 to S38, or may select one or more steps according to the actual requirement, for example, when a simple visual initial instruction set is constructed, it is not necessary to add or delete a rectangular block, and step S31 may be skipped, and it represents that the byte length to start displaying is not changed without adding or deleting a rectangular block, so step S32 may also be skipped to not modify the displayed byte length.
Example 6
Referring to fig. 9, unlike embodiment 5, an ICD graphical representation method further includes the following steps:
and S0, analyzing the imported original instruction set to obtain the byte length of the original instruction set, the basic data type and the basic data type storage position, and uploading.
At this time, step S1 further includes: and receiving the byte length of the original instruction set, generating an instruction set architecture and uploading.
At this time, step S2 further includes: and receiving the basic data type and the basic data type storage position of the original instruction set, inputting the basic data type in the original instruction set according to the basic data type storage position and storing the basic data type in the corresponding rectangular block to obtain a visual initial instruction set corresponding to the original instruction set.
Subsequent steps S3-S5 are the same as those in embodiment 5, and the conversion of the imported file into a visual instruction set is completed, so that the graphical expression of the ICD is realized.
Claims (8)
1. An ICD graphical expression system, comprising:
the instruction set constructing unit is used for generating an instruction set framework according to the byte length of a preset instruction set, uploading the instruction set framework and displaying the byte length of the instruction set framework; the instruction set architecture comprises rectangular blocks which correspond to byte lengths and are sequentially arranged, each rectangular block comprises a position display area and a type display area, the position display areas are used for displaying storage positions of the rectangular blocks, and the type display areas are used for displaying names of basic data types in the rectangular blocks;
And the basic data type input unit is used for receiving the instruction set architecture, sequentially inputting the basic data types and storing the basic data types in corresponding rectangular blocks to obtain a visual initial instruction set and finish the visual expression of the ICD graph.
2. The ICD graphical expression system of claim 1, further comprising:
the file analysis unit is used for analyzing the imported original instruction set to obtain the byte length, the basic data type and the basic data type storage position of the original instruction set and uploading the byte length, the basic data type and the basic data type storage position;
the instruction set constructing unit is also used for receiving the byte length of the original instruction set, generating an instruction set architecture and uploading the instruction set architecture;
the basic data type input unit is further used for receiving the basic data type and the basic data type storage position of the original instruction set, inputting the basic data type in the original instruction set according to the basic data type storage position and storing the basic data type in the corresponding rectangular block, and obtaining a visual initial instruction set corresponding to the original instruction set.
3. The ICD graphical expression system according to claim 1 or 2, further comprising a modification unit for modifying the visualization initial instruction set to obtain a modification instruction set;
The modification unit comprises:
the rectangular block modification module is used for adding and/or deleting rectangular blocks at specified positions in the visualization initial instruction set;
a byte length modification module for modifying the displayed byte length;
the merging module is used for merging the type display areas which are sequentially connected in the visual initial instruction set and display the same basic data type name to obtain a type merging display area;
the offset calculation and modification module is used for calculating and displaying the offset of the basic data type in the memory area of the visual initial instruction set and modifying the offset corresponding to the basic data type;
the searching module is used for searching and displaying a corresponding rectangular block in the visual initial instruction set according to the name of the basic data type;
the grouping module is used for taking the connected rectangular blocks containing the same basic data types as a type group and displaying the type group;
the name display modification module is used for displaying an identification name corresponding to the basic data type on one side of the type display area and/or the type combination display area and modifying the identification name;
and the modification instruction set output module is used for outputting the visual initial instruction set which is modified to obtain a modification instruction set and uploading the modification instruction set.
4. The ICD graphical expression system of claim 3, further comprising:
the verifying unit is used for receiving the modification instruction set and judging whether the modification instruction set meets requirements or not; if the requirements are met, generating a visual instruction set, if the requirements are not met, modifying the modification instruction set through the modification unit, and then judging the modification unit through the verification unit again until the requirements are met;
and the output unit is used for storing the visual instruction set.
5. An ICD graphical expression method is characterized by comprising the following steps:
s1, generating an instruction set architecture according to the byte length of a preset instruction set, uploading the instruction set architecture, and displaying the byte length of the instruction set architecture; the instruction set architecture comprises rectangular blocks which correspond to the length of bytes and are arranged in sequence;
s2, receiving the instruction set architecture, sequentially inputting basic data types and storing the basic data types in corresponding rectangular blocks to obtain a visual initial instruction set, and finishing visual expression of an ICD (interface control document) graph;
s3, modifying the visual initial instruction set to obtain a modified instruction set;
s4, receiving a modification instruction set and judging whether the modification instruction set meets the requirement; if the requirements are met, generating a visual instruction set, if the requirements are not met, modifying the modification instruction set through the modification unit, and then judging the modification unit through the verification unit again until the requirements are met;
And S5, saving the visualization instruction set.
6. The ICD graphical expression method of claim 5, wherein step S1 is preceded by:
s0, analyzing the imported original instruction set to obtain the byte length, the basic data type and the basic data type storage position of the original instruction set, and uploading;
the step S1 further includes: receiving the byte length of an original instruction set, generating an instruction set architecture and uploading;
the step S2 further includes: and receiving the basic data type and the basic data type storage position of the original instruction set, inputting the basic data type in the original instruction set according to the basic data type storage position and storing the basic data type in the corresponding rectangular block to obtain a visual initial instruction set corresponding to the original instruction set.
7. The ICD graphical expression method according to claim 5 or 6, wherein the step S3 comprises the steps of:
s31, adding and/or deleting rectangular blocks at specified positions in the visualization initial instruction set;
s32, modifying the length of the displayed bytes;
s33, merging the type display areas which are sequentially connected in the visual initial instruction set and display the same basic data type name to obtain a type merging display area;
S34, calculating and displaying the offset of the basic data type in the memory area of the visual initial instruction set, and modifying the offset corresponding to the basic data type;
s35, searching and displaying a corresponding rectangular block in a visual initial instruction set according to the name of the basic data type;
s36, using the connected rectangular blocks containing the same basic data type as a type group and displaying;
s37, displaying the identification name corresponding to the basic data type on one side of the type display area and/or the type combination display area, and modifying the identification name;
and S38, outputting the visual initial instruction set which is modified to obtain a modified instruction set and uploading the modified instruction set.
8. The ICD graphical expression method according to claim 7, wherein the step S4 comprises the steps of:
s41, judging whether the byte length of the modification instruction set is consistent with the displayed byte length, if so, meeting the requirement, otherwise, returning to the step S32 to modify the modified byte length to be consistent with the byte length of the modification instruction set;
s42, judging whether the offset of the basic data type in the modification instruction set is correct, if so, meeting the requirement, otherwise, returning to the step S34 to recalculate the offset and display the offset;
S43, judging whether there is duplication between the identification names in the same type group and whether there is duplication between the identification names in the same type group, if there is no duplication between the identification names in the same type group, then the requirement is satisfied, otherwise, returning to step S37 to modify the corresponding identification name to no duplication.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210243854.7A CN114328706B (en) | 2022-03-14 | 2022-03-14 | ICD graphical expression system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210243854.7A CN114328706B (en) | 2022-03-14 | 2022-03-14 | ICD graphical expression system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114328706A CN114328706A (en) | 2022-04-12 |
CN114328706B true CN114328706B (en) | 2022-06-14 |
Family
ID=81033560
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210243854.7A Active CN114328706B (en) | 2022-03-14 | 2022-03-14 | ICD graphical expression system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114328706B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894165A (en) * | 2010-07-23 | 2010-11-24 | 武汉中地数码科技有限公司 | Instruction Stream Spatial Data Organization Method |
CN102257472A (en) * | 2008-12-18 | 2011-11-23 | 微软公司 | Data visualization interactivity architecture |
CN102937800A (en) * | 2012-10-28 | 2013-02-20 | 中国电子科技集团公司第十研究所 | ICD (Interface Control Document) integrated management tool |
EP3132593A1 (en) * | 2014-04-18 | 2017-02-22 | Cisco Technology, Inc. | Controlling intelligent powered devices |
CN113562173A (en) * | 2021-09-26 | 2021-10-29 | 西安羚控电子科技有限公司 | Flight device and flight control method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9304657B2 (en) * | 2013-12-31 | 2016-04-05 | Abbyy Development Llc | Audio tagging |
CN105657742B (en) * | 2016-03-11 | 2019-01-01 | 中国联合网络通信集团有限公司 | The power measurement method and base station analog machine of mobile terminal |
WO2020124398A1 (en) * | 2018-12-19 | 2020-06-25 | 江苏观复科技信息咨询有限公司 | Multi-image display method and computer-readable storage medium |
CN110597554A (en) * | 2019-08-01 | 2019-12-20 | 浙江大学 | A method for automatic generation and optimization of instruction function of instruction set simulator |
CN110532316A (en) * | 2019-08-13 | 2019-12-03 | 深圳市酷开网络科技有限公司 | A kind of data visualization methods of exhibiting, display equipment and storage medium |
-
2022
- 2022-03-14 CN CN202210243854.7A patent/CN114328706B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102257472A (en) * | 2008-12-18 | 2011-11-23 | 微软公司 | Data visualization interactivity architecture |
CN101894165A (en) * | 2010-07-23 | 2010-11-24 | 武汉中地数码科技有限公司 | Instruction Stream Spatial Data Organization Method |
CN102937800A (en) * | 2012-10-28 | 2013-02-20 | 中国电子科技集团公司第十研究所 | ICD (Interface Control Document) integrated management tool |
EP3132593A1 (en) * | 2014-04-18 | 2017-02-22 | Cisco Technology, Inc. | Controlling intelligent powered devices |
CN113562173A (en) * | 2021-09-26 | 2021-10-29 | 西安羚控电子科技有限公司 | Flight device and flight control method |
Non-Patent Citations (1)
Title |
---|
基于ICD的1553B通信技术研究;张晓敏;《中国优秀硕士学位论文全文数据库信息科技辑》;20161115;2-35 * |
Also Published As
Publication number | Publication date |
---|---|
CN114328706A (en) | 2022-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100836235B1 (en) | Method of Automatically Constructing Space for DS Space Connection by CAD Drawing | |
CN109446218A (en) | SQL statement generation method, device and computer readable storage medium | |
CN112327808A (en) | Automobile fault diagnosis method and system and automobile fault diagnosis instrument | |
CN114218731B (en) | Method and system for drawing pipeline three-dimensional information model | |
CN106598919A (en) | Document generation method and device | |
KR19980041010A (en) | Wire harness design support device and method of vehicle | |
CN111985014B (en) | Modeling method and system based on standard atlas | |
US20060259891A1 (en) | System and method of generating an auto-wiring script | |
CN114328706B (en) | ICD graphical expression system and method | |
CN112699032B (en) | Method for realizing vddbench performance test result analysis based on Excel | |
CN117807948B (en) | Method and device for generating top-level netlist file, computer equipment and storage medium | |
CN102619632B (en) | Electronic control data function collation system and function collation method for diesel engine | |
KR100191405B1 (en) | Process planning method by CAD-based process visualization | |
CN117610507A (en) | Data processing method and device based on standard | |
CN117892705A (en) | Report processing method, system and storage medium | |
CN116483344A (en) | Code generation method and device, terminal equipment and computer readable storage medium | |
CN115391446A (en) | Full-automatic list mapping method and system based on BIM system and readable storage medium | |
CN101546348A (en) | Model base icon display method based on physical modeling language | |
CN119513952A (en) | A method, device, equipment and medium for integrated two-dimensional and three-dimensional processing of electrical data | |
CN118133570B (en) | Project creation method, storage medium, electronic device, and program product | |
CN113132164B (en) | Method, device and equipment for generating network equipment wiring table | |
CN114493545B (en) | Automatic matching method and system for construction drawing and standard construction cost of hydraulic structure | |
CN111611684B (en) | Method, system, device and storage medium for generating interference zone logic block | |
CN116862389A (en) | Material list generation system and method | |
KR20020090554A (en) | Integrated construction process and cost management system and method, and media for storing program source thereof |
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 |