connect_supply_net VDD –ports VDD connect_supply_net VDD_2 –ports VDD_2 connect_supply_net VSS –ports VSS #create the power switch
create_power_switch SW1 –domain PD_1 –output_supply_port {VDD_OUT VDD_1} –input_supply_port {VDD_IN VDD} –control_port {PW_CTRL pd1_pw_en} –on_state {PW_ON VDD_IN {PW_CTRL}} –ack_port {{PW_ACK pd1_pw_ack} #define the isolation cell rules
set_isolation pd1_iso_in –domain PD_1 –no_isolation –applies_to inputs
set_isolation pd1_iso_low –domain PD_1 –isolation_power_net VDD –isolation_ground_net VSS –clamp_value 0 –applies_to outputs
set_isolation_control pd1_iso_low –domain PD_1 –isolation_signal iso_en –isolation_sense high –location parent
set_isolation pd1_iso_high –domain PD_1 –isolatioin_power_net VDD –isolation_ground_net VSS –elements {BLOCKA/pin1 BLOCKA/pin2} –clamp_value 1
set_isolation_control pd1_iso_high –domain PD_1 –isolation_signal iso_en –isolation_sense high –location parent
set_isolation pd2_iso_out –domain PD_2 –isolation_power_net VDD_1 –isolation_ground_net VSS –clamp_value 0 –applies_to outputs
set_isolation_control pd2_iso_out –domain PD_2 –isolation_signal iso_en –isolation_sense high –location parent
set_isolation pd2_iso_high –domain PD_2 –isolation_power_net VDD_2 –isolation_ground_net VSS –elements {BLOCKB/pin1}
set_isolation_control pd2_iso_high –domain PD_2 –isolation_signal iso_en –isolation_sense high –location self
set_isolation zsp_tcm_iso_en –domain PD_2 –no_isolation –elements BLOCKB/iso_en #create the state table
add_port_state VDD –state {NOR_VOL 1.2}
add_port_state VDD_1 –state {NOR_VOL 1.2} add_port_state VDD_1 –state {OFF_VOL off} add_port_statte VDD_2 –state {NOR_VOL 1.2} add_port_state VDD_2 –state {LOW_VOL 0.8} create_ps top_pst –supplies [list VDD VDD_1 VDD_2]
add_pst_state pst_pd1_ON –pst top_pst –state {NOR_VOL NOR_VOL NOR_VOL} add_pst_state pst_pd1_OFF –pst top_pst –state {NOR_VOL OFF_VOL NOR_VOL} add_pst_state pst_pd2_LOW –pst top_pst –state {NOR_VOL OFF_VOL LOW_VOL}