UPF Example
UPF Example
UPF Example
The Design
» 2:1 Mux
» Linear Feedback Shift Register
» Sequence Detector
» Counter
» Binary to BCD Converter
Power Domains
The upf code for the same is shown below:
set_design_top tb/TOP
create_power_domain top_PD
create_power_domain clk_mux_PD -elements {CM}
create_power_domain lfsr_PD -elements {LFSR}
create_power_domain sq_det_PD -elements {SD}
create_power_domain counter_PD -elements {CNT}
create_power_domain bcd_conv_PD -elements {BCD}
In this example, we have created 5 power domains, i.e. each domain consists of one of 5 individual blocks in the
design. Also, there is top_PD which is the top power domain consisting of whole design.
Power Network
The part of the upf file used to create power network consists of the following steps:
The following example is a part of upf file which creates power nets for all domains:
The following example is a part of upf file connects ground net for counter domain to top power port VSS_port:
Setting primary supply and ground nets for all the domains
The primary power and ground nets for all the domains must be set before we can run the power-aware
simulation. The following examples are the part of the upf file does the required:
set_domain_supply_net top_PD -primary_power_net VDD_rail -primary_ground_net VSS_rail
set_domain_supply_net clk_mux_PD -primary_power_net Vck_mx -primary_ground_net Vss1
Power Switches
#1 Clock Mux
create_power_switch clk_mux_SW \
-domain clk_mux_PD \
-input_supply_port {vin1 VDD_rail} \
-output_supply_port {vout1 Vck_mx} \
-control_port {ctr_sig1 ck_mx_sw_ctr} \
-on_state {CK_MX_ON vin1 {ctr_sig1==0}} \
-off_state {CK_MX_OFF {ctr_sig1==1}}
The above code means the switch and its connection to power domain and supply nets as follows:
Isolation Strategies
The isolation strategies are meant to introduce isolation cells for the power domains so that the
inputs/outputs/both for the particular domain would be isolated from the rest of the design.
The sample isolation strategy and the corresponding code are shown below:
Here represents the isolation cell that controls the isolation mechanism based on the control signal polarity.
Retention Strategies
The retention strategy shown figure above can be expressed in upf file as shown below: