Wednesday 23 November 2016

Strategy will be applied on which ports if no filter is used in strategy?

In below case which are the target ports for isolation ?


module top ();
core1 CORE1 (.*);
endmodule

module core1 (input in1, in2 ,outpot out1);
assign out1 = in1 & in2 ;
endmodule


create_power_domain PD1 -elements {CORE1}
set_isolation iso_1 -domain PD1


>> Here as no filter is specified by default all the i/p and o/p ports of CORE1 are target port for strategy  "iso_1" .



Precedence rules in UPF Strategy

User can specify different strategy which may refer to same element , but with different options in strategy.
Let us take example of isolation strategy .

If user has below UPF isolation strategies which one is takes the higher precedence .

set_isolation iso_1 -domain PD1

set_isolation iso_2 -domain PD1 -applies_to outputs

set_isolation iso_3 -domain PD1  -source PD1.primary

set_isolation iso_4 -domain PD1 -sink TOP.primary

set_isolation iso_5 -domain PD1 -source PD1.primary -sink TOP.primary

set_isolation iso_6 -domain PD1 -elements {CORE1}

set_isolation iso_7 -domain PD1 -elements {CORE1/out1}

set_isolation iso_8 -domain PD1 -elements {CORE1/out1[1]}


>> Here highest precedence will be given to strategy "iso_8" . Similarly 2nd priority to "iso_7" and so on.