Analog macro on a port, some pin is always on, some are shut down, how to describe the properties of these pin of power? This is a common problem, generally donkey take this opportunity to describe common practice. For this problem, UPF2.0 with UPF2.1 have a different approach.
UPF2.0, IEEE1801-2009 , because modeling capability is relatively weak, there are two ways to deal with the following:
One way: the need to support the Library:
-
The need to define the power supply with the library in
pg_pin(VDDA) {
voltage_name : VDDA;
pg_type : primary_power;
}
pg_pin(VSSA) {
voltage_name : VSSA;
pg_type : primary_ground;
}
pg_pin(VDDB) {
voltage_name : VDDB;
pg_type : primary_power;
}
-
You need to signal pin associated with power pin
pin(IA) {
related_power_pin : "VDDA";
related_ground_pin : "VSSA";
direction : input;
}
pin(OB) {
related_power_pin : "VDDB";
related_ground_pin : "VSSB";
direction : output
power_down_function: “!VDDB || VSSB”;
};
-
In the UPF file, Hard_IP the PG pin needs to be connected together
connect_supply_net VDD1 –ports {Hard_IP/VDDA}
connect_supply_net VDD2 –ports {Hard_IP/VDDB}
connect_supply_net VSS –ports {Hard_IP/VSSA}
connect_supply_net VSS –ports {Hard_IP/VSSB}
Second way: If the library does not power with the definition:
-
To specify the driver supply receiver supply with output Hard_IP input with UPF command set_port_attributes.
set_port_attributes -ports {Macro/IA} –receiver_supply_set SS_VDDA_VSSA
set_port_attributes –ports {Macro/OB} –driver_supply_set SS_VDDB_VSSB
UPF2.1, IEEE1801-2013 absorbs the essence CPF hard macro model may be described by the hard macro power properties of the hard macro power model.
-
Done by a combination of the two commands:
begin_power_model upf_model -for cellA
create_power_domainPD1-elements {.} -supply {ssh1} -supply {ssh2}
# other commands ...
end_power_model
apply_power_model power_model_name
[-elements instance_list]
[-supply_map {{lower_scope_handle upper_scope_supply_set}*}]
If the library is not defined in the power supply with the recommended power_model UPF2.1 to define, more flexible and can be described as more complex.
The power relations. Power_model of a complete example: