123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- ClockUpdateSimTraceEnable (Clock_Ip_NameType clockName, boolean gate)
- {
- struct Clock_Ip_GateConfigType config;
- <bb 2> :
- config.name = clockName_3(D);
- if (gate_5(D) != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- config.enable = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- config.enable = 1;
- <bb 5> :
- ClockSetSimTraceEnable (&config);
- config ={v} {CLOBBER};
- return;
- }
- ClockSetSimTraceEnable (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- ClockSetSimTraceEnable_TrustedCall (config_2(D));
- return;
- }
- ClockSetSimTraceEnable_TrustedCall (const struct Clock_Ip_GateConfigType * config)
- {
- uint32 regValue;
- struct SIM_Type * _1;
- short unsigned int _2;
- struct SIM_Type * _3;
- <bb 2> :
- _1 = 1074036736B;
- regValue_6 ={v} _1->CLKDIV4;
- _2 = config_7(D)->enable;
- if (_2 == 1)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- regValue_9 = regValue_6 | 268435456;
- goto <bb 5>; [INV]
- <bb 4> :
- regValue_8 = regValue_6 & 4026531839;
- <bb 5> :
- # regValue_4 = PHI <regValue_9(3), regValue_8(4)>
- _3 = 1074036736B;
- _3->CLKDIV4 ={v} regValue_4;
- return;
- }
- ClockUpdateSimGate (Clock_Ip_NameType clockName, boolean gate)
- {
- struct Clock_Ip_GateConfigType config;
- <bb 2> :
- config.name = clockName_3(D);
- if (gate_5(D) != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- config.enable = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- config.enable = 1;
- <bb 5> :
- ClockSetSimGate (&config);
- config ={v} {CLOBBER};
- return;
- }
- ClockSetSimGate (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- ClockSetSimGate_TrustedCall (config_2(D));
- return;
- }
- ClockSetSimGate_TrustedCall (const struct Clock_Ip_GateConfigType * config)
- {
- uint32 regValue;
- uint32 gateIndex;
- uint32 enable;
- short unsigned int _1;
- <unnamed type> _2;
- unsigned char _3;
- struct SIM_Type * _4;
- long unsigned int _5;
- long unsigned int _6;
- long unsigned int _7;
- struct SIM_Type * _8;
- <bb 2> :
- _1 = config_10(D)->enable;
- enable_11 = (uint32) _1;
- _2 = config_10(D)->name;
- _3 = clockFeatures[_2][6];
- gateIndex_12 = (uint32) _3;
- _4 = 1074036736B;
- regValue_13 ={v} _4->PLATCGC;
- _5 = 1 << gateIndex_12;
- _6 = ~_5;
- regValue_14 = regValue_13 & _6;
- _7 = enable_11 << gateIndex_12;
- regValue_15 = regValue_14 | _7;
- _8 = 1074036736B;
- _8->PLATCGC ={v} regValue_15;
- return;
- }
- ClockUpdatePccCgcEnable (Clock_Ip_NameType clockName, boolean gate)
- {
- struct Clock_Ip_GateConfigType config;
- <bb 2> :
- config.name = clockName_3(D);
- if (gate_5(D) != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- config.enable = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- config.enable = 1;
- <bb 5> :
- ClockSetPccCgcEnable (&config);
- config ={v} {CLOBBER};
- return;
- }
- ClockSetPccCgcEnable (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- ClockSetPccCgcEnable_TrustedCall (config_2(D));
- return;
- }
- ClockSetPccCgcEnable_TrustedCall (const struct Clock_Ip_GateConfigType * config)
- {
- uint32 regValue;
- struct PCC_Type * _1;
- <unnamed type> _2;
- unsigned char _3;
- int _4;
- short unsigned int _5;
- long unsigned int _6;
- long unsigned int _7;
- struct PCC_Type * _8;
- <unnamed type> _9;
- unsigned char _10;
- int _11;
- <bb 2> :
- _1 = 1074155520B;
- _2 = config_13(D)->name;
- _3 = clockFeatures[_2][6];
- _4 = (int) _3;
- regValue_14 ={v} _1->PCCn[_4];
- regValue_15 = regValue_14 & 3221225471;
- _5 = config_13(D)->enable;
- _6 = (long unsigned int) _5;
- _7 = _6 << 30;
- regValue_16 = regValue_15 | _7;
- _8 = 1074155520B;
- _9 = config_13(D)->name;
- _10 = clockFeatures[_9][6];
- _11 = (int) _10;
- _8->PCCn[_11] ={v} regValue_16;
- return;
- }
- ClockUpdateSimClkoutEnable (Clock_Ip_NameType clockName, boolean gate)
- {
- struct Clock_Ip_GateConfigType config;
- <bb 2> :
- config.name = clockName_3(D);
- if (gate_5(D) != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- config.enable = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- config.enable = 1;
- <bb 5> :
- ClockSetSimClkoutEnable (&config);
- config ={v} {CLOBBER};
- return;
- }
- ClockSetSimClkoutEnable (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- ClockSetSimClkoutEnable_TrustedCall (config_2(D));
- return;
- }
- ClockSetSimClkoutEnable_TrustedCall (const struct Clock_Ip_GateConfigType * config)
- {
- uint32 regValue;
- struct SIM_Type * _1;
- short unsigned int _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SIM_Type * _5;
- <bb 2> :
- _1 = 1074036736B;
- regValue_7 ={v} _1->CHIPCTL;
- regValue_8 = regValue_7 & 4294965247;
- _2 = config_9(D)->enable;
- _3 = (long unsigned int) _2;
- _4 = _3 << 11;
- regValue_10 = regValue_8 | _4;
- _5 = 1074036736B;
- _5->CHIPCTL ={v} regValue_10;
- return;
- }
- ClockUpdateSimLPO32KEnable (Clock_Ip_NameType clockName, boolean gate)
- {
- struct Clock_Ip_GateConfigType config;
- <bb 2> :
- config.name = clockName_3(D);
- if (gate_5(D) != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- config.enable = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- config.enable = 1;
- <bb 5> :
- ClockSetSimLPO32KEnable (&config);
- config ={v} {CLOBBER};
- return;
- }
- ClockSetSimLPO32KEnable (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- ClockSetSimLPO32KEnable_TrustedCall (config_2(D));
- return;
- }
- ClockSetSimLPO32KEnable_TrustedCall (const struct Clock_Ip_GateConfigType * config)
- {
- uint32 regValue;
- struct SIM_Type * _1;
- short unsigned int _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SIM_Type * _5;
- <bb 2> :
- _1 = 1074036736B;
- regValue_7 ={v} _1->LPOCLKS;
- regValue_8 = regValue_7 & 4294967293;
- _2 = config_9(D)->enable;
- _3 = (long unsigned int) _2;
- _4 = _3 << 1;
- regValue_10 = regValue_8 | _4;
- _5 = 1074036736B;
- _5->LPOCLKS ={v} regValue_10;
- return;
- }
- ClockUpdateSimLPO1KEnable (Clock_Ip_NameType clockName, boolean gate)
- {
- struct Clock_Ip_GateConfigType config;
- <bb 2> :
- config.name = clockName_3(D);
- if (gate_5(D) != 0)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- config.enable = 0;
- goto <bb 5>; [INV]
- <bb 4> :
- config.enable = 1;
- <bb 5> :
- ClockSetSimLPO1KEnable (&config);
- config ={v} {CLOBBER};
- return;
- }
- ClockSetSimLPO1KEnable (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- ClockSetSimLPO1KEnable_TrustedCall (config_2(D));
- return;
- }
- ClockSetSimLPO1KEnable_TrustedCall (const struct Clock_Ip_GateConfigType * config)
- {
- uint32 regValue;
- struct SIM_Type * _1;
- short unsigned int _2;
- long unsigned int _3;
- struct SIM_Type * _4;
- <bb 2> :
- _1 = 1074036736B;
- regValue_6 ={v} _1->LPOCLKS;
- regValue_7 = regValue_6 & 4294967294;
- _2 = config_8(D)->enable;
- _3 = (long unsigned int) _2;
- regValue_9 = regValue_7 | _3;
- _4 = 1074036736B;
- _4->LPOCLKS ={v} regValue_9;
- return;
- }
- ClockUpdateGateEmpty (Clock_Ip_NameType clockName, boolean gate)
- {
- <bb 2> :
- return;
- }
- ClockSetGateEmpty (const struct Clock_Ip_GateConfigType * config)
- {
- <bb 2> :
- return;
- }
|