Sample Policy File
The following file is user-definable sample policy file.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!-- If ","(Comma) has to be used with in quotes then use ${COMMA}-->
<policy label="HighSpeed_System_PTC_172" schemaVersion="3.0">
<project name="*" type="ADWDesignProject">
<lifecycle label="Design Life Cycle" name="design_objects_life_cycle">
<state name="preliminary"/>
<state name="release"/>
</lifecycle>
<designObject label="Project Settings" name="project_settings" type="ADWProjectSettings">
<lifecycle_ref name="design_objects_life_cycle"/>
<attachment>
<includes>
<include path="${projdir}/.sdm/policy/*"/>
<include path="${projdir}/${cpm}"/>
<include path="${projdir}/${cdslib}"/>
<include path="${projdir}/${refcdslib}"/>
<include path="${projdir}/${atdm}/atdm.ini"/>
<include path="${projdir}/${atdm}/dossier/*"/>
<include path="${projdir}/${atdm}/env/*"/>
</<includes>
</attachment>
<monitor>
<includes>
<include path="${projdir}/.sdm/sdm_policy_overlay.xml"/>
<include path="${projdir}/.sdm/policy/*"/>
<include path="${projdir}/${cdslib}"/>
<include path="${projdir}/${refcdslib}"/>
<include path="${projdir}/${atdm}/dossier/*"/>
<include path="${projdir}/${atdm}/env/*"/>
/<includes>
</monitor>
</designObject>
<designObject category="Logical" label="Design Cache" name="design_cache" type="ADWDesignCache">
<attachment>
<includes>
<include path="${projdir}/${historyDir}/*"/>
<include path="${projdir}/${cachedir}"/>
</<includes>
</attachment>
<monitor>
<includes>
<include path="${projdir}/${cachedir}/*.ptf"/>
</<includes>
</monitor>
</designObject>
<designObject label="Shopping Cart" name="shopping_cart" type="ADWShoppingCart">
<attachment>
<includes>
<include path="${projdir}/${atdm}/lists/*"/>
<include path="${projdir}/${callout_file}"/>
</<includes>
</attachment>
</designObject>
<designObject label="ECSets" name="ecsets" type="ADW_ECSETS">
<attachment>
<includes>
<include path="${projdir}/ecsets/*"/>
</<includes>
</attachment>
</designObject>
<block label="Block" name="*" type="ADWBlock">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/metadata"/>
</<includes>
</attachment>
<checkin>
<all>
<pre_exec/>
<post_exec/>
</all>
</checkin>
<checkout/>
<tools>
<tool args="-proj,${projdir}/${cpm}" label="Open" name="concepthdl"/>
</tools>
<designObject category="Logical" label="Schematic" name="sch_1" type="ADWSchematic">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/*"/>
</<includes>
<excludes>
<exclude path="${projdir}/${design_lib}/${design_name}/metadata/*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${packager_view}/*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/sym_*/*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/entity"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${sch_view}/*.baselined"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${sch_view}/*.bak"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${sch_view}/*.lck"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${sch_view}/*.*,*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${sch_view}/*.*_sdm_deleted"/>
<exclude path="${projdir}/${design_lib}/${design_name}/derived_data"/>
<exclude path="${projdir}/${design_lib}/${design_name}/bom"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${variant_view}"/>
<exclude path="${projdir}/${design_lib}/${design_name}/viewable"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/viewable"/>
<exclude path="${projdir}/${design_lib}/${design_name}/variant"/>
</<excludes>
</attachment>
<monitor>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/${sch_view}/page*.csb"/>
<include path="${projdir}/${design_lib}/${design_name}/${sch_view}/${design_name}.xcon"/>
</<includes>
</monitor>
<checkin>
<all>
<pre_exec>
<command args="${projdir}/${design_lib}/${design_name}/${sch_view}/*.lck" name="del /Q" platform="win32"/>
<command args="${projdir}/${design_lib}/${design_name}/${sch_view}/*.lck" name="rm -f" platform="unix"/>
</pre_exec>
<post_exec/>
</all>
<wip>
<rule_ref id="C01"/>
<dependency>
<designObject_ref action="checkout, checkin" continue="false" name="shopping_cart"/>
</dependency>
</wip>
<eco>
<rule_ref id="C01"/>
<dependency>
<designObject_ref action="checkout, checkin" continue="false" name="shopping_cart"/>
<designObject_ref action="checkout, checkin" continue="false" name="design_cache"/>
</dependency>
</eco>
</checkin>
<tools>
<tool args="-proj,${projdir}/${cpm}" label="Open" name="concepthdl"/>
<!--command args="-proj,${projdir}/${cpm},-nographic,-f,SS, -delim,${COMMA}, -o,${projdir}/${design_lib}/${design_name}/derived_data/logical.bom" cond="${design_name},==,${root_design}" label="Generate BOM" name="bomhdl"type="ADWDerivedDataLogicalBom"/>-->
<command args="-proj,${projdir}/${cpm},-f,SS,-t, D:/CADTOOLS/Cadence/ADWLIB/scripts/ptc_ewwgm_schematic.bom,-delim,${COMMA}, -o,${projdir}/${design_lib}/${design_name}/derived_data/Design.rpt" cond="${design_name},==,${root_design}" label="Generate BOM" name="bomhdl" type="ADWDerivedDataLogicalBom"/>
<command args="-proj,${projdir}/${cpm}, -cell,${design_name}, -view,${sch_view},-all,-file,${projdir}/${design_lib}/${design_name}/derived_data/sch.pdf" label="Generate PDF" name="publishpdf" type="ADWDerivedDataLogicalPDF"/>
<command args="-p,${projdir}/${design_lib}/${design_name}/viewable, -o,${design_name},${projdir}/${cpm}" label="Generate Viewable" name="D:/CADTOOLS/Cadence/ADWLIB/scripts/adw_pvs.bat" type="ADWDerivedDataViewable"/>
</tools>
<derivedObject label="BOM" name="LogicalBom" type="ADWDerivedDataLogicalBom">
<attachment>
<includes>
<!--<include path="${projdir}/${design_lib}/${design_name}/derived_data/logical.bom"/>-->
<include path="${projdir}/${design_lib}/${design_name}/derived_data/*.rpt"/>
<include path="${projdir}/${design_lib}/${design_name}/bom/*"/>
<include path="${projdir}/${design_lib}/${design_name}/variant/*"/>
</<includes>
</attachment>
<tools>
<!-- OOTB tool args="${projdir}/${design_lib}/${design_name}/derived_data/logical.bom" label="Open" name="notepad"/>-->
<tool args="-proj,${projdir}/${cpm}" label="Open" name="vedit"/>
</tools>
</derivedObject>
<derivedObject label="PDF" name="LogicalPDF" type="ADWDerivedDataLogicalPDF">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/derived_data/sch.pdf"/>
</<includes>
</attachment>
<tools>
<tool args="${projdir}/${design_lib}/${design_name}/derived_data/sch.pdf" label="Open" name="AcroRd32"/>
</tools>
</derivedObject>
<derivedObject label="Viewable" name="Creo View ECAD" type="ADWDerivedDataViewable">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/viewable/${design_name}.pvz"/>
</<includes>
</attachment>
<checkin>
<all>
</all>
</checkin>
<tools>
</tools>
</derivedObject>
<designObject label="Constraints" linkedParentBlock="*" name="constraints" type="ADWConstraints">
<tools>
<tool args="-proj,${projdir}/${cpm}" label="Open" name="concepthdl"/>
</tools>
</designObject>
<designObject label="Page" linkedParentBlock="*" name="*" type="ADWPage">
<tools>
<tool args="-proj,${projdir}/${cpm}" label="Open" name="concepthdl"/>
</tools>
</designObject>
</designObject>
<designObject category="Logical" label="Symbol" name="sym_1" type="ADWSymbol">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/sym_*/*"/>
<include path="${projdir}/${design_lib}/${design_name}/entity"/>
</<includes>
</attachment>
<tools>
<tool args="-proj,${projdir}/${cpm}" label="Open" name="concepthdl"/>
</tools>
</designObject>
<!--designObject category="Logical" label="Variant" name="variant" type="ADWVariant">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/${variant_view}/*" />
</<includes>
<excludes>
<exclude path="${projdir}/${design_lib}/${design_name}/${variant_view}/*.ba"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${variant_view}/*.lck"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${variant_view}/*.*_sdm_deleted"/>
</<excludes>
</attachment>
<tools>
<tool args="-proj,${projdir}/${cpm}" cond="${design_name},==,${root_design}" label="Open" name="vedit"/>
</tools>
<designObject label="File" linkedParentBlock="*" name="*" type="ADWFile">
<tools>
<tool args="-proj,${projdir}/${cpm},-db,${master_file}.${master_file_extension}" cond="${design_name},==,${root_design}" label="Open" name="vedit"/>
<command removePrevious="true" args="-proj,${projdir}/${cpm},-nographic,-f,SS, -delim,${COMMA}, -o,${projdir}/${design_lib}/${design_name}/derived_data/${master_file}/${master_file}.rpt, -var,${projdir}/${design_lib}/${design_name}/${variant_view}/${master_file}.dat, all" label="Generate Variant BOM" name="bomhdl" type="ADWDerivedDataLogicalVariantBom"/>
</tools>
<derivedObject label="VariantBOM" name="VariantBOM" type="ADWDerivedDataLogicalVariantBom">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/derived_data/${master_file}/*.rpt"/>
</<includes>
</attachment>
<tools>
<tool args="$action{file_select}" label="Open" name="notepad"/>
</tools>
</derivedObject>
</designObject>
</designObject-->
<designObject category="Logical,Physical" label="Packaged" name="packaged" type="ADWPackage">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/${packager_view}/*"/>
</<includes>
</attachment>
<monitor>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/${packager_view}/*.dat"/>
</<includes>
<excludes>
<exclude path="${projdir}/${design_lib}/${design_name}/${packager_view}/cmpreserveback.dat"/>
</<excludes>
</monitor>
<dependency>
<designObject_ref type="ADWSchematic"/>
</dependency>
</designObject>
<designObject category="Physical" label="Layout" name="physical" type="ADWLayout">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/${physical_view}/*"/>
</<includes>
<excludes>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*,*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*.baselined"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*.lck"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*.jrl"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*.jrl,*"/>
<exclude path="${projdir}/${design_lib}/${design_name}/${physical_view}/*.*_sdm_deleted"/>
</<excludes>
</attachment>
<tools>
<tool args="-proj,${projdir}/${cpm}" cond="${design_name},==,${root_design}" label="Open" name="allegro"/>
<!-- BOMs are not supported for multiple sources. Only top Schematic or top Physical can <include BOM object, but not both!
<command args="-v,bom, ${projdir}/${design_lib}/${design_name}/${physical_view}/${master_file}.${master_file_extension}, ${projdir}/${design_lib}/${design_name}/derived_data/physical.bom" label="Generate BOM" name="report" type="ADWDerivedDataPhysicalBom"/>-->
<command args="-p,${projdir}/${design_lib}/${design_name}/${physical_view}/viewable, -o,${master_file},${projdir}/${design_lib}/${design_name}/${physical_view}/${master_file}.${master_file_extension}" label="Generate Viewable" name="D:/CADTOOLS/Cadence/ADWLIB/scripts/adw_pvs.bat" type="ADWDerivedDataViewable"/>
</tools>
<!-- BOMs are not supported for multiple sources. Only top Schematic or top Physical can <include BOM object, but not both! -->
<!--derivedObject label="BOM" name="PhysicalBom" type="ADWDerivedDataPhysicalBom">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/derived_data/physical.bom"/>
</<includes>
</attachment>
<tools>
<tool args="${projdir}/${design_lib}/${design_name}/derived_data/physical.bom" label="Open" name="notepad"/>
</tools>
</derivedObject>-->
<derivedObject label="Board viewable" name="Board Viewable" type="ADWDerivedDataViewable">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/${physical_view}/viewable/${master_file}.pvz"/>
</<includes>
</attachment>
<tools>
<tool args="${projdir}/${design_lib}/${design_name}/derived_data/physical.bom" label="Open" name="notepad"/>
</tools>
</derivedObject>
<designObject label="Collection" linkedParentBlock="*" name="*" type="ADWCollection">
<tools>
<tool args="${master_file}.${master_file_extension},-proj,${projdir}/${cpm}" cond="${design_name},==,${root_design}" label="Open" name="allegro"/>
<!-- BOMs are not supported for multiple sources. Only top Schematic or top Physical can <include BOM object, but not both!
<command args="-v,bom, ${projdir}/${design_lib}/${design_name}/${physical_view}/${master_file}.${master_file_extension}, ${projdir}/${design_lib}/${design_name}/derived_data/${master_file}.bom" label="Generate BOM" name="report" type="ADWDerivedDataPhysicalBom"/>-->
</tools>
<!-- BOMs are not supported for multiple sources. Only top Schematic or top Physical can <include BOM object, but not both!
<derivedObject label="BOM" name="PhysicalBom" type="ADWDerivedDataPhysicalBom">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/derived_data/${master_file}.bom"/>
</<includes>
</attachment>
<tools>
<tool args="${projdir}/${design_lib}/${design_name}/derived_data/${master_file}.bom" label="Open" name="notepad"/>
</tools>
</derivedObject>-->
</designObject>
<designObject label="File" linkedParentBlock="*" name="*" type="ADWFile">
<tools>
<tool args="${master_file}.${master_file_extension},-proj,${projdir}/${cpm}" cond="${design_name},==,${root_design}" label="Open" name="allegro"/>
<!-- BOMs are not supported for multiple sources. Only top Schematic or top Physical can <include BOM object, but not both!
<command args="-v,bom, ${projdir}/${design_lib}/${design_name}/${physical_view}/${master_file}.${master_file_extension}, ${projdir}/${design_lib}/${design_name}/derived_data/${master_file}.bom" cond="${master_file_extension},!=,mdd" label="Generate BOM" name="report" type="ADWDerivedDataPhysicalBom"/>-->
</tools>
<!-- BOMs are not supported for multiple sources. Only top Schematic or top Physical can <include BOM object, but not both!
<derivedObject label="BOM" name="PhysicalBom" type="ADWDerivedDataPhysicalBom">
<attachment>
<includes>
<include path="${projdir}/${design_lib}/${design_name}/derived_data/${master_file}.bom"/>
</<includes>
</attachment>
<tools>
<tool args="${projdir}/${design_lib}/${design_name}/derived_data/${master_file}.bom" label="Open" name="notepad"/>
</tools>
</derivedObject>-->
<designObject label="Partition" linkedParentBlock="*" name="*" type="ADWPartition">
<tools>
<tool args="${master_file}.${master_file_extension},-proj,${projdir}/${cpm}" cond="${design_name},==,${root_design}" label="Open" name="allegro"/>
</tools>
</designObject>
</designObject>
</designObject>
</block>
<teamAssignment>
<rule_ref id="T01"/>
</teamAssignment>
<rules>
<rule continue="false" id="C01" label="Ensure LRM does not report error"/>
<rule continue="false" id="T01" label="Remove checkouts force fully when write permissions are removed"/>
</rules>
</project>
</policy>