Document directory
- 1.3.1 synchronization between the port and the drawing entry:
- 1.3.2 rename the sub-drawing corresponding to the chart Operator
- 3.3.1 set room and identifier format
- 3.3.2 about PCB
- 3.3.3 View Channel identifier allocation
- 3.3.4 use signal harness to make multi-drawing design more convenient.
To chenzelin2009 csdn blog: http://blog.csdn.net/chenzelin2009/article/details/5751251 #
Alicloud designer's multi-drawing function is more convenient. Today, I flipped through the introduction of multi-drawing design in "alicloud designer Quick Start", and then referred to some materials on the alicloud website, I am familiar with this multi-drawing function. The following describes the related knowledge points.
I. Basic concepts of Page Structure 1.1
When designing a large project, it cannot be achieved by only one drawing. In this case, you need to develop and design multiple drawings. A multi-drawing design project is a multi-level structure composed of logical blocks, each of which can be a schematic or HDL file, at the top of the structure is a master schematic drawing-top-level engineering drawing.
The multi-drawing structure is generally formed by the sheet symbol. A Chart symbol corresponds to a sub-drawing. The icon symbol is placed on the main schematic drawing and connected to the sub-drawing through the chart symbol, child drawings can also be connected to lower-layer drawings through chart symbols. Click "place" sheet symbol "or the icon to place the icon symbol. 1
Figure 1
You can enter an identifier in the "designer" area. If the identifier contains a statement with the repeat keyword, you can also implement the multi-channel function (detailed below ). However, if you enter the name (case-insensitive) of the sub-drawing file you want to call in "file name", you can call the sub-drawing. There are other ways to generate chart characters. For details, see the following.
After the multi-drawing project is compiled, the logical relationship between the drawings is identified and a tree structure is established to indicate the logical relationship between the drawings. 2:
Figure 2
1.2 hierarchy
The hierarchy includes the following three types:
1) Top-Down: under the main schematic drawing, use "design" create sheet from symbol "," design "create HDL file from symbol" create VHDL File from symbol ", and" design "create HDL file from symbol" create OpenGL file from symbol "and other commands to create sub-drawings, the underlying VHDL File, and the underlying OpenGL file.
2) Bottom-up: under the main schematic drawing, create a chart operator and a top-level component by running the "design" create symbol from sheet or HDL "and" design "Create component from sheet" commands.
3) hybrid schematic/HDL File hierarchy: In this case, the chart operator calls the HDL file or schematic by different file names.
1.3 Hierarchical Structure Maintenance 1.3.1 synchronization between port and drawing entry:
When the port in the sub-drawing does not match the drawing entry (including the name and IO type), you can use "design" Synchronize sheet entries and ports "for synchronization. 3:
Figure 3
Select an out-of-sync port. If you want to change the sub-drawing port to match the chart operator, select the middle icon (the first one). On the contrary, select the second one.
1.3.2 rename the sub-drawing corresponding to the chart Operator
To rename a sub-drawing corresponding to a chart operator, the general idea is to first change the name of the sub-drawing, then change the "file name" of the chart operator, and finally compile the project. Now, AD provides the function "design" RENAME child sheet "to rename sub-drawings. A floating cross cursor is displayed, and the chart operator to be renamed in the dot appears. The following dialog box appears:
Figure 4
You can set related options as needed.
1.4 Multi-Channel Design
A drawing may be used repeatedly during the design process. We can achieve this in two ways: 1) repeatedly calling the same sub-drawing through multiple chart characters; 2) using a chart character with the repeat keyword. Here we will introduce the second method: enter a statement containing repeat in the "designator" Area of the chart operator, in the following format:
Repeat (sheetsymboldesignator, firstinstance, lastinstance)
Here, sheetsymboldesignator is the name of the chart operator. firstinstance and lastinstance define the number of channels together. Note that the firstinstance parameter must be equal to or greater than 1, as shown in 5, indicating two filter channels.
Figure 5
1.5 A Single chart operator calls multiple sub-drawings
In the "file name" Area of the chart operator, enter names of multiple sub-drawing files and separate them with semicolons (;). A single chart operator can call multiple sub-drawings; the interconnection between these sub-drawings can be achieved through the cross-drawing interface (off-sheet connectors.
Ii. network connectivity 2.1 various network identifiers
Because we use the multi-drawing function, we need to consider the line connection between the drawings. In a single drawing, we can use a simple network label "net label" to achieve network connections. in multiple drawings, there are many network identifiers involved in network connections, the following details:
The most basic network identifier is the network label (net labels ). In a single drawing, they can represent the connection between components instead of wires. In the multi-drawing design, their functions remain unchanged and can only represent the connection within a single drawing.
A port can be a network connection within a single drawing (similar to net labels) or between drawings. In multi-drawing design, the port can be used for vertical and horizontal connections. During Horizontal connection, you can ignore multiple Drawing Structures and connect all ports with the same name in the project to the same network. For vertical connections, contact the chart operator and drawing entry. Place the corresponding drawing entry into the drawing entry. Then, connect the sub-drawing with the parent drawing.
The off sheet ors interface provides ports and network labels. When a chart operator calls multiple sub-drawings, the network connections between these sub-drawings can be implemented across drawing interfaces-place cross drawing interfaces in these sub-drawings, it can be connected when the interface matches. Note that the cross-drawing interface is only used for the connection between the group of sub-drawings. Generally, it is not used for the connection of other drawing structures.
The power port (also called the power source object) completely ignores the engineering structure and is connected to the matching power port on all the drawings involved in the link.
The following describes the differences between various network identifiers:
|
Network ID Net label |
Generally, the network is connected only within a single drawing. When the flat range or net range is set to global, all matching network symbols are connected horizontally. |
|
Port Port |
If it matches a drawing entry of the parent chart or a hierarchy or automatic range is selected, the vertical link is used. When the flat or ports global range is selected, all matched ports are horizontally connected. |
|
Drawing entry Sheet entry |
Always vertically connected to the bottom drawing port called by the chart Operator |
|
Cross-drawing interface Off-sheet Connector |
Horizontally connected to the matching cross-drawing interface, but only between the drawing groups called by a single chart operator separated by sub-Drawing |
|
Power port Power port |
Connect Global to all matching power ports in the project |
Note: This involves setting the port range in the project. Open the Setting Dialog Box (Project-> project option, ClickOptionTag), in the"Net identifier Scope"You can select the range of network identifiers in the region. Generally, select"Automatic"Mode,AdIt is automatically judged. Others include"Flat","Hierarchical","Global"Mode, which can be selected as needed in special circumstances.
If you want the network identifier to represent the reverse mode, you only need to add a backslash (for exampleE/N/A/B/L/E); OrPreferencesIn the dialog boxSchematic-graphical editingOn the page, select"Single'/'Negation"Check box, followed by a backslash before the network identifier name (such:/Enable).
2.2 network connectivity instance
Example1: Hierarchical design
Figure 6
6. This schematic project is automatically recognized as a hierarchical scope because the chart in its parent drawing carries the drawing entry. In this case, the port HP-L and the HP-R are connected together through the drawing entrance, and C1 and C2 in the two sub-drawings cannot be connected across the drawing.
Example2: Global port
Figure 7
7. This project only has a port and no drawing entry exists. Therefore, the scope is automatically set to a global port. When the project changes to a parallel structure, all the matching ports on the Project will be connected together, but the network label cannot be connected across drawings. At this time, even if the top-level drawings are removed, the project will not be affected.
Example3: Global Network label
Figure 8
8. This project does not have ports and drawing entries, so that network labels can be connected globally when the drawings are matched. In this case, the top-level drawing project can still be compiled normally.
Example4: Global Network label and Port
Figure 9
Select project-> project option, and click the option label. In the "net identifier scope" area, you can select the network identifier range mode: Global (netlabels and ports global); 9, in this case, the network labels and ports are global. Both are horizontally connected to the matching object within the global range.
Example5: Cross-drawing interface
Figure 10
10. The project has four sub-drawings. The chart operator "group A" calls two sub-drawings "a1.schdoc" and "a2.schdoc ", "Group B" calls the sub-drawings "b1.schdoc" and "b2.schdoc ". In this case, C1 and C2 in the "a1.schdoc" drawing can be connected to C1 and C2 in the "a2.schdoc" drawing. Similarly, the drawings "b1.schdoc" and "b2.schdoc" can also connect networks, however, there is no network connection between the two groups (C1 of a1.schdoc is not connected to C1 of b1.schdoc ). This is the function of cross-drawing interface, which can increase the drawing range of the chart operator.
Iii. Design Example 3.1 Design Ideas
Now we need to design a 2.0-bit power amplifier, assuming there is a ready-made source low-pass audio filter schematic (filter. schdoc), a two-channel power amplifier schematic (amplifier. schdoc); we can use these two schematics to implement this design function: Create a PCB project and schematic diagram, and add two existing files to this project, then, create two chart operators in the new schematic. One of the chart operators calls the dual-channel amplifier, and the other calls the filter twice through the multi-channel function. Then, you can connect them and compile the project.
Note: filter. the signals used in the schdoc schematic are input (in), output (out), and amplifier. the signals to be used in the schdoc schematic are left input (in_l), right input (in_r), left output (out_l), and right output (out_r ). You can create a project folder and copy the two schematic files to the project folder before design.
3.2 steps
1) create a PCB project, add toplevel. schdoc to the new project, add two existing schematics to the project, and save all.
2) Open the schematic filter. schdoc, add two ports in and out (connected to the signal in and out respectively); open the schematic amplifier. schdoc: add four ports: in_l, in_r, out_l, and out_r (connected to in_l, in_r, out_l, and out_r respectively ). 11:
Figure 11
3) Open toplevel. schdoc in the schematic diagram, click "design-> creat sheet symbol from sheet or HDL file", select the "amplifier. schdoc" file in the pop-up window, and click "OK. At this time, the software will generate a chart operator with four drawing entries, place it in the schematic, rename "designator" to "am", and arrange the corresponding drawing entries, 12.
Figure 12
4) Similarly, click design-> creat sheet symbol from sheet or HDL file, and select "filter. schdoc file. Then, rename "designator" to "repeat (FI,)", which indicates two filters are called. schdoc drawings. Note that the public network of all sub-drawings is connected in normal mode. The drawing entry name of the chart operator does not need to be modified; all the sub-drawings have their own independent networks, which are derived from the bus. Each line in the bus is connected to a sub-drawing, in this case, the chart entry must be changed to repeat (Port name). In this example, the input must be changed to repeat (in ). As shown in. The network is represented by placing the bus name on the wire (instead of the bus range. When the design is compiled, the bus is broken down into an independent network (from in1 to in2) with an identifier for each channel, in1 is connected to the fi_1 sub-drawing, and in2 is connected to the fi_2 sub-drawing. 13.
Figure 13
5) place other components, connect the line, and compile the project.
Figure 14
After compilation, you can look at the panel on the left and find that the project has a variable-length tree structure of 15.
Figure 15
3.3 introduction to multi-channel design 3.3.1 setting room and identifier format
The multi-channel design calls the same sub-drawing multiple times. After compilation, an identifier is assigned to each channel and mapped to the PCB File. Click "Project-> project option ", in the displayed dialog box, click the "multi-channel" label, which is displayed as 16. Here, you can set the name of the channel (room) and component.
Figure 16
(1) Name of the channel (Room)
In the room naming area, select the option in the room naming style drop-down list to set the room naming method. The naming method includes two types of parallelism and three types of hierarchy, which can be selected based on the actual situation. In the case of multi-level room, the naming structure is (Channel prefix + channel index ). We can choose a naming method. The naming is as follows. The figure shows a 2*2 channel design example. There are 6 channels in total, one for each bank, each of the four lower-level channels has one. You can also use level separator for paths to modify the symbols of the split path.
(2) component naming
The component name generally includes the channel name. There are eight component Naming types. You can select a specific naming method from the "designator format" drop-down list. You can also enter the custom component identifier naming method in the dialog box. Some keywords may be used. For example, table 1
Keyword |
Definition |
$ Roomname |
Name of the associated room, as determined by the style chosen in the room naming style Field |
$ Component |
Component logical Designator |
$ Componentprefix |
Component logical designator prefix (e.g. U for U1) |
$ Componentindex |
Component logical designator index (e.g. 1 for U1) |
$ Channelprefix |
Logical sheet symbol Designator |
$ Channelindex |
Channel Index |
$ Channelalpha |
Channel index expressed as an Alpha character. This format is only useful if your design contains less than 26 channels in total, or if you are using a hierarchical designator format. |
Table 1
3.3.2 about PCB
After the project is compiled, we can see more labels at the bottom of the sub-drawing interface called multiple times, as shown in figure 17. You can click the corresponding label to view the allocation of the component identifier. Add a PCB file to the project and import the component to the PCB file through "design-> Update PCB". The conversion process automatically creates a group of components for each sub-drawing, each group of components has a room and all components are placed in the room. After layout and wiring a channel, you can copy the layout and cabling of the channel to another channel through "design-> rooms-> copy room Formats.
Figure 17
3.3.3 View Channel identifier allocation
Click "Project-> View Channel" to bring up the "project components" dialog box, which displays the distribution of component identifiers in each schematic, and 18 shows. Then, click "component report". The "Report preview.pdf" window is displayed. You can click "Export export.pdf" to export the Excel format table (.xls file) or click "print" to print it.
Figure 18
3.3.4 use signal harness to make multi-drawing design more convenient.
The signal harness function provided by ad supports connecting multiple wires and bus together. In a schematic diagram with many wires and bus connections, we can use signal harness to bring these lines together for drawing or cross-drawing connections with various network identifiers. Generally, the signal harness system contains four parts: Signal harness, harness connector (connector), harness entry, and harness definition file ). The first three are required when drawing the schematic diagram, and the final definition file is automatically generated (provided that harness connector is used ). Its schematic 19.
Figure 19
The following describes how to use signal harness:
Click "Place-> harness connector", press the "tab" key before placing, and enter the connector type in "harness type" (in this example, "test" is used "), click OK.
Click "Place-> harness entry" to place the interface and rename it based on the actual situation.
Place the port "audio" and other network labels, and connect them. The audio must be connected by signal harness.
Compile the project. You can see "setting-> harness definition files" in the project directory on the left side of the Project Panel (*. harness) file, double-click to open, you can see a statement "test = wclk, bclk, dout, DIN, mclk", indicates that test consists of multiple connection lines.
Then, you can create another signal harness in other areas to be connected in the drawing and connect it through the port. If the circuit to be connected is in another drawing, you can also use the port) connect the circuit.
References:
[1] Xu xiangmin. alicloud designer Quick Start. Beijing University of Aeronautics and Astronautics Press, 2008
[2] connectivity and multi-Sheet Design. From
Http://wiki.altium.com/display/ADOH/Connectivity+and+Multi-Sheet+Design
[3] creating a multi-channel design. From
Http://wiki.altium.com/display/ADOH/Creating+a+Multi-channel+Design
[4] multi-channel design concepts. From
Http://wiki.altium.com/display/ADOH/Multi-Channel+Design+Concepts