Download SOPC Builder User Guide
Transcript
Chapter 7: Component Interface Tcl Reference Hardware Tcl Command Reference 7–35 set_interface_property This command sets a single interface property for an interface. set_interface_property Callback availability Main and elaboration Usage set_interface_property <interfaceName> <propertyName> <value> Returns String Arguments Example interfaceName The name of an interface that includes this property propertyName The name of the property whose value you want to set, which is ENABLED or ASSOCIATED_CLK or a name from the Avalon Interface Specifications. value The value to set for the specified property set_interface_property mm_slave linewrapBursts false add_interface_port This command adds a port to an interface on your module. As the component author, you determine the name of the port. The port width and direction must be set by the end of the elaboration phase. The port width can be set with one of the following mechanisms: 1 ■ A constant width or a width expression can be set in the main program ■ A constant width can be set in the elaboration callback Without an elaboration callback, for static components quartus_map determines the port width from the HDL add_interface_port Callback availability Main program and elaboration Usage add_interface_port <interfaceName> <portName> <portRole> [<direction> <width_expr>] Returns String Arguments Example December 2010 interfaceName The name of the interface to which the port belongs. portName The name of the port that you, the component author, have chosen. portRole The role of this port within the interfaces. Port roles are referred to as signal types in the Avalon Interface Specification. Refer to the Avalon Interface Specifications for the signal types available for each interface type. direction The direction can be input, output, or bidir width_expr The port's width expression. In simple cases, this is just the width of the port in bits. add_interface_port mm_slave s0_rdata readdata output 32 Altera Corporation SOPC Builder User Guide