Connectivity Across Levels of Hierarchy in DesignWorksPurpose of This NoteThis DesignNote describes methods for making signal connections between levels of hierarchy. Most of what is described here is condensed from the DesignWorks manual.
IntroductionConnecting signals across levels of hierarchy in DesignWorks can be accomplished in three ways:
Of these three methods the first two affect only the netlist generated by the Report module. The simulation module in DesignWorks will only connect signals that use port connectors. Using $SIGSOURCE and Device AttributesThis information is found in the DesignWorks manual. Any number of special names can be specified as "signal sources" using the $SIGSOURCE keyword in a report form file. The Report Generator searches the attributes attached to each device in a design for fields with these names. The pin number(s) specified in the value field of the attribute will be attached to a list for the signal of the same name. For example, most of our library parts have a "Power" and "Ground" attribute. In a circuit with two components U1, a 7404, and U2, a 74133:
In a report form the statement $SIGSOURCE(Power) will cause the report generator to extract the pin number "14" from the device, say U1, and place it in the pin list for a signal called "Power".
This ability is intended to allow power and ground nets to be creatted with out the necessity of having explicit power and ground pins and signals on every device. This should not be used for general signal connection. Using Signal ConnectorsThis information is found in the DesignWorks manual. Information on creating signal connectors with the DevEditor can be found in the DesignWorks manual. There are several pre-defined signal connectors in the Pseudo Devs library, Plus5V, Plus12V, Minus15V, etc... You may create new ones using the DevEditor module. There are only two tricky parts to making a signal connector: 1. Signal connectors can have only one pin, the name of the pin must be the name of the signal you wish to connect. For example to create a signal AGND the pin of the signal connector must be named AGND. 2. You must set the primitive type of the new signal connector to "SIGNAL CONNECTOR" using the "SubCircuit & Part Type..." dialog found in the DevEdit menu. Using Port ConnectorsFor detailed information on creating port and Bus port connectors refer to Creating Port Connectors. Port connectors connect a signal between a device's pins and its internal circuit. There are different port connectors for the three most commonly used pin functions in the Pseudo Devs library, Port In (Input), Port Out (Output) and Port Bidir (Bidirectional). There are two design modes that can be followed when creating a hierarchical device, bottom-up and top-down design. If your parent device has no bus pins then designing top-down and bottom-up are equally simple. If a parent device has a bus pin then it is necessary to create a bus port connector for the internal circuit specific to the bus (Refer to Creating Port Connectors for details on this). From the point of view of creating bus port connectors it is easiest to design top-down. Top Down DesignIn the top-down method DesignWorks will create all the port connectors for you. For example:
You now have a part in the library with an attached sub-circuit. Bottom Up DesignIn the bottom-up method, DesignWorks requires that you create the port connectors to match the pins on the parent device. For most signals you can use the pre-defined port connectors found in the Psuedo Devs library. The Pseudo Devs library has only the Input, Output and Bidirectional port connectors. If you need to use others, such as "Tri-state" or "Open Collector" you must first create these parts with the DevEditor module. In addition, if your internal circuit needs to export a bus you will require a custom bus port connector. A bus port connector can be kept in a library the same as a signal port connector, but to be re-used the internal pins in the connector device must match the signals being exported from the bus. (See DesignNote #DW3.0-4). In general you will need to create a new bus port connector for each bus being exported from an internal circuit. After your internal circuit is created there are two ways of associating it with a device:
The type of sub-circuit is assigned by the DevEditor module in the "SubCircuit & Part Type..." dialog. Internal Circuit
External Circuit
| |||||||||||||||||||
|
Copyright 2001-2003 by Capilano Computing Systems Ltd. All rights reserved. If you have any questions or comments on our site or products, please email us at info@capilano.com - Contact Info - Privacy Statement
|