schHiCreateBlockInst
schHiCreateBlockInst( [ ?libraryNamet_libraryName] [ ?cellNamet_cellName] [ ?viewNamet_viewName] [ ?blockSampleNamet_blockSampleName] [ ?instanceNamet_instanceName] [ ?pinNameSeedt_pinNameSeed] ) => t
Description
Creates a block and places an instance of a block in a schematic. Usable only when editing schematics. If you do not type a library, cell, view, and instance name as arguments, the options form appears and prompts you for these values. The block choices are defined by the schBlockTemplate variable in the schConfig.il file. If you type freeform, the schematic editor prompts you to type a rectangular shape by clicking on two points of the rectangle.
Arguments
Value Returned
Examples
Creates a new block with the specified fields. Prompts you to type a rectangular shape that specifies the shape of the symbol as well as the origin of the instance of the new block. t_pinNameSeed is set to pin and t_instanceName is assigned a unique value.
schHiCreateBlockInst( ?libraryName "ASIC_LIB" ?cellName "BLOCK1" ?viewName "SYMBOL_NEG" )
Creates two blocks namedBLOCK1andBLOCK2. Both blocks are created in theASIC_LIBlibrary and the view name isSYMBOL_NEG. The instance names areI1andI2. The boundary of the blocks is a fixed size based on the pointlist in theblockSamplemap that relates thelargeblockSampleName. The schematic editor drags the first block and prompts you for a location to place the instance. It then drags the second block and prompts you for a location.
schHiCreateBlockInst( ?libraryName "ASIC_LIB" ?cellName "BLOCK1 BLOCK2" ?viewName "SYMBOL_NEG" ?blockSampleName "large" ?instanceName "I1 I2" ?pinNameSeed "PIN" )
Return to top