Configuration1.cdb 354 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974
  1. //!
  2. //# c64xx.cdb 5.23.14
  3. object CACHE_L2 :: MEM {
  4. param iComment :: "Do not delete, in use by cache"
  5. param iIsUsed :: 0
  6. param iId :: 0
  7. param iDelUser :: "USER"
  8. param iDelMsg :: "ok"
  9. param base :: 1048576
  10. param len :: 0
  11. param iAllocHeap :: 0
  12. param iHeapSize :: 32768
  13. param iUserHeapId :: 0
  14. param iHeapId :: @segment_name
  15. param iReqHeapCount :: 0
  16. param space :: "Cache"
  17. param dynamicLoading :: 0
  18. param iIsModifiable :: 1
  19. }
  20. class Module {
  21. prop Visible :: 1
  22. prop Writable :: 1
  23. prop IsConfMod :: (if self.gNumOf > 0 {1} else {0})
  24. prop NoGen :: 0
  25. prop IsDirty :: ($a = self.gDirty, self.gDirty = 0, $a)
  26. prop dataSize :: 0
  27. prop error :: # ("Error: ", self.name, $1)
  28. prop warning :: ("Warning ...", self.name, $1)
  29. prop minBit :: ($a = 0, while (($1 & (1 << $a)) && $a < 32) {++$a}, $a)
  30. prop name :: ("<unnamed module>")
  31. prop numBit :: ($a = $b = 0, while ($a < 32) {if ($1 & (1 << $a)) {++$b} }, $b)
  32. }
  33. class ObjectMgr {
  34. isa Module
  35. prop CanCreate :: (if (self.gNumOf < self.maxObjs()) {self.localCanCreate()} else {self.warning("Maximum number of objects already created")})
  36. prop CanDelete :: (if (self.iDelMsg == "ok" || (self.iDelUser == self.gUser)) {if (self.iId >= 0 && self.iIsUsed) {self.localCanDelete()} else {self.warning("Object already deleted")}} else {self.warning(self.iDelMsg)})
  37. prop Create :: ((self.gUser = (if $0 > 0 {$1} else {"USER"})), if (($a = self.CanCreate()) == "ok") {if (($a = self.localCreate()) == "ok") {if (self.iIsUsed == 0) {self.mkId(if $0 > 1 {$2} else {-1}), self.iIsUsed = 1, GlobalStatus.gDirty = 1, self.gDirty = 1} } } , (self.gUser = "USER"), $a)
  38. prop Delete :: ((self.gUser = (if $0 > 0 {$1} else {"USER"})), if (($a = self.CanDelete()) == "ok") {if (($a = self.localDelete()) == "ok") {self.rmId(self.iId), self.iIsUsed = 0, GlobalStatus.gDirty = 1, self.gDirty = 1} } , (self.gUser = "USER"), $a)
  39. prop GetSetOf :: (self.gSetOf)
  40. prop GetNumOf :: (self.gNumOf)
  41. prop GetObjId :: (self.iId)
  42. prop GetPriority :: (self.iId)
  43. prop SetPriority :: (self.iId = $1)
  44. prop IsConfObj :: (self.iIsUsed)
  45. prop localCanCreate :: ("ok")
  46. prop localCanDelete :: ("ok")
  47. prop localCreate :: ("ok")
  48. prop localDelete :: ("ok")
  49. prop localInit :: (0)
  50. prop isFinite :: (if self.maxObjs() <= GBL.DSPWORDSIZE {1} else {0})
  51. prop mkId :: (if (self.isFinite()) {if ($1 < 0) {self.iId = self.minBit(self.gSetOf)} else {self.iId = $1}, (self.gSetOf |= (1 << self.iId))} else {self.iId = 0}, ++self.gNumOf, self.iId)
  52. prop rmId :: (if (self.isFinite()) {self.gSetOf &= ~(1 << self.iId)} , --self.gNumOf)
  53. prop maxObjs :: (GBL.DSPWORDSIZE)
  54. prop isDriver :: (0)
  55. prop SortChildHierView :: (1)
  56. }
  57. type GlobalStatus {
  58. prop NoGen :: 1
  59. prop Visible :: 0
  60. prop Writable :: 0
  61. prop Label :: "Current Configuration Status"
  62. prop GlobalIcon :: 101
  63. prop InstanceIcon :: 101
  64. prop GlobalHelpTopic :: (100)
  65. prop GlobalPropertyPage :: ("{9D3AD931-847B-11d0-A621-0000C070F3E9}")
  66. prop Status :: (# self.SeedVersion, # self.MinStackSize, # self.SysDataSize)
  67. global GENLIB :: "bioscfg.dll" {
  68. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  69. prop Label :: "Generation Library"
  70. prop NoGen :: 1
  71. prop Visible :: 0
  72. prop Writable :: 1
  73. }
  74. global DATE :: "Fri Apr 04 15:41:02 2008" {
  75. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  76. prop Visible :: 0
  77. prop Writable :: 0
  78. prop NoGen :: 1
  79. }
  80. global GCONFVERS :: "@(#)*** xdc-m66" {
  81. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  82. prop Visible :: 0
  83. prop Writable :: 0
  84. prop NoGen :: 1
  85. }
  86. global SysDataSize :: = ($a = 0, scan ($i; nil) {if ($i.dataSize() != nil) {$a = $a + $i.dataSize()} }, $a) {
  87. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  88. prop Format :: "Estimated Data Size: %d"
  89. prop StatusField :: 1
  90. prop NoGen :: 1
  91. }
  92. global MinStackSize :: = ($a = ((2 * (2)) * 4), $a = $a + ((2 * (5)) * 4), $a = $a + ((0) * 4), $b = 0, scan ($i; CLK) {if ($i.IsConfObj()) {$b |= 1} }, $a = $a + (((2 * (2)) * 4) * $b), $b = 0, scan ($i; HWI) {if ($i.IsConfObj()) {if ($i != HWI_NMI && $i != HWI_RESET) {if (($i.function != @HWI_unused) && ($i.function != @RESERVED)) {$b++} } } }, $a = $a + (((12 + 14 + 2) * 4) * $b), $b = 0, scan ($i; SWI) {if ($i.IsConfObj()) {if ($i.priority > $b) {$b = $i.priority} } }, $a = $a + ((((2 * 2) + 18 + (2 * 4)) * 4) * $b), $b = 0, scan ($i; PRD) {if ($i.IsConfObj()) {$b |= 1} }, $a = $a + (((2 * (3)) * 4) * $b), $a) {
  93. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  94. prop Format :: "Est. Min. Stack Size (MAUs): %d"
  95. prop StatusField :: 1
  96. prop Visible :: 0
  97. prop Writable :: 0
  98. prop NoGen :: 1
  99. }
  100. global ConfigWarnings :: = (if (self.MinStackSize > MEM.STACKSIZE) {"Application stack size is too small; decrease the number of SWI priorities or increase the stack in MEM."} else {"None"}) {
  101. prop Label :: "Warnings"
  102. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  103. prop Visible :: 0
  104. prop Writable :: 0
  105. prop NoGen :: 1
  106. }
  107. global SeedVersion :: = "@(#)*** cuda-r14x" {
  108. prop Visible :: 0
  109. prop Writable :: 0
  110. prop NoGen :: 1
  111. }
  112. global gDirty :: 1 {
  113. prop Visible :: 0
  114. prop Writable :: 0
  115. prop NoGen :: 1
  116. }
  117. }
  118. class EModule {
  119. isa Module
  120. prop IsXMod :: (1)
  121. prop Vendor :: ("")
  122. prop Version :: ("")
  123. }
  124. class EObjectMgr {
  125. isa ObjectMgr
  126. prop IsXMod :: (1)
  127. prop Vendor :: ("")
  128. prop Version :: ("")
  129. }
  130. class ModuleFolder {
  131. isa Module
  132. prop NoGen :: 1
  133. }
  134. type SYSTEM {
  135. isa ModuleFolder
  136. prop Label :: "System"
  137. prop GlobalIcon :: 151
  138. prop GlobalHelpTopic :: (500)
  139. prop GlobalPropertyPage :: ("{B936FB91-52A5-11d4-947C-0050048381B7}")
  140. global gUser :: "USER" {
  141. prop Visible :: 0
  142. prop Writable :: 0
  143. prop NoGen :: 1
  144. }
  145. global gSetOf :: 0 {
  146. prop Visible :: 0
  147. prop Writable :: 0
  148. prop NoGen :: 1
  149. }
  150. global gNumOf :: 0 {
  151. prop Visible :: 0
  152. prop Writable :: 0
  153. prop NoGen :: 1
  154. }
  155. global gDirty :: 0 {
  156. prop Visible :: 0
  157. prop Writable :: 0
  158. prop NoGen :: 1
  159. }
  160. global gInitFlag :: 1 {
  161. prop Visible :: 0
  162. prop Writable :: 0
  163. prop NoGen :: 1
  164. }
  165. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  166. prop Visible :: 0
  167. prop Writable :: 0
  168. prop NoGen :: 1
  169. }
  170. }
  171. type INS {
  172. isa ModuleFolder
  173. prop Label :: "Instrumentation"
  174. prop GlobalIcon :: 152
  175. prop GlobalHelpTopic :: (501)
  176. prop GlobalPropertyPage :: ("{053C8F90-52A6-11d4-947C-0050048381B7}")
  177. global gUser :: "USER" {
  178. prop Visible :: 0
  179. prop Writable :: 0
  180. prop NoGen :: 1
  181. }
  182. global gSetOf :: 0 {
  183. prop Visible :: 0
  184. prop Writable :: 0
  185. prop NoGen :: 1
  186. }
  187. global gNumOf :: 0 {
  188. prop Visible :: 0
  189. prop Writable :: 0
  190. prop NoGen :: 1
  191. }
  192. global gDirty :: 0 {
  193. prop Visible :: 0
  194. prop Writable :: 0
  195. prop NoGen :: 1
  196. }
  197. global gInitFlag :: 1 {
  198. prop Visible :: 0
  199. prop Writable :: 0
  200. prop NoGen :: 1
  201. }
  202. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  203. prop Visible :: 0
  204. prop Writable :: 0
  205. prop NoGen :: 1
  206. }
  207. }
  208. type SCH {
  209. isa ModuleFolder
  210. prop Label :: "Scheduling"
  211. prop GlobalIcon :: 153
  212. prop GlobalHelpTopic :: (502)
  213. prop GlobalPropertyPage :: ("{053C8F91-52A6-11d4-947C-0050048381B7}")
  214. global gUser :: "USER" {
  215. prop Visible :: 0
  216. prop Writable :: 0
  217. prop NoGen :: 1
  218. }
  219. global gSetOf :: 0 {
  220. prop Visible :: 0
  221. prop Writable :: 0
  222. prop NoGen :: 1
  223. }
  224. global gNumOf :: 0 {
  225. prop Visible :: 0
  226. prop Writable :: 0
  227. prop NoGen :: 1
  228. }
  229. global gDirty :: 0 {
  230. prop Visible :: 0
  231. prop Writable :: 0
  232. prop NoGen :: 1
  233. }
  234. global gInitFlag :: 1 {
  235. prop Visible :: 0
  236. prop Writable :: 0
  237. prop NoGen :: 1
  238. }
  239. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  240. prop Visible :: 0
  241. prop Writable :: 0
  242. prop NoGen :: 1
  243. }
  244. }
  245. type SYN {
  246. isa ModuleFolder
  247. prop Label :: "Synchronization"
  248. prop GlobalIcon :: 154
  249. prop GlobalHelpTopic :: (503)
  250. prop GlobalPropertyPage :: ("{053C8F92-52A6-11d4-947C-0050048381B7}")
  251. global gUser :: "USER" {
  252. prop Visible :: 0
  253. prop Writable :: 0
  254. prop NoGen :: 1
  255. }
  256. global gSetOf :: 0 {
  257. prop Visible :: 0
  258. prop Writable :: 0
  259. prop NoGen :: 1
  260. }
  261. global gNumOf :: 0 {
  262. prop Visible :: 0
  263. prop Writable :: 0
  264. prop NoGen :: 1
  265. }
  266. global gDirty :: 0 {
  267. prop Visible :: 0
  268. prop Writable :: 0
  269. prop NoGen :: 1
  270. }
  271. global gInitFlag :: 1 {
  272. prop Visible :: 0
  273. prop Writable :: 0
  274. prop NoGen :: 1
  275. }
  276. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  277. prop Visible :: 0
  278. prop Writable :: 0
  279. prop NoGen :: 1
  280. }
  281. }
  282. type IOF {
  283. isa ModuleFolder
  284. prop Label :: "Input/Output"
  285. prop GlobalIcon :: 155
  286. prop GlobalHelpTopic :: (504)
  287. prop GlobalPropertyPage :: ("{053C8F93-52A6-11d4-947C-0050048381B7}")
  288. global gUser :: "USER" {
  289. prop Visible :: 0
  290. prop Writable :: 0
  291. prop NoGen :: 1
  292. }
  293. global gSetOf :: 0 {
  294. prop Visible :: 0
  295. prop Writable :: 0
  296. prop NoGen :: 1
  297. }
  298. global gNumOf :: 0 {
  299. prop Visible :: 0
  300. prop Writable :: 0
  301. prop NoGen :: 1
  302. }
  303. global gDirty :: 0 {
  304. prop Visible :: 0
  305. prop Writable :: 0
  306. prop NoGen :: 1
  307. }
  308. global gInitFlag :: 1 {
  309. prop Visible :: 0
  310. prop Writable :: 0
  311. prop NoGen :: 1
  312. }
  313. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  314. prop Visible :: 0
  315. prop Writable :: 0
  316. prop NoGen :: 1
  317. }
  318. }
  319. type SIODRIVER {
  320. isa ModuleFolder
  321. prop Label :: "Device Drivers"
  322. prop IsContainedIn :: IOF
  323. prop GlobalIcon :: 127
  324. prop GlobalHelpTopic :: (505)
  325. prop GlobalPropertyPage :: ("{A2BCEC70-5365-11d4-947C-0050048381B7}")
  326. global gUser :: "USER" {
  327. prop Visible :: 0
  328. prop Writable :: 0
  329. prop NoGen :: 1
  330. }
  331. global gSetOf :: 0 {
  332. prop Visible :: 0
  333. prop Writable :: 0
  334. prop NoGen :: 1
  335. }
  336. global gNumOf :: 0 {
  337. prop Visible :: 0
  338. prop Writable :: 0
  339. prop NoGen :: 1
  340. }
  341. global gDirty :: 0 {
  342. prop Visible :: 0
  343. prop Writable :: 0
  344. prop NoGen :: 1
  345. }
  346. global gInitFlag :: 1 {
  347. prop Visible :: 0
  348. prop Writable :: 0
  349. prop NoGen :: 1
  350. }
  351. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  352. prop Visible :: 0
  353. prop Writable :: 0
  354. prop NoGen :: 1
  355. }
  356. }
  357. type PROJ {
  358. isa ObjectMgr
  359. prop name :: "PROJ"
  360. prop maxObjs :: 0
  361. prop Label :: "Project Manager"
  362. prop GlobalIcon :: 121
  363. prop InstanceIcon :: 122
  364. prop InstanceHelpTopic :: (201)
  365. prop GlobalHelpTopic :: (101)
  366. prop InstancePropertyPage :: ("{AC3C77D1-890B-11d0-A621-0000C070F3E9}")
  367. prop GlobalPropertyPage :: ("{AC3C77D2-890B-11d0-A621-0000C070F3E9}")
  368. prop NoGen :: 1
  369. prop Visible :: 0
  370. global gUser :: "USER" {
  371. prop Visible :: 0
  372. prop Writable :: 0
  373. prop NoGen :: 1
  374. }
  375. global gSetOf :: 0 {
  376. prop Visible :: 0
  377. prop Writable :: 0
  378. prop NoGen :: 1
  379. }
  380. global gNumOf :: 0 {
  381. prop Visible :: 0
  382. prop Writable :: 0
  383. prop NoGen :: 1
  384. }
  385. global gDirty :: 0 {
  386. prop Visible :: 0
  387. prop Writable :: 0
  388. prop NoGen :: 1
  389. }
  390. global gInitFlag :: 1 {
  391. prop Visible :: 0
  392. prop Writable :: 0
  393. prop NoGen :: 1
  394. }
  395. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  396. prop Visible :: 0
  397. prop Writable :: 0
  398. prop NoGen :: 1
  399. }
  400. global ALIASALL :: 1 {
  401. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  402. prop Label :: "Generate C Names for All Objects"
  403. prop Visible :: 1
  404. prop Writable :: 1
  405. prop NoGen :: 1
  406. }
  407. global IGNOREWARNING :: 0 {
  408. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  409. prop Label :: "Ignore Warnings"
  410. prop Visible :: 1
  411. prop Writable :: 1
  412. prop NoGen :: 1
  413. }
  414. global LIBPATH :: ".;../../lib;$(BIOSROOT)/lib" {
  415. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  416. prop Label :: "Library Search Path"
  417. prop Visible :: 0
  418. prop Writable :: 1
  419. prop NoGen :: 1
  420. }
  421. global INCPATH :: ".;../../include;$(BIOSROOT)/include" {
  422. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  423. prop Label :: "Include File Search Path"
  424. prop Visible :: 0
  425. prop Writable :: 1
  426. prop NoGen :: 1
  427. }
  428. global OBJDIR :: "." {
  429. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  430. prop Label :: "Object file directory"
  431. prop Visible :: 0
  432. prop Writable :: 1
  433. prop NoGen :: 1
  434. }
  435. global EXTEXE :: "out" {
  436. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  437. prop Label :: "Executable File Extension"
  438. prop Visible :: 0
  439. prop Writable :: 1
  440. prop NoGen :: 1
  441. }
  442. global EXTLIB :: "lib" {
  443. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  444. prop Label :: "Library File Extension"
  445. prop Visible :: 0
  446. prop Writable :: 1
  447. prop NoGen :: 1
  448. }
  449. global EXTASM :: "asm" {
  450. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  451. prop Label :: "Assembly Language Source File Extension"
  452. prop Visible :: 0
  453. prop Writable :: 1
  454. prop NoGen :: 1
  455. }
  456. global EXTOBJ :: "obj" {
  457. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  458. prop Label :: "Object File Extension"
  459. prop Visible :: 0
  460. prop Writable :: 1
  461. prop NoGen :: 1
  462. }
  463. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  464. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  465. prop Label :: "comment"
  466. prop JSName :: "comment"
  467. prop Visible :: 1
  468. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  469. prop NoGen :: 1
  470. }
  471. inst iIsUsed :: 0 {
  472. prop Visible :: 0
  473. prop Writable :: 0
  474. prop NoGen :: 1
  475. }
  476. inst iId :: 0 {
  477. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  478. prop Style :: 0x01
  479. prop Visible :: 0
  480. prop Writable :: 1
  481. prop NoGen :: 1
  482. }
  483. inst iDelUser :: "USER" {
  484. prop Visible :: 0
  485. prop Writable :: 0
  486. prop NoGen :: 1
  487. }
  488. inst iDelMsg :: "ok" {
  489. prop Visible :: 0
  490. prop Writable :: 0
  491. prop NoGen :: 1
  492. }
  493. inst projType :: "Executable" {
  494. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  495. prop Enum :: "Executable,Library"
  496. prop Label :: "Target Type"
  497. prop Visible :: 0
  498. prop Writable :: 1
  499. prop NoGen :: 1
  500. }
  501. inst projName :: "$(PROG)" {
  502. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  503. prop Label :: "Target File Name"
  504. prop Visible :: 0
  505. prop Writable :: 1
  506. prop NoGen :: 1
  507. }
  508. inst useRpt :: 0 {
  509. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  510. prop Label :: "Use RPT Instruction"
  511. prop Visible :: 0
  512. prop Writable :: 1
  513. prop NoGen :: 1
  514. }
  515. inst minimizeSpace :: 0 {
  516. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  517. prop Label :: "Optimize for Space over Time"
  518. prop Visible :: 0
  519. prop Writable :: 1
  520. prop NoGen :: 1
  521. }
  522. inst tmx :: 0 {
  523. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  524. prop Label :: "Avoid TMX Silicon Bugs"
  525. prop Visible :: 0
  526. prop Writable :: 1
  527. prop NoGen :: 1
  528. }
  529. }
  530. type PROJ_FILE {
  531. isa ObjectMgr
  532. prop Visible :: 0
  533. prop Label :: "Project File Manager"
  534. prop InstanceHelpTopic :: (BIOSHELP_PROJ_FILE_INSTANCE)
  535. prop GlobalHelpTopic :: (BIOSHELP_PROJ_FILE_GLOBAL)
  536. prop InstancePropertyPage :: ("{AC3C77D3-890B-11d0-A621-0000C070F3E9}")
  537. prop GlobalPropertyPage :: ("{AC3C77D4-890B-11d0-A621-0000C070F3E9}")
  538. prop NoGen :: 1
  539. global gUser :: "USER" {
  540. prop Visible :: 0
  541. prop Writable :: 0
  542. prop NoGen :: 1
  543. }
  544. global gSetOf :: 0 {
  545. prop Visible :: 0
  546. prop Writable :: 0
  547. prop NoGen :: 1
  548. }
  549. global gNumOf :: 0 {
  550. prop Visible :: 0
  551. prop Writable :: 0
  552. prop NoGen :: 1
  553. }
  554. global gDirty :: 0 {
  555. prop Visible :: 0
  556. prop Writable :: 0
  557. prop NoGen :: 1
  558. }
  559. global gInitFlag :: 1 {
  560. prop Visible :: 0
  561. prop Writable :: 0
  562. prop NoGen :: 1
  563. }
  564. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  565. prop Visible :: 0
  566. prop Writable :: 0
  567. prop NoGen :: 1
  568. }
  569. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  570. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  571. prop Label :: "comment"
  572. prop JSName :: "comment"
  573. prop Visible :: 1
  574. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  575. prop NoGen :: 1
  576. }
  577. inst iIsUsed :: 0 {
  578. prop Visible :: 0
  579. prop Writable :: 0
  580. prop NoGen :: 1
  581. }
  582. inst iId :: 0 {
  583. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  584. prop Style :: 0x01
  585. prop Visible :: 0
  586. prop Writable :: 1
  587. prop NoGen :: 1
  588. }
  589. inst iDelUser :: "USER" {
  590. prop Visible :: 0
  591. prop Writable :: 0
  592. prop NoGen :: 1
  593. }
  594. inst iDelMsg :: "ok" {
  595. prop Visible :: 0
  596. prop Writable :: 0
  597. prop NoGen :: 1
  598. }
  599. inst elemType :: "C Source" {
  600. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  601. prop Enum :: "C Source,ASM Source,Library,Linker Command File"
  602. prop Label :: "Input File Type"
  603. prop Visible :: 0
  604. prop Writable :: 1
  605. prop NoGen :: 1
  606. }
  607. inst elemName :: "$(PROG)" {
  608. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  609. prop Label :: "Input File Name"
  610. prop Visible :: 0
  611. prop Writable :: 1
  612. prop NoGen :: 1
  613. }
  614. inst optLevel :: "register+local+global" {
  615. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  616. prop Enum :: "register,register+local,register+local+global,register+local+global+file"
  617. prop Label :: "Optimization Level"
  618. prop Visible :: 0
  619. prop Writable :: if self.elemType == "C Source" {1} else {0}
  620. prop NoGen :: 1
  621. }
  622. inst inline :: 1 {
  623. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  624. prop Label :: "Inline Expansion"
  625. prop Visible :: 0
  626. prop Writable :: if self.elemType == "C Source" {1} else {0}
  627. prop NoGen :: 1
  628. }
  629. inst definitions :: "" {
  630. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  631. prop Label :: "Additional Definitions"
  632. prop Visible :: 0
  633. prop Writable :: if self.elemType == "C Source" {1} else {0}
  634. prop NoGen :: 1
  635. }
  636. inst iParent :: 0 {
  637. prop Visible :: 0
  638. prop Writable :: 1
  639. prop NoGen :: 1
  640. }
  641. }
  642. type GBL {
  643. isa Module
  644. prop name :: "GBL"
  645. prop Label :: "Global Settings"
  646. prop IsContainedIn :: SYSTEM
  647. prop cGen :: 0
  648. prop GenLinkPrologue :: ("%10S\nSECTIONS {%4t\n.vers (COPY): {} /* version information */%0t\n}\n\n-priority\n--trampolines\n%25S%1S%22S-l%2S%23S%3S\n%24S%15S%4S%16S%18S%5S%6S%12S%7S%17S\0, _autoInitStr, _board, _librarySuffix, _devLibStr, _biosLibStr, _rtdxLibStr, _rtsLibStr, _librarySuffix, _compilerModel, _lnkCmdStr, _lnkCmdFile, _cslLibStr, _chipType, _librarySuffix, _chipStr, _sioLibStr, _mpcLibStr, _bios6xLibStr, _bios6xClkType, _instStr, _rtsNameStr, _romStr, _biosRomStr, _logLibStr, _SKLibStr")
  649. prop poolStr :: (if (self.LINKWITHROM == 0) {""} else {if POOL.USEPOOL {""} else {"_POOL_config=0;\n"}})
  650. prop msgqStr :: (if (self.LINKWITHROM == 0) {""} else {if MSGQ.USEMSGQ {""} else {"_MSGQ_config=0;\n"}})
  651. prop GenLinkEpilogue :: ("%0t_GBL_CACHE = GBL_CACHE;\n%1S%2S\0, poolStr, msgqStr")
  652. prop ConfigurationClass :: "{2779A121-92CC-11d1-A63D-0000C070F3E9}"
  653. prop GlobalIcon :: 105
  654. prop InstanceIcon :: 106
  655. prop GlobalHelpTopic :: (103)
  656. prop InstanceHelpTopic :: (103)
  657. prop InstancePropertyPage :: ("{B7240DE4-AA51-11cf-9BFE-0000C0AC14C7}")
  658. prop GlobalPropertyPage :: ("{B7240DE5-AA51-11cf-9BFE-0000C0AC14C7}")
  659. prop localInit :: (RTA_toHost.Create("HST"), RTA_fromHost.Create("HST"), RTA_dispatcher.Create("HST"), IDL_busyObj.Create("IDL"), IDL.USEIDLBUSYOBJ = 1, IDL_cpuLoad.Create("IDL"))
  660. prop chipcall :: ("ok")
  661. prop IsConfMod :: 1
  662. prop ucompare :: ($e = "ok", $a = ($1 >> 31) & 0x00000001, $b = ($2 >> 31) & 0x00000001, $c = $1 & 0x7fffffff, $d = $2 & 0x7fffffff, if ($a > $b) {$e = "gt"} else {if ($a == $b) {if ($c > $d) {$e = "gt"} else {if ($c == $d) {$e = "eq"} else {$e = "lt"}}} else {$e = "lt"}}, $e)
  663. prop L2Check :: (if (self.DSPSUBTYPE == 6211 || self.DSPSUBTYPE == 6711) {self.PCC = "mapped", if (self.C641XL2CONFIGURE == 1) {self.C641XL2CONFIGURE = 0, self.L2CONFIGALLOC = 0} , self.L2CacheSizeCheck()} else {if (self.DSPSUBTYPE == 6400) {self.PCC = "mapped", if (self.C621XL2CONFIGURE == 1) {self.C621XL2CONFIGURE = 0} , self.L2CacheSizeCheck()} else {if (self.C621XL2CONFIGURE == 1) {self.C621XL2CONFIGURE = 0, self.L2CacheSizeCheck()} else {if (self.C641XL2CONFIGURE == 1) {self.C641XL2CONFIGURE = 0, self.L2CONFIGALLOC = 0, self.L2CacheSizeCheck()} }}})
  664. prop C621xL2CacheSizeCheck :: ($e = "ok", $a = CACHE_L2.base, $b = CACHE_L2.len, if (self.C621XL2CONFIGURE == 0) {CACHE_L2.Delete("MEM")} else {if (self.L2MODEOPTS == "SRAM") {CACHE_L2.base = CACHE_L2.base + CACHE_L2.len, CACHE_L2.len = 0x0, CACHE_L2.Delete("MEM")} else {if (self.L2MODEOPTS == "1-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x4000, CACHE_L2.len = 0x4000} else {if (self.L2MODEOPTS == "2-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x8000, CACHE_L2.len = 0x8000} else {if (self.L2MODEOPTS == "3-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0xc000, CACHE_L2.len = 0xc000} else {if (self.L2MODEOPTS == "4-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x10000, CACHE_L2.len = 0x10000} }}}}}, $e)
  665. prop C641xL2CacheSizeCheck :: ($e = "ok", $a = CACHE_L2.base, $b = CACHE_L2.len, if (self.C641XL2CONFIGURE == 0) {CACHE_L2.Delete("MEM")} else {if (self.C641XL2MODEOPTS == "4-way cache (0k)") {CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x0, CACHE_L2.len = 0x0, CACHE_L2.Delete("MEM")} else {if (self.C641XL2MODEOPTS == "4-way cache (32k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x8000, CACHE_L2.len = 0x8000} else {if (self.C641XL2MODEOPTS == "4-way cache (64k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x10000, CACHE_L2.len = 0x10000} else {if (self.C641XL2MODEOPTS == "4-way cache (128k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x20000, CACHE_L2.len = 0x20000} else {if (self.C641XL2MODEOPTS == "4-way cache (256k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x40000, CACHE_L2.len = 0x40000} }}}}}, $e)
  666. prop C64PL1PCacheSizeCheck :: ($e = "ok", if (self.C64PL2CONFIGURE == 0) {self.C64PL1PCFG = "32k", CACHE_L1P.Create("MEM"), CACHE_L1P.base = CACHE_L1P.base + CACHE_L1P.len - 0x8000, CACHE_L1P.len = 0x8000} else {if (self.C64PL1PCFG == "0k") {CACHE_L1P.base = CACHE_L1P.base + CACHE_L1P.len - 0x0, CACHE_L1P.len = 0x0, CACHE_L1P.Delete("MEM")} else {if (self.C64PL1PCFG == "4k") {CACHE_L1P.Create("MEM"), CACHE_L1P.base = CACHE_L1P.base + CACHE_L1P.len - 0x1000, CACHE_L1P.len = 0x1000} else {if (self.C64PL1PCFG == "8k") {CACHE_L1P.Create("MEM"), CACHE_L1P.base = CACHE_L1P.base + CACHE_L1P.len - 0x2000, CACHE_L1P.len = 0x2000} else {if (self.C64PL1PCFG == "16k") {CACHE_L1P.Create("MEM"), CACHE_L1P.base = CACHE_L1P.base + CACHE_L1P.len - 0x4000, CACHE_L1P.len = 0x4000} else {if (self.C64PL1PCFG == "32k") {CACHE_L1P.Create("MEM"), CACHE_L1P.base = CACHE_L1P.base + CACHE_L1P.len - 0x8000, CACHE_L1P.len = 0x8000} else {$e = self.error("Unknown cache size")}}}}}}, $e)
  667. prop C64PL1DCacheSizeCheck :: ($e = "ok", if (self.C64PL2CONFIGURE == 0) {self.C64PL1DCFG = "32k", CACHE_L1D.Create("MEM"), CACHE_L1D.base = CACHE_L1D.base + CACHE_L1D.len - 0x8000, CACHE_L1D.len = 0x8000} else {if (self.C64PL1DCFG == "0k") {CACHE_L1D.base = CACHE_L1D.base + CACHE_L1D.len - 0x0, CACHE_L1D.len = 0x0, CACHE_L1D.Delete("MEM")} else {if (self.C64PL1DCFG == "4k") {CACHE_L1D.Create("MEM"), CACHE_L1D.base = CACHE_L1D.base + CACHE_L1D.len - 0x1000, CACHE_L1D.len = 0x1000} else {if (self.C64PL1DCFG == "8k") {CACHE_L1D.Create("MEM"), CACHE_L1D.base = CACHE_L1D.base + CACHE_L1D.len - 0x2000, CACHE_L1D.len = 0x2000} else {if (self.C64PL1DCFG == "16k") {CACHE_L1D.Create("MEM"), CACHE_L1D.base = CACHE_L1D.base + CACHE_L1D.len - 0x4000, CACHE_L1D.len = 0x4000} else {if (self.C64PL1DCFG == "32k") {CACHE_L1D.Create("MEM"), CACHE_L1D.base = CACHE_L1D.base + CACHE_L1D.len - 0x8000, CACHE_L1D.len = 0x8000} else {$e = self.error("Unknown cache size")}}}}}}, $e)
  668. prop C64PL2CacheSizeCheck :: ($e = "ok", if (self.C64PL2CONFIGURE == 0) {CACHE_L2.Delete("MEM")} else {if (self.C64PL2MODEOPTS == "0k") {CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x0, CACHE_L2.len = 0x0, CACHE_L2.Delete("MEM")} else {if (self.C64PL2MODEOPTS == "32k") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x8000, CACHE_L2.len = 0x8000} else {if (self.C64PL2MODEOPTS == "64k") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x10000, CACHE_L2.len = 0x10000} else {if (self.C64PL2MODEOPTS == "128k") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x20000, CACHE_L2.len = 0x20000} else {if (self.C64PL2MODEOPTS == "256k") {CACHE_L2.Create("MEM"), CACHE_L2.base = CACHE_L2.base + CACHE_L2.len - 0x40000, CACHE_L2.len = 0x40000} else {$e = self.error("Unknown cache size")}}}}}}, $e)
  669. prop L2CacheSizeCheck :: ($e = "ok", scan ($i; MEM) {if ($i == CACHE_L2) {if self.C621XL2CONFIGURE {$e = self.C621xL2CacheSizeCheck()} else {if self.C641XL2CONFIGURE {$e = self.C641xL2CacheSizeCheck()} else {if self.DSPSUBTYPE == 6211 || self.DSPSUBTYPE == 6711 {$e = self.C621xL2CacheSizeCheck()} else {if self.DSPSUBTYPE == 6400 {$e = self.C641xL2CacheSizeCheck()} else {{CACHE_L2.base = 0x0, CACHE_L2.len = 0x0, CACHE_L2.Delete("MEM")}}}}}} }, $e)
  670. prop setCPUClock :: ($e = "ok", if ($1 != self.CPUCLOCK) {$a = self.CPUCLOCK, self.CPUCLOCK = $1, if (GBL.CALLBACKOBJ != nil) {$e = GBL.CALLBACKOBJ.call()} , if ($e != "ok") {self.CPUCLOCK = $a, GBL.CALLBACKOBJ.call()} } , if ($e == "ok") {"ok"} else {self.error($e)})
  671. prop setL2MODE :: (if (self.L2MODEOPTS == "SRAM") {0x0} else {if (self.L2MODEOPTS == "1-way cache") {0x1} else {if (self.L2MODEOPTS == "2-way cache") {0x2} else {if (self.L2MODEOPTS == "3-way cache") {0x3} else {0x7}}}})
  672. prop setC641XL2MODE :: (if (self.C641XL2MODEOPTS == "4-way cache (0k)") {0x0} else {if (self.C641XL2MODEOPTS == "4-way cache (32k)") {0x1} else {if (self.C641XL2MODEOPTS == "4-way cache (64k)") {0x2} else {if (self.C641XL2MODEOPTS == "4-way cache (128k)") {0x3} else {0x7}}}})
  673. prop _cint00Str :: "-u_c_int00 %24t/* link with alternate boot.obj */%0t\n"
  674. prop _autoInitStr :: ""
  675. prop _board :: (if (HST.RTDX == 1) {"lnkrtdx"} else {if (HST.DSM == 1) {"lnkdsm"} else {if (HST.EVM54 == 1) {"lnkevm54"} else {if (HST.BIOSLINK == 1) {"lnkbioslink"} else {"lnknone"}}}})
  676. prop _dsptype :: GBL.DSPTYPE
  677. prop _instStr :: if self.INSTRUMENTED {""} else {"_NONINST"}
  678. prop _rtsNameStr :: (self.RTSLIB)
  679. prop _biosLibStr :: "-lbios%20S%23S%8S %24t/* DSP/BIOS support */%0t\n"
  680. prop _compilerModel :: if self.ENDIAN == "big" {"e"} else {""}
  681. prop _librarySuffix :: (if (self.DSPSUBTYPE == 6700 || self.DSPSUBTYPE == 6711 || self.DSPSUBTYPE == 6712 || self.DSPSUBTYPE == 6713) {if (self.ENDIAN == "big") {".a67e"} else {".a67"}} else {if (self.DSPSUBTYPE == 6400) {if (self.ENDIAN == "big") {".a64e"} else {".a64"}} else {if (self.DSPSUBTYPE == 6499) {if (self.ENDIAN == "big") {".a64Pe"} else {".a64P"}} else {if (self.DSPSUBTYPE == 6799) {if (self.ENDIAN == "big") {".a67Pe"} else {".a67P"}} else {if (self.ENDIAN == "big") {".a62e"} else {".a62"}}}}})
  682. prop _rtdxLibStr :: if RTDX.USERTDX == 0 {""} else {if RTDX.RTDXTYPE == "JTAG" {"-lrtdx64xx%9S.lib %24t/* RTDX support */%0t\n"} else {if RTDX.RTDXTYPE == "Simulator" {"-lrtdxsim%9S.lib %24t/* RTDX support */%0t\n"} else {"-lrtdxhs%9S.lib %24t/* RTDX support */%0t\n"}}}
  683. prop _rtsLibStr :: (if self.SPECIFYRTSLIB {"-l%21S%24t/* C and C++ run-time library support */%0t\n"} else {if self.DSPSUBTYPE == 6700 || self.DSPSUBTYPE == 6711 || self.DSPSUBTYPE == 6712 || self.DSPSUBTYPE == 6713 {"-lrts6700%9S.lib%24t/* C and C++ run-time library support */%0t\n"} else {if self.DSPSUBTYPE == 6400 {"-lrts6400%9S.lib%24t/* C and C++ run-time library support */%0t\n"} else {if self.DSPSUBTYPE == 6799 {"-lrts67plus%9S.lib%24t/* C and C++ run-time library support */%0t\n"} else {if self.DSPSUBTYPE == 6499 {"-lrts64plus%9S.lib%24t/* C and C++ run-time library support */%0t\n"} else {"-lrts6200%9S.lib%24t/* C and C++ run-time library support */%0t\n"}}}}})
  684. prop _bios6xClkType :: (if self.CLKTYPE == 6000 {"C6000"} else {if self.CLKTYPE == 700 {"DA700"} else {if (self.CLKTYPE == 420 || self.CLKTYPE == 6424) {if self.USEIDMA0DISPATCHER {"DM420IDMA0"} else {"DM420"}} else {if self.CLKTYPE == 2430 {"2430"} else {if self.CLKTYPE == 6482 {"TCI6482"} else {if self.CLKTYPE == 6486 {"TCI6486"} else {if self.CLKTYPE == 6488 {"TCI6488"} else {if self.CLKTYPE == 442 {"DRA442"} else {if self.CLKTYPE == 3430 {"3430"} else {""}}}}}}}}})
  685. prop _bios6xLibStr :: ("-lbios%19S%23S%8S%24t/* BIOS clock specific library */%0t\n")
  686. prop _chipStr :: ""
  687. prop _mpcLibStr :: ""
  688. prop _lnkCmdFile :: MEM.LNKCMDFILE
  689. prop _lnkCmdStr :: (if (MEM.LNKCMDFILE == "") {""} else {"-l%11S %24t/* User Specified Linker cmd file */%0t\n"})
  690. prop _sioLibStr :: if SIO.USEISSUERECLAIM == 1 {"-lsioir%23S%8S %24t/* supports SIO Issue/Reclaim model only */%0t\n"} else {"-lsioboth%23S%8S %24t/* supports both SIO models */%0t\n"}
  691. prop _devLibStr :: "-ldrivers%23S%14S %24t/* device drivers support */%0t\n"
  692. prop _cslLibStr :: ""
  693. prop _chipType :: ""
  694. prop _logLibStr :: if LOG.TS {"-llog8%3S\n"} else {""}
  695. prop _romStr :: if self.LINKWITHROM {"-lromC672x.out\n-lromC672x.cmd\n"} else {""}
  696. prop _biosRomStr :: if self.LINKWITHROM {"_BIOSROM"} else {""}
  697. prop _SKLibStr :: ""
  698. global gUser :: "USER" {
  699. prop Visible :: 0
  700. prop Writable :: 0
  701. prop NoGen :: 1
  702. }
  703. global gSetOf :: 0 {
  704. prop Visible :: 0
  705. prop Writable :: 0
  706. prop NoGen :: 1
  707. }
  708. global gNumOf :: 0 {
  709. prop Visible :: 0
  710. prop Writable :: 0
  711. prop NoGen :: 1
  712. }
  713. global gDirty :: 0 {
  714. prop Visible :: 0
  715. prop Writable :: 0
  716. prop NoGen :: 1
  717. }
  718. global gInitFlag :: 1 {
  719. prop Visible :: 0
  720. prop Writable :: 0
  721. prop NoGen :: 1
  722. }
  723. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  724. prop Visible :: 0
  725. prop Writable :: 0
  726. prop NoGen :: 1
  727. }
  728. global PRODUCT :: 0 {
  729. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  730. prop NoGen :: 1
  731. prop Visible :: 0
  732. prop Writable :: 1
  733. prop EnvField :: 1
  734. }
  735. global CALLBACKOBJ :: CLK {
  736. prop Visible :: 0
  737. prop Writable :: 0
  738. prop NoGen :: 1
  739. }
  740. global CHIPCHAIN :: nil {
  741. prop Visible :: 0
  742. prop Writable :: 0
  743. prop NoGen :: 1
  744. }
  745. global TRACE :: "CD-01234567" {
  746. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  747. prop Label :: "Trace Mask"
  748. prop NoGen :: 1
  749. prop Visible :: 0
  750. prop Writable :: 0
  751. }
  752. global BOARD :: "c64xx" {
  753. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  754. prop Label :: "Target Board Name"
  755. prop JSName :: "BOARDNAME"
  756. prop Visible :: 1
  757. prop Writable :: 1
  758. prop NoGen :: 1
  759. }
  760. global ROM :: 0 {
  761. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  762. prop Label :: "Link to ROM Library"
  763. prop Visible :: 0
  764. prop Writable :: 0
  765. prop NoGen :: 0
  766. }
  767. global CPUCLOCK :: 720.000000 {
  768. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  769. prop Visible :: 0
  770. prop Writable :: 0
  771. prop NoGen :: 1
  772. }
  773. global PROCID :: = 0 {
  774. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  775. prop Style :: 0x01
  776. prop Label :: "Processor ID (PROCID)"
  777. prop JSName :: "PROCID"
  778. prop Visible :: 1
  779. prop Writable :: 1
  780. prop NoGen :: 0
  781. }
  782. global CLKIN :: = 20000 {
  783. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  784. prop Style :: 0x20
  785. prop Label :: "Board Clock in KHz (Informational Only)"
  786. prop JSName :: "CLKIN"
  787. prop Visible :: 1
  788. prop Writable :: 1
  789. prop NoGen :: 0
  790. }
  791. global FREQ :: 720000 {
  792. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  793. prop Style :: 0x20
  794. prop Visible :: 0
  795. prop Writable :: 0
  796. prop NoGen :: 0
  797. }
  798. global MIPS :: 720.000000 {
  799. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  800. prop Style :: 0x04
  801. prop Format :: "%.4f"
  802. prop Label :: "DSP Speed In MHz (CLKOUT)"
  803. prop JSName :: "CLKOUT"
  804. prop Visible :: 1
  805. prop Writable :: 1
  806. prop NoGen :: 1
  807. prop Set :: ($a = self.MIPS, $b = if (GBL.DSPTYPE == 62) {$1} else {$1 * 2}, $e = "ok", self.MIPS = $1, self.FREQ = int(self.MIPS * 1000), if (($e = self.setCPUClock($b)) != "ok") {self.MIPS = $a} , $e)
  808. }
  809. global OSTYPE :: "BIOS" {
  810. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  811. prop Enum :: "BIOS"
  812. prop Visible :: 0
  813. prop Writable :: 0
  814. prop NoGen :: 1
  815. }
  816. global DSPTYPE :: 62 {
  817. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  818. prop Label :: "DSP Major Type"
  819. prop JSName :: "DSPTYPE"
  820. prop Visible :: 0
  821. prop Writable :: 0
  822. prop NoGen :: 0
  823. }
  824. global SPECIFYRTSLIB :: 1 {
  825. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  826. prop Label :: "Specify RTS library"
  827. prop JSName :: "SPECIFYRTSLIB"
  828. prop NoGen :: 1
  829. prop Visible :: 1
  830. prop Writable :: 1
  831. }
  832. global RTSLIB :: "rts6400_eh.lib" {
  833. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  834. prop Label :: "Run-Time Support Library"
  835. prop JSName :: "RTSLIB"
  836. prop NoGen :: 1
  837. prop Visible :: 1
  838. prop Writable :: self.SPECIFYRTSLIB
  839. }
  840. global DSPSUBTYPE :: 6400 {
  841. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  842. prop Enum :: "6400"
  843. prop Label :: "DSP Type"
  844. prop Visible :: 0
  845. prop Writable :: 1
  846. prop Set :: (self.DSPSUBTYPE = $1, self.L2Check(), "ok")
  847. prop NoGen :: 0
  848. }
  849. global CLKTYPE :: 6000 {
  850. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  851. prop Label :: "CLK Type"
  852. prop JSName :: "CLKTYPE"
  853. prop Visible :: 0
  854. prop Writable :: 1
  855. prop NoGen :: 0
  856. }
  857. global CHIPTYPE :: "6416" {
  858. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  859. prop Enum :: "DM642,6410,6412,6413,6414,6415,6416,custom,other"
  860. prop Label :: "Chip Support Library (CSL)"
  861. prop JSName :: "CHIPTYPE"
  862. prop NoGen :: 1
  863. prop Visible :: 0
  864. prop Writable :: 1
  865. prop Set :: (if ($1 == "6201" || $1 == "6202" || $1 == "6203" || $1 == "6204" || $1 == "6205") {self.DSPSUBTYPE = 6200} else {if ($1 == "6701") {self.DSPSUBTYPE = 6700} else {if ($1 == "6211") {self.DSPSUBTYPE = 6211} else {if ($1 == "6711" || $1 == "6712" || $1 == "6713" || $1 == "DA610") {if ($1 == "6711") {self.DSPSUBTYPE = 6711} , if ($1 == "6712") {self.DSPSUBTYPE = 6712} , if ($1 == "6713") {self.DSPSUBTYPE = 6713} } else {if ($1 == "DM642" || $1 == "6412" || $1 == "6414" || $1 == "6415" || $1 == "6416" || $1 == "6410" || $1 == "6413") {self.DSPSUBTYPE = 6400} }}}}, self.CHIPTYPE = $1, self.L2Check(), $e = "ok", if (GBL.CHIPCHAIN != nil) {$e = GBL.CHIPCHAIN.chipcall()} , $e)
  866. }
  867. global DISPCALLCSLCFGINIT :: = (self.CHIPTYPE != "other" && self.CHIPTYPE != "custom") {
  868. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  869. prop Label :: "Call CSL_cfgInit Initialization routine"
  870. prop Visible :: 0
  871. prop Writable :: self.SUPPORTCSL
  872. prop NoGen :: 1
  873. }
  874. global DSPNAME :: "TMS320C62XX" {
  875. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  876. prop Visible :: 0
  877. prop Writable :: 0
  878. prop NoGen :: 1
  879. }
  880. global DSPARITHMETIC :: = (if (GBL.DSPTYPE == 62 && (GBL.DSPSUBTYPE / 100) == 67) {"FLOAT"} else {"FIXED"}) {
  881. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  882. prop Enum :: "FIXED,FLOAT"
  883. prop Visible :: 0
  884. prop Writable :: 0
  885. prop NoGen :: 1
  886. }
  887. global DSPWORDSIZE :: = (if (GBL.DSPTYPE == 30 || GBL.DSPTYPE == 40 || GBL.DSPTYPE == 62) {32} else {16}) {
  888. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  889. prop Label :: "DSP Word Size"
  890. prop Visible :: 0
  891. prop Writable :: 0
  892. prop NoGen :: 1
  893. }
  894. global DSPCHARSIZE :: = (if GBL.DSPTYPE == 62 {8} else {if GBL.DSPSUBTYPE == 5599 {8} else {GBL.DSPWORDSIZE}}) {
  895. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  896. prop Label :: "DSP Byte Size"
  897. prop Visible :: 0
  898. prop Writable :: 0
  899. prop NoGen :: 1
  900. }
  901. global DATAPTRSIZE :: = (if (GBL.DSPTYPE == 62) {32} else {if (GBL.DSPTYPE == 54) {16} else {if (GBL.DSPTYPE == 55) {if (GBL.MEMORYMODEL == "SMALL") {16} else {23}} else {if (GBL.DSPTYPE == 28) {22} else {0}}}}) {
  902. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  903. prop iComment :: "Size of the Data Pointer"
  904. prop Visible :: 0
  905. prop Writable :: 0
  906. prop NoGen :: 1
  907. }
  908. global CODEPTRSIZE :: = (if (GBL.DSPTYPE == 62) {32} else {if (GBL.DSPTYPE == 54) {if (GBL.CALLMODEL == "near") {16} else {24}} else {if (GBL.DSPTYPE == 55) {24} else {if (GBL.DSPTYPE == 28) {22} else {0}}}}) {
  909. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  910. prop iComment :: "Size of Code Pointer"
  911. prop Visible :: 0
  912. prop Writable :: 0
  913. prop NoGen :: 1
  914. }
  915. global ENDIAN :: "little" {
  916. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  917. prop Enum :: "little,big"
  918. prop Label :: "DSP Endian Mode"
  919. prop JSName :: "ENDIANMODE"
  920. prop Visible :: 1
  921. prop Writable :: 1
  922. prop NoGen :: 1
  923. prop Set :: (self.ENDIAN = $1, "ok")
  924. }
  925. global BIGENDIAN :: = if self.ENDIAN == "little" {0} else {1} {
  926. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  927. prop Visible :: 0
  928. prop Writable :: 0
  929. prop NoGen :: 0
  930. }
  931. global AUTOINIT :: "ROM" {
  932. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  933. prop Enum :: "ROM,RAM"
  934. prop Label :: "C Autoinitialization Model"
  935. prop Visible :: 0
  936. prop Writable :: 1
  937. prop NoGen :: 1
  938. }
  939. global USERINIT :: 0 {
  940. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  941. prop Label :: "Call User Init Function"
  942. prop JSName :: "CALLUSERINITFXN"
  943. prop Visible :: 1
  944. prop Writable :: 1
  945. prop NoGen :: 0
  946. prop Set :: (if ($1 == 0) {self.USERINITFXN = @_FXN_F_nop, self.USERINIT = $1} else {self.USERINIT = $1}, "ok")
  947. }
  948. global USERINITFXN :: @_FXN_F_nop {
  949. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  950. prop Label :: "User Init Function"
  951. prop JSName :: "USERINITFXN"
  952. prop Visible :: 1
  953. prop Writable :: self.USERINIT
  954. prop NoGen :: 0
  955. }
  956. global OLDAUTOCALCULATE :: 1 {
  957. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  958. prop Label :: "previous value for autocalculate"
  959. prop Visible :: 0
  960. prop Writable :: 0
  961. prop NoGen :: 1
  962. }
  963. global ENABLEINST :: 1 {
  964. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  965. prop Label :: "Enable Real Time Analysis"
  966. prop JSName :: "ENABLEINST"
  967. prop Visible :: 1
  968. prop Writable :: 1
  969. prop NoGen :: 0
  970. prop Set :: (if ($1 != self.ENABLEINST) {if ($1) {RTA_toHost.Create("HST"), RTA_fromHost.Create("HST"), RTA_dispatcher.Create("HST"), IDL_busyObj.Create("IDL"), IDL.USEIDLBUSYOBJ = 1, IDL_cpuLoad.Create("IDL"), IDL.AUTOCALCULATE = self.OLDAUTOCALCULATE} else {if (self.LINKWITHROM) {self.LINKWITHROM = 0} , RTA_toHost.Delete("HST"), RTA_fromHost.Delete("HST"), RTA_dispatcher.Delete("HST"), IDL_busyObj.Delete("IDL"), IDL.USEIDLBUSYOBJ = 0, IDL_cpuLoad.Delete("IDL"), self.OLDAUTOCALCULATE = IDL.AUTOCALCULATE, IDL.AUTOCALCULATE = 0}, self.ENABLEINST = $1} , "ok")
  971. }
  972. global INSTRUMENTED :: 1 {
  973. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  974. prop Label :: "Use Instrumented BIOS library"
  975. prop JSName :: "INSTRUMENTED"
  976. prop Visible :: 1
  977. prop Writable :: 1
  978. prop NoGen :: 1
  979. }
  980. global CGENERATE :: 1 {
  981. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  982. prop Label :: "Do C Generation"
  983. prop Visible :: 0
  984. prop Writable :: 1
  985. prop NoGen :: 1
  986. }
  987. global ENABLEDLL :: 0 {
  988. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  989. prop Label :: "Enable Dynamic Loading"
  990. prop JSName :: "ENABLEDLL"
  991. prop Visible :: 0
  992. prop Writable :: 1
  993. prop NoGen :: 1
  994. }
  995. global PCC :: "mapped" {
  996. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  997. prop Enum :: "mapped,cache enable,cache freeze,cache bypass"
  998. prop Label :: "Program Cache Control - CSR(PCC) "
  999. prop JSName :: "CSRPCC"
  1000. prop Visible :: 1
  1001. prop Writable :: if (GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6400) {0} else {1}
  1002. prop NoGen :: 1
  1003. prop TabName :: "620x/670x"
  1004. }
  1005. global DCC :: "mapped" {
  1006. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1007. prop Enum :: "mapped,cache enable,cache freeze,cache bypass"
  1008. prop Label :: "Data Cache Control"
  1009. prop Visible :: 0
  1010. prop Writable :: 1
  1011. prop NoGen :: 1
  1012. prop TabName :: "620x/670x"
  1013. }
  1014. global PCACHE :: = (if (self.PCC == "mapped") {0x0000} else {if (self.PCC == "cache enable") {0x0040} else {if (self.PCC == "cache freeze") {0x0060} else {0x0080}}}) {
  1015. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1016. prop Visible :: 0
  1017. prop Writable :: 0
  1018. prop NoGen :: 1
  1019. }
  1020. global DCACHE :: = (if (self.DCC == "mapped") {0x0000} else {if (self.DCC == "cache enable") {0x0008} else {if (self.DCC == "cache freeze") {0x000c} else {0x0010}}}) {
  1021. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1022. prop Visible :: 0
  1023. prop Writable :: 0
  1024. prop NoGen :: 1
  1025. }
  1026. global CACHE :: = (self.PCACHE | self.DCACHE) {
  1027. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1028. prop Visible :: 0
  1029. prop Writable :: 0
  1030. prop NoGen :: 0
  1031. }
  1032. global C621XL2CONFIGURE :: 0 {
  1033. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1034. prop Label :: "621x/671x - Configure L2 Memory Settings"
  1035. prop JSName :: "C621XCONFIGUREL2"
  1036. prop Visible :: 1
  1037. prop Writable :: if (GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6712 || GBL.DSPSUBTYPE == 6713) {1} else {0}
  1038. prop TabName :: "621x/671x"
  1039. prop Set :: ($e = "ok", self.C621XL2CONFIGURE = $1, self.PCC = "mapped", $e = self.L2CacheSizeCheck(), $e)
  1040. prop NoGen :: 1
  1041. }
  1042. global C641XL2CONFIGURE :: 1 {
  1043. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1044. prop Label :: "641x - Configure L2 Memory Settings"
  1045. prop JSName :: "C641XCONFIGUREL2"
  1046. prop Visible :: 1
  1047. prop Writable :: if (GBL.DSPSUBTYPE == 6400) {1} else {0}
  1048. prop TabName :: "641x"
  1049. prop Set :: ($e = "ok", self.C641XL2CONFIGURE = $1, self.PCC = "mapped", $e = self.L2CacheSizeCheck(), $e)
  1050. prop NoGen :: 1
  1051. }
  1052. global L2CONFIGURE :: = (if GBL.DSPSUBTYPE == 6400 {self.C641XL2CONFIGURE} else {self.C621XL2CONFIGURE}) {
  1053. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1054. prop Label :: "Configure L2 Cache Control (c6x1x support)"
  1055. prop Visible :: 0
  1056. prop NoGen :: 0
  1057. }
  1058. global C621XPCC :: "Cache Enabled - Direct Mapped" {
  1059. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1060. prop Enum :: "Cache Enabled - Direct Mapped"
  1061. prop Label :: "Program Cache Control - CSR(PCC) "
  1062. prop Visible :: 1
  1063. prop Writable :: 0
  1064. prop NoGen :: 1
  1065. prop TabName :: "621x/671x"
  1066. }
  1067. global C641XPCC :: "Cache Enabled - Direct Mapped" {
  1068. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1069. prop Enum :: "Cache Enabled - Direct Mapped"
  1070. prop Label :: "641x - Program Cache Control - CSR(PCC)"
  1071. prop Visible :: 1
  1072. prop Writable :: 0
  1073. prop NoGen :: 1
  1074. prop TabName :: "641x"
  1075. }
  1076. global L2MODEOPTS :: = "SRAM" {
  1077. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1078. prop Label :: "L2 Mode - CCFG(L2MODE)"
  1079. prop JSName :: "C621XCCFGL2MODE"
  1080. prop Enum :: "SRAM,1-way cache,2-way cache,3-way cache,4-way cache"
  1081. prop Visible :: 1
  1082. prop Writable :: if ((GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6712 || GBL.DSPSUBTYPE == 6713) && GBL.L2CONFIGURE == 1) {1} else {0}
  1083. prop NoGen :: 1
  1084. prop TabName :: "621x/671x"
  1085. prop Set :: ($i = self.L2MODEOPTS, self.L2MODEOPTS = $1, $e = self.L2CacheSizeCheck(), if ($e != "ok") {self.L2MODEOPTS = $i} , $e)
  1086. }
  1087. global C641XL2MODEOPTS :: "4-way cache (0k)" {
  1088. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1089. prop Label :: "641x L2 Mode - CCFG(L2MODE)"
  1090. prop Enum :: "4-way cache (0k),4-way cache (32k),4-way cache (64k),4-way cache (128k),4-way cache (256k)"
  1091. prop JSName :: "C641XCCFGL2MODE"
  1092. prop Visible :: 1
  1093. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1094. prop NoGen :: 1
  1095. prop TabName :: "641x"
  1096. prop Set :: ($i = self.C641XL2MODEOPTS, self.C641XL2MODEOPTS = $1, $e = self.L2CacheSizeCheck(), if ($e != "ok") {self.C641XL2MODEOPTS = $i} , $e)
  1097. }
  1098. global L2MODE :: = (if GBL.DSPSUBTYPE == 6400 {self.setC641XL2MODE()} else {self.setL2MODE()}) {
  1099. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  1100. prop Label :: "L2 Mode - CCFG(L2MODE) Values"
  1101. prop Enum :: "0,1,2,3,7"
  1102. prop Visible :: 0
  1103. prop Writable :: 1
  1104. prop NoGen :: 0
  1105. }
  1106. global L2PRIORITY :: 0 {
  1107. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  1108. prop Label :: "L2 Requestor Priority - CCFG(P)"
  1109. prop Enum :: "0,1"
  1110. prop Visible :: 0
  1111. prop Writable :: 1
  1112. prop NoGen :: 0
  1113. }
  1114. global L2MARMASK :: 0 {
  1115. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1116. prop Label :: "L2 MAR0-15 - bitmask used to initialize MARs"
  1117. prop JSName :: "C621XMAR"
  1118. prop Format :: "0x%04x"
  1119. prop Style :: 0x01 | 0x02
  1120. prop Visible :: 1
  1121. prop Writable :: if ((GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6712 || GBL.DSPSUBTYPE == 6713) && GBL.L2CONFIGURE == 1) {1} else {0}
  1122. prop NoGen :: 0
  1123. prop TabName :: "621x/671x"
  1124. }
  1125. global SUPPORTCSL :: 0 {
  1126. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1127. prop NoGen :: 0
  1128. }
  1129. global ENABLEALLTRC :: 1 {
  1130. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1131. prop Label :: "Enable All TRC Trace Event Classes"
  1132. prop JSName :: "ENABLEALLTRC"
  1133. prop Visible :: 1
  1134. prop Writable :: 1
  1135. prop NoGen :: 1
  1136. prop Set :: (if ($1) {self.TRCMASKVALUE = 0xDBEF} else {self.TRCMASKVALUE = 0x4000}, self.ENABLEALLTRC = $1, "ok")
  1137. }
  1138. global TRCMASKVALUE :: 56303 {
  1139. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1140. prop NoGen :: 0
  1141. }
  1142. global CALLCSLCFGINIT :: = self.DISPCALLCSLCFGINIT {
  1143. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1144. prop NoGen :: 0
  1145. }
  1146. global CDBPATH :: "" {
  1147. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  1148. prop Label :: "CDB search path in COFF file"
  1149. prop JSName :: "CDBRELATIVEPATH"
  1150. prop Visible :: 0
  1151. prop Writable :: 1
  1152. prop NoGen :: 1
  1153. }
  1154. global LINKWITHROM :: 0 {
  1155. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1156. prop Label :: "Link with ROM"
  1157. prop JSName :: "LINKWITHROM"
  1158. prop Visible :: 0
  1159. prop Writable :: if (self.DSPSUBTYPE == 6799 && self.ENABLEINST) {1} else {0}
  1160. prop NoGen :: 1
  1161. prop Set :: ($e = "ok", if ($1) {$e = self.error("This BIOS version does not support linking with ROM.")} , $e)
  1162. }
  1163. global C641XL2PRIORITY :: 0 {
  1164. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1165. prop Visible :: 0
  1166. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1167. prop NoGen :: 0
  1168. prop TabName :: "641x"
  1169. }
  1170. global L2MARMASK1 :: 0 {
  1171. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1172. prop Label :: "MAR96-111 - bitmask controls EMIFB CE space"
  1173. prop JSName :: "C641XMAREMIFB"
  1174. prop Format :: "0x%04x"
  1175. prop Style :: 0x01 | 0x02
  1176. prop Visible :: 1
  1177. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1178. prop NoGen :: 0
  1179. prop TabName :: "641x"
  1180. }
  1181. global L2MARMASK2 :: 0 {
  1182. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1183. prop Label :: "MAR128-143 - bitmask controls EMIFA CE0 space"
  1184. prop JSName :: "C641XMARCE0"
  1185. prop Format :: "0x%04x"
  1186. prop Style :: 0x01 | 0x02
  1187. prop Visible :: 1
  1188. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1189. prop NoGen :: 0
  1190. prop TabName :: "641x"
  1191. }
  1192. global L2MARMASK3 :: 0 {
  1193. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1194. prop Label :: "MAR144-159 - bitmask controls EMIFA CE1 space"
  1195. prop JSName :: "C641XMARCE1"
  1196. prop Format :: "0x%04x"
  1197. prop Style :: 0x01 | 0x02
  1198. prop Visible :: 1
  1199. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1200. prop NoGen :: 0
  1201. prop TabName :: "641x"
  1202. }
  1203. global L2MARMASK4 :: 0 {
  1204. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1205. prop Label :: "MAR160-175 - bitmask controls EMIFA CE2 space"
  1206. prop JSName :: "C641XMARCE2"
  1207. prop Format :: "0x%04x"
  1208. prop Style :: 0x01 | 0x02
  1209. prop Visible :: 1
  1210. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1211. prop NoGen :: 0
  1212. prop TabName :: "641x"
  1213. }
  1214. global L2MARMASK5 :: 0 {
  1215. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1216. prop Label :: "MAR176-191 - bitmask controls EMIFA CE3 space"
  1217. prop JSName :: "C641XMARCE3"
  1218. prop Format :: "0x%04x"
  1219. prop Style :: 0x01 | 0x02
  1220. prop Visible :: 1
  1221. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1222. prop NoGen :: 0
  1223. prop TabName :: "641x"
  1224. }
  1225. global L2REQPRIORITY :: "urgent" {
  1226. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1227. prop Label :: "641x L2 Requestor Priority Queue - CCFG(P)"
  1228. prop JSName :: "C641XCCFGP"
  1229. prop Enum :: "urgent,high,medium,low"
  1230. prop Visible :: 1
  1231. prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
  1232. prop NoGen :: 1
  1233. prop Set :: (self.L2REQPRIORITY = $1, if (self.L2REQPRIORITY == "urgent") {self.C641XL2PRIORITY = 0} else {if (self.L2REQPRIORITY == "high") {self.C641XL2PRIORITY = 1} else {if (self.L2REQPRIORITY == "medium") {self.C641XL2PRIORITY = 2} else {self.C641XL2PRIORITY = 3}}}, "ok")
  1234. prop TabName :: "641x"
  1235. }
  1236. global L2CONFIGALLOC :: 0 {
  1237. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1238. prop Label :: "Configure Priority Queues"
  1239. prop JSName :: "C641XSETL2ALLOC"
  1240. prop Visible :: 1
  1241. prop Writable :: (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1)
  1242. prop NoGen :: 0
  1243. prop TabName :: "641x"
  1244. }
  1245. global L2ALLOC0 :: 6 {
  1246. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  1247. prop Label :: "Max L2 Transfer Requests on URGENT Queue (L2ALLOC0)"
  1248. prop JSName :: "C641XL2ALLOC0"
  1249. prop Enum :: "0,1,2,3,4,5,6,7"
  1250. prop Visible :: 1
  1251. prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
  1252. prop NoGen :: 1
  1253. prop TabName :: "641x"
  1254. }
  1255. global L2ALLOC1 :: 2 {
  1256. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  1257. prop Label :: "Max L2 Transfer Requests on HIGH Queue (L2ALLOC1)"
  1258. prop JSName :: "C641XL2ALLOC1"
  1259. prop Enum :: "0,1,2,3,4,5,6,7"
  1260. prop Visible :: 1
  1261. prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
  1262. prop NoGen :: 1
  1263. prop TabName :: "641x"
  1264. }
  1265. global L2ALLOC2 :: 2 {
  1266. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  1267. prop Label :: "Max L2 Transfer Requests on MEDIUM Queue (L2ALLOC2)"
  1268. prop JSName :: "C641XL2ALLOC2"
  1269. prop Enum :: "0,1,2,3,4,5,6,7"
  1270. prop Visible :: 1
  1271. prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
  1272. prop NoGen :: 1
  1273. prop TabName :: "641x"
  1274. }
  1275. global L2ALLOC3 :: 2 {
  1276. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  1277. prop Label :: "Max L2 Transfer Requests on LOW Queue (L2ALLOC3)"
  1278. prop JSName :: "C641XL2ALLOC3"
  1279. prop Enum :: "0,1,2,3,4,5,6,7"
  1280. prop Visible :: 1
  1281. prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
  1282. prop NoGen :: 1
  1283. prop TabName :: "641x"
  1284. }
  1285. global L2ALLOC :: = ((self.L2ALLOC0) | (self.L2ALLOC1 << 4) | (self.L2ALLOC2 << 8) | (self.L2ALLOC3 << 12)) {
  1286. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1287. prop Visible :: 0
  1288. prop NoGen :: 0
  1289. }
  1290. }
  1291. type MEM {
  1292. isa ObjectMgr
  1293. prop Label :: "MEM - Memory Section Manager"
  1294. prop name :: "MEM"
  1295. prop DependsOn :: "SEM"
  1296. prop IsContainedIn :: SYSTEM
  1297. prop GlobalIcon :: 115
  1298. prop InstanceIcon :: 116
  1299. prop GlobalHelpTopic :: (108)
  1300. prop InstanceHelpTopic :: (208)
  1301. prop InstancePropertyPage :: ("{3D658E70-05E7-11d0-BD44-0020AFEE33C8}")
  1302. prop GlobalPropertyPage :: ("{3D658E71-05E7-11d0-BD44-0020AFEE33C8}")
  1303. prop heapLabelStr :: (self.iHeapId)
  1304. prop GenLinkPrologue :: (if (GBL.DSPTYPE == 55) {"-stack 0x%1x\n-sysstack 0x%2x\n\nMEMORY {%4t\0, _cmd55stksz, _cmd55systksz"} else {"-stack 0x%1x\nMEMORY {%4t\0, _stackSize"})
  1305. prop _stackSize :: MEM.STACKSIZE
  1306. prop AllocType :: (if (self.REUSE == 0 && self.USERCMD == 0) {"19\0, _argsString, _argsSeg, _midPlace, _sysdataString, _sysdataSeg, _thirdPlace, _trcinitString, _trcinitSeg, _midPlace, _gblinitString, _gblinitSeg, _midPlace, _memObjString, _memObjSeg, _midPlace, _sysinitString, _initSeg, _sysinitPlace, _sysregsString, _regsSeg, _midPlace, _bssString, _bssSeg, _firstPlace, _farString, _farSeg, _secondPlace, _cinitString, _cinitSeg, _midPlace, _pinitString, _pinitSeg, _midPlace, _dataString, _dataSeg, _midPlace, _constString, _constSeg, _midPlace, _switchString, _switchSeg, _midPlace, _cioString, _cioSeg, _midPlace, _textString, _textSeg, _midPlace, _frtString, _frtSeg, _midPlace, _biosString, _biosSeg, _midPlace, _stackString, _stackSeg, _midPlace"} else {if (self.REUSE == 0 && self.USERCMD == 1) {"9\0, _argsString, _argsSeg, _midPlace, _sysdataString, _sysdataSeg, _thirdPlace, _trcinitString, _trcinitSeg, _midPlace, _gblinitString, _gblinitSeg, _midPlace, _memObjString, _memObjSeg, _midPlace, _sysinitString, _initSeg, _sysinitPlace, _sysregsString, _regsSeg, _midPlace, _biosString, _biosSeg, _midPlace, _stackString, _stackSeg, _midPlace"} else {if (self.REUSE == 1 && self.USERCMD == 0) {"18\0, _argsString, _argsSeg, _midPlace, _sysdataString, _sysdataSeg, _thirdPlace, _trcinitString, _trcinitSeg, _midPlace, _gblinitString, _gblinitSeg, _midPlace, _memObjString, _memObjSeg, _midPlace, _sysregsString, _regsSeg, _midPlace, _bssString, _bssSeg, _firstPlace, _farString, _farSeg, _secondPlace, _cinitString, _cinitSeg, _midPlace, _pinitString, _pinitSeg, _midPlace, _dataString, _dataSeg, _midPlace, _constString, _constSeg, _midPlace, _switchString, _switchSeg, _midPlace, _cioString, _cioSeg, _midPlace, _textString, _textSeg, _midPlace, _frtString, _frtSeg, _midPlace, _biosString, _biosSeg, _midPlace, _stackString, _stackSeg, _midPlace"} else {"8\0, _argsString, _argsSeg, _midPlace, _sysdataString, _sysdataSeg, _thirdPlace, _trcinitString, _trcinitSeg, _midPlace, _gblinitString, _gblinitSeg, _midPlace, _memObjString, _memObjSeg, _midPlace, _sysregsString, _regsSeg, _midPlace, _biosString, _biosSeg, _midPlace, _stackString, _stackSeg, _midPlace"}}})
  1307. prop _firstPlace :: 0
  1308. prop _secondPlace :: 0 + 1
  1309. prop _thirdPlace :: 0 + 2
  1310. prop _midPlace :: (0x7fffffff / 2)
  1311. prop _sysinitPlace :: (0x7fffffff / 2)
  1312. prop _argsString :: ("%8t .args: align=4 fill=0 {%12t\n *(.args)\n . += 0x%1x;%8t\n }\0, _argsSize")
  1313. prop _bssString :: ("%8t .bss: {}")
  1314. prop _farString :: ("%8t .far: {}")
  1315. prop _cinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.CINITSEG == MEM.LOADCINITSEG) {"%8t .cinit: {}"} else {"%8t .cinit: {} load > %1s, run\0, _loadcinitSeg"}} else {"%8t .cinit: {}"})
  1316. prop _pinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.PINITSEG == MEM.LOADPINITSEG) {"%8t .pinit: {}"} else {"%8t .pinit: {} load > %1s, run\0, _loadpinitSeg"}} else {"%8t .pinit: {}"})
  1317. prop _trcinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.TRCINITSEG == MEM.LOADTRCINITSEG) {"%8t .trcdata: {}"} else {"%8t .trcdata: {} load > %1s, run\0, _loadtrcinitSeg"}} else {"%8t .trcdata: {}"})
  1318. prop _gblinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.BIOSINITSEG == MEM.LOADBIOSINITSEG) {"%8t .gblinit: {}"} else {"%8t .gblinit: {} load > %1s, run\0, _loadgblinitSeg"}} else {"%8t .gblinit: {}"})
  1319. prop _dataString :: ("%8t .data: {}")
  1320. prop _constString :: (if (self.ENABLELOADSEG == 1) {if (MEM.CONSTSEG == MEM.LOADCONSTSEG) {"%8t GROUP {\n %8t .const: align = 0x8 {} \n %8t .printf (COPY): {} \n%8t }"} else {"%8t .const: align = 0x8 {} load > %1s run\0, _loadconstSeg"}} else {"%8t GROUP {\n %8t .const: align = 0x8 {} \n %8t .printf (COPY): {} \n%8t }"})
  1321. prop _switchString :: (if (self.ENABLELOADSEG == 1) {if (MEM.SWITCHSEG == MEM.LOADSWITCHSEG) {"%8t .switch: {}"} else {"%8t .switch: {} load > %1s, run\0, _loadswitchSeg"}} else {"%8t .switch: {}"})
  1322. prop _sysmemString :: ("%8t .sysmem: {}")
  1323. prop _cioString :: ("%8t .cio: {}")
  1324. prop _memObjString :: ("%8t .mem: {}")
  1325. prop _sysdataString :: (if ((GBL.ROM == 0) && (GBL.DSPTYPE == 54)) {"%8t .sysdata: align = 128 {%12t\n GBL_A_SYSPAGE = .;\n GBL_A_SYSDP = GBL_A_SYSPAGE >> 7;\n %8t }"} else {"%8t .sysdata: {}"})
  1326. prop _sysinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.INITSEG == MEM.LOADINITSEG) {"%8t .sysinit: {}"} else {"%8t .sysinit: {} load > %1s, run\0, _loadinitSeg"}} else {"%8t .sysinit: {}"})
  1327. prop _sysregsString :: ("%8t .sysregs: {}")
  1328. prop _textString :: (if (self.ENABLELOADSEG == 1) {if (MEM.TEXTSEG == MEM.LOADTEXTSEG) {"%8t .text: {}"} else {"%8t .text: {} load > %1s, run\0, _loadtextSeg"}} else {"%8t .text: {}"})
  1329. prop _frtString :: ("%8t frt: {}")
  1330. prop _biosString :: (if (self.ENABLELOADSEG == 1) {if (MEM.BIOSSEG == MEM.LOADBIOSSEG) {"%8t .bios: {}"} else {"%8t .bios: {} load > %1s, run\0, _loadbiosSeg"}} else {"%8t .bios: {}"})
  1331. prop _stackString :: (if (GBL.DSPTYPE == 62) {"%8t .stack: {%12t\n GBL_stackbeg = .;\n *(.stack)\n GBL_stackend = GBL_stackbeg + 0x%1x - 1;%12t\n _HWI_STKBOTTOM = GBL_stackbeg + 0x%1x - 4 & ~7;%12t\n _HWI_STKTOP = GBL_stackbeg;%8t\n }\0, _stackSize, _stackSize"} else {if (GBL.DSPTYPE == 54) {"%8t .stack: {%12t\n GBL_stackbeg = .;\n *(.stack)\n GBL_stackend = ((GBL_stackbeg + 0x%1x - 1) & 0xfffe) ;%8t\n _HWI_STKBOTTOM = GBL_stackend;%12t\n _HWI_STKTOP = GBL_stackbeg;%8t\n }\0, _stackSize"} else {if (GBL.DSPTYPE == 55) {"%8t GROUP { \n%16t .sysstack : align = 0x4 {%12t\n %16t GBL_sysstackbeg = .;\n %16t *(.sysstack)\n %16t GBL_sysstackend = GBL_sysstackbeg + 0x%2x -1 ;%12t\n %16t _HWI_SYSSTKTOP = GBL_sysstackbeg; %12t\n %16t_HWI_SYSSTKBOTTOM = (GBL_sysstackend+1);\n%16t} \n%16t .stack: align = 0x4 {%12t\n %16t GBL_stackbeg = .;\n %16t *(.stack)\n GBL_stackend = (GBL_stackbeg + 0x%1x - 1) ;%12t\n %16t _HWI_STKBOTTOM = (GBL_stackend+1);%12t\n %16t _HWI_STKTOP = (GBL_stackbeg);%16t\n }%8t\n } BLOCK(0x20000), run \0, _cmd55stksz, _cmd55systksz"} else {"%8t .stack: {%12t\n GBL_stackbeg = .;\n *(.stack)\n GBL_stackend = GBL_stackbeg + 0x%1x - 1;%8t\n _HWI_STKBOTTOM = GBL_stackbeg;%12t\n _HWI_STKTOP = (GBL_stackend + 1);%8t\n }\0, _stackSize"}}})
  1332. prop _memHdrSize :: 8
  1333. prop GenLinkEpilogue :: ("%0t}")
  1334. prop _stackSeg :: MEM.STACKSEG
  1335. prop _textSeg :: MEM.TEXTSEG
  1336. prop _frtSeg :: MEM.TEXTSEG
  1337. prop _biosSeg :: MEM.BIOSSEG
  1338. prop _dataSeg :: MEM.DATASEG
  1339. prop _cioSeg :: MEM.CIOSEG
  1340. prop _sysmemSeg :: MEM.SYSMEMSEG
  1341. prop _constSeg :: MEM.CONSTSEG
  1342. prop _initSeg :: MEM.INITSEG
  1343. prop _pinitSeg :: MEM.PINITSEG
  1344. prop _trcinitSeg :: MEM.TRCINITSEG
  1345. prop _gblinitSeg :: MEM.BIOSINITSEG
  1346. prop _regsSeg :: MEM.SYSDATASEG
  1347. prop _sysdataSeg :: MEM.SYSDATASEG
  1348. prop _argsSeg :: MEM.ARGSSEG
  1349. prop _argsSize :: MEM.ARGSSIZE
  1350. prop _bssSeg :: MEM.BSSSEG
  1351. prop _farSeg :: MEM.FARSEG
  1352. prop _cinitSeg :: MEM.CINITSEG
  1353. prop _memObjSeg :: MEM.CFGOBJSEG
  1354. prop _switchSeg :: MEM.SWITCHSEG
  1355. prop _loadtextSeg :: MEM.LOADTEXTSEG
  1356. prop _loadbiosSeg :: MEM.LOADBIOSSEG
  1357. prop _loadconstSeg :: MEM.LOADCONSTSEG
  1358. prop _loadinitSeg :: MEM.LOADINITSEG
  1359. prop _loadpinitSeg :: MEM.LOADPINITSEG
  1360. prop _loadtrcinitSeg :: MEM.LOADTRCINITSEG
  1361. prop _loadgblinitSeg :: MEM.LOADBIOSINITSEG
  1362. prop _loadcinitSeg :: MEM.LOADCINITSEG
  1363. prop _loadswitchSeg :: MEM.LOADSWITCHSEG
  1364. prop AllocInst :: (if (self.iAllocHeap == 1) {"1\0, _instAllocDesc, _objMemSeg, _placement"} )
  1365. prop _instAllocDesc :: (if self.INITSEG.iAllocHeap && self.REUSE && self.INITSEG == self {"%8t GROUP {%12t\n .sysinitgap {. += 0x%2x;}\n .sysinit:\n .%0r$heap: {%16t\n _%0r_base = %0r$B;\n _%0r_length = %0r$L;\n . += 0x%1x;%12t\n }%8t\n } START(%0r$B), SIZE(%0r$L)\0, _heapsize, _sysinitgap, _heaplen"} else {"%8t .%0r$heap: {%12t\n %0r$B = .;\n _%0r_base = .;\n %0r$L = 0x%2x;\n _%0r_length = 0x%2x;\n . += 0x%1x;%8t\n }\0, _heapsize, _heaplen"})
  1366. prop _objMemSeg :: self
  1367. prop _placement :: 0x7fffffff - 1
  1368. prop _heapsize :: (self.iHeapSize)
  1369. prop _heaplen :: (self.iHeapSize)
  1370. prop _sysinitgap :: 2 * 4
  1371. prop GenInstLink :: (if GBL.DSPTYPE == 62 {"%0r %16t: origin = 0x%1x, %40tlen = 0x%2x%4t\0, _origin, _len"} else {if GBL.DSPTYPE == 55 {"PAGE %3d: %16t%0r: %26torigin = 0x%1x, %40tlen = 0x%2x%4t\0, _cmd55origin, _cmd55len, _page"} else {"PAGE %3d: %14t%0r: %26torigin = 0x%1x, %50tlen = 0x%2x%4t\0, _origin, _len, _page"}})
  1372. prop localInit :: ($d = "ok", scan ($i; MEM) {if ($i.space == "code" && $i.iAllocHeap == 1) {$d = self.error("Code memory cannot have a heap")} }, if (self.SEGZERO.iAllocHeap == 1) {self.SEGZERO.iReqHeapCount++} else {$d = self.error("Segment for DSP/BIOS objects must be a memory segment with a heap")}, if (self.MALLOCSEG.iAllocHeap == 1) {self.MALLOCSEG.iReqHeapCount++} else {$d = self.error("Segment for malloc()/free() must be a memory segment with a heap")}, $d)
  1373. prop _page :: (self.page)
  1374. prop _origin :: (self.base)
  1375. prop _len :: (self.len)
  1376. prop maxObjs :: (32767)
  1377. prop codeMember :: (if $1.dynamicLoading == 1 {0} else {if GBL.DSPTYPE == 62 {(($1.space == "code") || ($1.space == "code/data"))} else {if GBL.DSPTYPE == 54 {($1.space == "code")} else {if GBL.DSPTYPE == 28 {($1.space == "code")} else {if GBL.DSPTYPE == 55 {(($1.space == "code") || ($1.space == "code/data"))} else {($1.space == "code/data")}}}}})
  1378. prop dataMember :: (if $1.dynamicLoading == 1 {0} else {if GBL.DSPTYPE == 62 {($1.space == "data" || $1.space == "code/data") && $1 != MEM_NULL} else {if GBL.DSPTYPE == 54 {(($1.space != "code") && ($1 != MEM_NULL)) && $1.space != "io"} else {if GBL.DSPTYPE == 28 {(($1.space != "code") && ($1 != MEM_NULL)) && $1.space != "io"} else {if GBL.DSPTYPE == 55 {($1.space == "data" || $1.space == "code/data") && $1 != MEM_NULL} else {(($1.space == "code/data") && ($1 != MEM_NULL))}}}}})
  1379. prop dataNullMember :: (if $1.dynamicLoading == 1 {0} else {if GBL.DSPTYPE == 62 {$1.space == "data" || $1.space == "code/data"} else {if GBL.DSPTYPE == 54 {$1.space != "code" && $1.space != "io"} else {if GBL.DSPTYPE == 28 {$1.space != "code" && $1.space != "io"} else {if GBL.DSPTYPE == 55 {$1.space == "data" || $1.space == "code/data"} else {$1.space == "code/data"}}}}})
  1380. prop dataCodeMember :: (if $1.dynamicLoading == 1 {0} else {if GBL.DSPTYPE == 62 {($1.space == "data" || $1.space == "code/data") && $1 != MEM_NULL} else {if GBL.DSPTYPE == 54 {$1.space == "code" && $1 != MEM_NULL} else {if GBL.DSPTYPE == 28 {$1.space == "code" && $1 != MEM_NULL} else {if GBL.DSPTYPE == 55 {($1.space == "data" || $1.space == "code/data") && $1 != MEM_NULL} else {$1.space == "code/data" && $1 != MEM_NULL}}}}})
  1381. prop memWritable :: (self.iIsModifiable && self.iDelUser != "MEM")
  1382. prop validate :: ($e = self.checkMemOverlap($1), if ($e == "ok") {$e = self.checkHeapSize($1)} , if ($e == "ok") {$e = self.checkHeapSeg($1)} , $e)
  1383. prop checkHeapSeg :: ($e = "ok", if ($1 == MEM_NULL && MEM.NOHEAPS == 0) {if (MEM.MALLOCSEG == MEM_NULL) {$e = ("Heaps are enabled, but the segment for malloc (MEM.MALLOCSEG) is not set correctly. Please create a heap in one of your data segments and set MEM.MALLOCSEG to it.")} , if (MEM.SEGZERO == MEM_NULL) {$e = ("Heaps are enabled, but the segment for DSP/BIOS Objects (MEM.BIOSOBJSEG) is not set correctly. Please create a heap in one of your data segments and set MEM.BIOSOBJSEG to it.")} } , $e)
  1384. prop checkHeapSize :: ($e = "ok", if (MEM.NOHEAPS == 0) {if ($1.iAllocHeap && $1 != MEM_NULL) {if ($1.iHeapSize > $1.len) {$e = ("MEM segment %s: heap cannot be larger than the length of segment that contains it.")} } } , $e)
  1385. prop checkMemOverlap :: ($e = "ok", if ($1 != MEM_NULL && $1.iIsUsed == 1) {if ($1.len == 0) {$a = $1.base} else {$a = ($1.base + $1.len - 1)}, scan ($j; MEM) {if ($1 != $j && $j != MEM_NULL && $j.iIsUsed == 1 && (GBL.DSPTYPE == 62 || $1.space == $j.space)) {if (!($j == CACHE_L2 && GBL.L2CONFIGURE == 0)) {$b = $j.base, if ($j.len == 0) {$c = $j.base} else {$c = ($j.base + $j.len - 1)}, if ($a >= $b && $1.base <= $c) {$e = ("MEM segment %s: overlaps with another segment or cache configuration."), break} } } }} , $e)
  1386. prop _spaceEnum :: (self.ENUMSPACE)
  1387. prop checkHeapId :: ($e = "ok", scan ($i; MEM) {if ($i.iAllocHeap == 1 && $i.iUserHeapId == 1 && $i.iHeapId == $1 && $i.iHeapId != @segment_name) {$e = self.error("This identifier label is already in use"), break} }, $e)
  1388. global gUser :: "USER" {
  1389. prop Visible :: 0
  1390. prop Writable :: 0
  1391. prop NoGen :: 1
  1392. }
  1393. global gSetOf :: 0 {
  1394. prop Visible :: 0
  1395. prop Writable :: 0
  1396. prop NoGen :: 1
  1397. }
  1398. global gNumOf :: 2 {
  1399. prop Visible :: 0
  1400. prop Writable :: 0
  1401. prop NoGen :: 1
  1402. }
  1403. global gDirty :: 1 {
  1404. prop Visible :: 0
  1405. prop Writable :: 0
  1406. prop NoGen :: 1
  1407. }
  1408. global gInitFlag :: 1 {
  1409. prop Visible :: 0
  1410. prop Writable :: 0
  1411. prop NoGen :: 1
  1412. }
  1413. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  1414. prop Visible :: 0
  1415. prop Writable :: 0
  1416. prop NoGen :: 1
  1417. }
  1418. global CALLBACKOBJ :: nil {
  1419. prop Visible :: 0
  1420. prop Writable :: 0
  1421. prop NoGen :: 1
  1422. }
  1423. global gNumHeap :: = ($a = 0, scan ($i; MEM) {if ($i != MEM_NULL) {$a += $i.iAllocHeap} }, $a) {
  1424. prop NoGen :: 0
  1425. }
  1426. global REUSE :: = (if self.INITSEG.space != "code" && self.INITSEG.iAllocHeap == 1 {self.SAVEREUSE} else {0}) {
  1427. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1428. prop Label :: "Reuse Startup Code Space"
  1429. prop JSName :: "REUSECODESPACE"
  1430. prop Visible :: 1
  1431. prop Writable :: self.INITSEG.space != "code" && self.INITSEG.iAllocHeap == 1
  1432. prop NoGen :: 1
  1433. prop Set :: (self.SAVEREUSE = $1, "ok")
  1434. }
  1435. global SAVEREUSE :: 0 {
  1436. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1437. prop NoGen :: 1
  1438. }
  1439. global doCheckOverlap :: 1 {
  1440. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1441. prop Visible :: 0
  1442. prop Writable :: 1
  1443. prop NoGen :: 1
  1444. }
  1445. global MAPSELECT :: "Map 1" {
  1446. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  1447. prop Label :: "Map Mode"
  1448. prop JSName :: "MAPMODE"
  1449. prop Enum :: "Map 0,Map 1"
  1450. prop Visible :: 0
  1451. prop Writable :: 0
  1452. prop NoGen :: 1
  1453. }
  1454. global ARGSSIZE :: 4 {
  1455. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1456. prop Format :: "0x%04x"
  1457. prop Style :: 0x01 | 0x02
  1458. prop Label :: "Argument Buffer Size"
  1459. prop JSName :: "ARGSSIZE"
  1460. prop Visible :: 1
  1461. prop Writable :: 1
  1462. prop NoGen :: 1
  1463. prop Set :: (if ($1 < 4) {self.error("The 'arguments' section must have at least 4 words.")} else {self.ARGSSIZE = $1, "ok"})
  1464. }
  1465. global ARGSSEG :: IRAM {
  1466. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1467. prop MemberType :: MEM
  1468. prop MemberTest :: self.dataMember($1)
  1469. prop Label :: "Argument Buffer Section (.args)"
  1470. prop JSName :: "ARGSSEG"
  1471. prop Visible :: 1
  1472. prop Writable :: 1
  1473. prop NoGen :: 1
  1474. prop TabName :: "BIOS Data"
  1475. }
  1476. global BIOSSEG :: IRAM {
  1477. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1478. prop MemberType :: MEM
  1479. prop MemberTest :: self.codeMember($1)
  1480. prop Label :: "BIOS Code Section (.bios)"
  1481. prop JSName :: "BIOSSEG"
  1482. prop Visible :: 1
  1483. prop Writable :: 1
  1484. prop NoGen :: 1
  1485. prop TabName :: "BIOS Code"
  1486. }
  1487. global STACKSIZE :: 1024 {
  1488. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1489. prop Format :: "0x%04x"
  1490. prop Style :: if GBL.DSPTYPE == 54 {0x01 | 0x02} else {0x02}
  1491. prop Label :: "Stack Size (MAUs)"
  1492. prop JSName :: "STACKSIZE"
  1493. prop Visible :: 1
  1494. prop Writable :: 1
  1495. prop NoGen :: 1
  1496. prop Set :: (if ((GBL.DSPTYPE == 55) && (GBL.DSPSUBTYPE != 5599)) {self.STACKSIZE = ($1 & -2)} else {if ((GBL.DSPTYPE == 55) && (GBL.DSPSUBTYPE == 5599)) {self.STACKSIZE = ($1 & -4)} else {self.STACKSIZE = $1}}, "ok")
  1497. prop PropSetOkUserMsg :: if (MEM.STACKSIZE < GlobalStatus.MinStackSize) {"Warning: You are setting the stack size to a value that is less than the Estimated Minimum Stack Size!"} else {"ok"}
  1498. }
  1499. global USERCMD :: 0 {
  1500. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1501. prop Label :: "User .cmd File For Compiler Sections"
  1502. prop JSName :: "USERCOMMANDFILE"
  1503. prop Visible :: 1
  1504. prop Writable :: 1
  1505. prop NoGen :: 1
  1506. prop TabName :: "Compiler Sections"
  1507. }
  1508. global STACKSEG :: IRAM {
  1509. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1510. prop MemberType :: MEM
  1511. prop MemberTest :: self.dataMember($1)
  1512. prop Label :: "Stack Section (.stack)"
  1513. prop JSName :: "STACKSEG"
  1514. prop Visible :: 1
  1515. prop Writable :: 1
  1516. prop NoGen :: 1
  1517. prop TabName :: "BIOS Data"
  1518. prop Set :: (if (GBL.DSPTYPE == 55) {(MEM.STACKSEG = $1), (MEM.SYSSTACKSEG = $1)} else {(MEM.STACKSEG = $1)}, "ok")
  1519. }
  1520. global ENABLELOADSEG :: 0 {
  1521. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1522. prop Label :: "Specify Separate Load Addresses"
  1523. prop JSName :: "ENABLELOADADDR"
  1524. prop Visible :: 1
  1525. prop Writable :: 1
  1526. prop NoGen :: 1
  1527. prop TabName :: "Load Address"
  1528. }
  1529. global LOADBIOSSEG :: IRAM {
  1530. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1531. prop MemberType :: MEM
  1532. prop MemberTest :: self.codeMember($1)
  1533. prop Label :: "Load Address - BIOS Code Section (.bios)"
  1534. prop JSName :: "LOADBIOSSEG"
  1535. prop Visible :: 1
  1536. prop Writable :: (self.ENABLELOADSEG == 1)
  1537. prop NoGen :: 1
  1538. prop TabName :: "Load Address"
  1539. }
  1540. global INITSEG :: IRAM {
  1541. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1542. prop MemberType :: MEM
  1543. prop MemberTest :: self.codeMember($1)
  1544. prop Label :: "Startup Code Section (.sysinit)"
  1545. prop JSName :: "SYSINITSEG"
  1546. prop Visible :: 1
  1547. prop Writable :: 1
  1548. prop NoGen :: 1
  1549. prop TabName :: "BIOS Code"
  1550. }
  1551. global LOADINITSEG :: IRAM {
  1552. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1553. prop MemberType :: MEM
  1554. prop MemberTest :: self.codeMember($1)
  1555. prop Label :: "Load Address - Startup Code Section (.sysinit)"
  1556. prop JSName :: "LOADSYSINITSEG"
  1557. prop Visible :: 1
  1558. prop Writable :: (self.ENABLELOADSEG == 1)
  1559. prop NoGen :: 1
  1560. prop TabName :: "Load Address"
  1561. }
  1562. global BIOSINITSEG :: IRAM {
  1563. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1564. prop MemberType :: MEM
  1565. prop MemberTest :: self.dataCodeMember($1)
  1566. prop Label :: "DSP/BIOS Init Tables (.gblinit)"
  1567. prop JSName :: "GBLINITSEG"
  1568. prop Visible :: 1
  1569. prop Writable :: 1
  1570. prop NoGen :: 1
  1571. prop TabName :: "BIOS Data"
  1572. }
  1573. global TRCINITSEG :: IRAM {
  1574. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1575. prop MemberType :: MEM
  1576. prop MemberTest :: self.dataCodeMember($1)
  1577. prop Label :: "TRC Initial Value (.trcdata)"
  1578. prop JSName :: "TRCDATASEG"
  1579. prop Visible :: 1
  1580. prop Writable :: 1
  1581. prop NoGen :: 1
  1582. prop TabName :: "BIOS Data"
  1583. }
  1584. global LOADBIOSINITSEG :: IRAM {
  1585. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1586. prop MemberType :: MEM
  1587. prop MemberTest :: self.dataCodeMember($1)
  1588. prop Label :: "Load Address - DSP/BIOS Init Tables (.gblinit)"
  1589. prop JSName :: "LOADGBLINITSEG"
  1590. prop Visible :: 1
  1591. prop Writable :: (self.ENABLELOADSEG == 1)
  1592. prop NoGen :: 1
  1593. prop TabName :: "Load Address"
  1594. }
  1595. global LOADTRCINITSEG :: IRAM {
  1596. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1597. prop MemberType :: MEM
  1598. prop MemberTest :: self.dataCodeMember($1)
  1599. prop Label :: "Load Address - TRC Initial Value (.trcdata)"
  1600. prop JSName :: "LOADTRCDATASEG"
  1601. prop Visible :: 1
  1602. prop Writable :: (self.ENABLELOADSEG == 1)
  1603. prop NoGen :: 1
  1604. prop TabName :: "Load Address"
  1605. }
  1606. global SYSDATASEG :: IRAM {
  1607. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1608. prop MemberType :: MEM
  1609. prop MemberTest :: self.dataMember($1)
  1610. prop Label :: "DSP/BIOS Kernel State (.sysdata)"
  1611. prop JSName :: "SYSDATASEG"
  1612. prop Visible :: 1
  1613. prop Writable :: 1
  1614. prop NoGen :: 1
  1615. prop TabName :: "BIOS Data"
  1616. }
  1617. global CFGOBJSEG :: IRAM {
  1618. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1619. prop MemberType :: MEM
  1620. prop MemberTest :: self.dataMember($1)
  1621. prop Label :: "DSP/BIOS Conf Sections (.*obj)"
  1622. prop JSName :: "OBJSEG"
  1623. prop Visible :: 1
  1624. prop Writable :: 1
  1625. prop NoGen :: 1
  1626. prop TabName :: "BIOS Data"
  1627. }
  1628. global NOHEAPS :: 0 {
  1629. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1630. prop Label :: "No Dynamic Memory Heaps"
  1631. prop JSName :: "NOMEMORYHEAPS"
  1632. prop Visible :: 1
  1633. prop Writable :: 1
  1634. prop NoGen :: 1
  1635. prop Set :: (if ($1) {self.SEGZERO.iReqHeapCount--, self.SEGZERO = MEM_NULL, self.MALLOCSEG.iReqHeapCount--, self.MALLOCSEG = MEM_NULL, TSK.STACKSEG.iReqHeapCount--, TSK.STACKSEG = MEM_NULL, scan ($i; MEM) {if ($i.iAllocHeap && $i != MEM_NULL) {$i.iAllocHeap = 0, $i.iHeapSize = 0} }} , self.NOHEAPS = $1, "ok")
  1636. prop PropSetOkUserMsg :: if (MEM.NOHEAPS == 1) {"Currently specified heaps no longer valid"} else {"Please reconfigure heaps under individual mem segments"}
  1637. }
  1638. global SEGZERO :: IRAM {
  1639. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1640. prop MemberType :: MEM
  1641. prop MemberTest :: (self.dataNullMember($1) && $1.iAllocHeap)
  1642. prop Label :: "Segment For DSP/BIOS Objects"
  1643. prop JSName :: "BIOSOBJSEG"
  1644. prop Visible :: 1
  1645. prop Writable :: MEM.NOHEAPS == 0
  1646. prop NoGen :: 0
  1647. prop Set :: (if (self.SEGZERO.iReqHeapCount > 0) {self.SEGZERO.iReqHeapCount--} , self.SEGZERO = $1, self.SEGZERO.iReqHeapCount++, "ok")
  1648. }
  1649. global MALLOCSEG :: IRAM {
  1650. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1651. prop MemberType :: MEM
  1652. prop MemberTest :: (self.dataNullMember($1) && $1.iAllocHeap)
  1653. prop Label :: "Segment For malloc() / free()"
  1654. prop JSName :: "MALLOCSEG"
  1655. prop Visible :: 1
  1656. prop Writable :: (MEM.NOHEAPS == 0)
  1657. prop NoGen :: 0
  1658. prop Set :: (if (self.MALLOCSEG.iReqHeapCount > 0) {self.MALLOCSEG.iReqHeapCount--} , self.MALLOCSEG = $1, self.MALLOCSEG.iReqHeapCount++, "ok")
  1659. }
  1660. global USEMPC :: 0 {
  1661. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1662. prop Label :: "Enable Memory Protection Controller module"
  1663. prop JSName :: "USEMPC"
  1664. prop Visible :: 1
  1665. prop Writable :: 1
  1666. prop NoGen :: 0
  1667. }
  1668. global LNKCMDFILE :: "" {
  1669. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  1670. prop Label :: "Specify User Linker cmd File"
  1671. prop Visible :: 0
  1672. prop Writable :: 1
  1673. prop NoGen :: 1
  1674. }
  1675. global TEXTSEG :: IRAM {
  1676. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1677. prop MemberType :: MEM
  1678. prop MemberTest :: (self.codeMember($1))
  1679. prop Label :: "Text Section (.text)"
  1680. prop JSName :: "TEXTSEG"
  1681. prop Visible :: 1
  1682. prop Writable :: (self.USERCMD == 0)
  1683. prop NoGen :: 1
  1684. prop TabName :: "Compiler Sections"
  1685. }
  1686. global LOADTEXTSEG :: IRAM {
  1687. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1688. prop MemberType :: MEM
  1689. prop MemberTest :: (self.codeMember($1))
  1690. prop Label :: "Load Address - Text Section (.text)"
  1691. prop JSName :: "LOADTEXTSEG"
  1692. prop Visible :: 1
  1693. prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
  1694. prop NoGen :: 1
  1695. prop TabName :: "Load Address"
  1696. }
  1697. global SWITCHSEG :: IRAM {
  1698. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1699. prop MemberType :: MEM
  1700. prop MemberTest :: (self.dataCodeMember($1))
  1701. prop Label :: "Switch Jump Tables (.switch)"
  1702. prop JSName :: "SWITCHSEG"
  1703. prop Visible :: 1
  1704. prop Writable :: (self.USERCMD == 0)
  1705. prop NoGen :: 1
  1706. prop TabName :: "Compiler Sections"
  1707. }
  1708. global LOADSWITCHSEG :: IRAM {
  1709. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1710. prop MemberType :: MEM
  1711. prop MemberTest :: (self.dataCodeMember($1))
  1712. prop Label :: "Load Address - Switch Jump Tables (.switch)"
  1713. prop JSName :: "LOADSWITCHSEG"
  1714. prop Visible :: 1
  1715. prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
  1716. prop NoGen :: 1
  1717. prop TabName :: "Load Address"
  1718. }
  1719. global BSSSEG :: IRAM {
  1720. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1721. prop MemberType :: MEM
  1722. prop MemberTest :: (self.dataMember($1))
  1723. prop Label :: "C Variables Section (.bss)"
  1724. prop JSName :: "BSSSEG"
  1725. prop Visible :: 1
  1726. prop Writable :: (self.USERCMD == 0)
  1727. prop NoGen :: 1
  1728. prop TabName :: "Compiler Sections"
  1729. }
  1730. global FARSEG :: IRAM {
  1731. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1732. prop MemberType :: MEM
  1733. prop MemberTest :: (self.dataMember($1))
  1734. prop Label :: "C Variables Section (.far)"
  1735. prop JSName :: "FARSEG"
  1736. prop Visible :: if GBL.DSPTYPE == 62 {1} else {0}
  1737. prop Writable :: (self.USERCMD == 0)
  1738. prop NoGen :: 1
  1739. prop TabName :: "Compiler Sections"
  1740. }
  1741. global CINITSEG :: IRAM {
  1742. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1743. prop MemberType :: MEM
  1744. prop MemberTest :: (self.dataCodeMember($1))
  1745. prop Label :: "Data Initialization Section (.cinit)"
  1746. prop JSName :: "CINITSEG"
  1747. prop Visible :: 1
  1748. prop Writable :: (self.USERCMD == 0)
  1749. prop NoGen :: 1
  1750. prop TabName :: "Compiler Sections"
  1751. }
  1752. global LOADCINITSEG :: IRAM {
  1753. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1754. prop MemberType :: MEM
  1755. prop MemberTest :: (self.dataCodeMember($1))
  1756. prop Label :: "Load Address - Data Initialization Section (.cinit)"
  1757. prop JSName :: "LOADCINITSEG"
  1758. prop Visible :: 1
  1759. prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
  1760. prop NoGen :: 1
  1761. prop TabName :: "Load Address"
  1762. }
  1763. global PINITSEG :: IRAM {
  1764. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1765. prop MemberType :: MEM
  1766. prop MemberTest :: (self.dataCodeMember($1))
  1767. prop Label :: "C Function Initialization Table (.pinit)"
  1768. prop JSName :: "PINITSEG"
  1769. prop Visible :: 1
  1770. prop Writable :: (self.USERCMD == 0)
  1771. prop NoGen :: 1
  1772. prop TabName :: "Compiler Sections"
  1773. }
  1774. global LOADPINITSEG :: IRAM {
  1775. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1776. prop MemberType :: MEM
  1777. prop MemberTest :: (self.dataCodeMember($1))
  1778. prop Label :: "Load Address - C Function Initialization Table (.pinit)"
  1779. prop JSName :: "LOADPINITSEG"
  1780. prop Visible :: 1
  1781. prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
  1782. prop NoGen :: 1
  1783. prop TabName :: "Load Address"
  1784. }
  1785. global CONSTSEG :: IRAM {
  1786. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1787. prop MemberType :: MEM
  1788. prop MemberTest :: (self.dataMember($1))
  1789. prop Label :: "Constant Sections (.const, .printf)"
  1790. prop JSName :: "CONSTSEG"
  1791. prop Visible :: 1
  1792. prop Writable :: (self.USERCMD == 0)
  1793. prop NoGen :: 1
  1794. prop TabName :: "Compiler Sections"
  1795. }
  1796. global LOADCONSTSEG :: IRAM {
  1797. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1798. prop MemberType :: MEM
  1799. prop MemberTest :: (self.dataMember($1))
  1800. prop Label :: "Load Address - Constant Sections (.const, .printf)"
  1801. prop JSName :: "LOADCONSTSEG"
  1802. prop Visible :: 1
  1803. prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
  1804. prop NoGen :: 1
  1805. prop TabName :: "Load Address"
  1806. }
  1807. global DATASEG :: IRAM {
  1808. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1809. prop MemberType :: MEM
  1810. prop MemberTest :: (self.dataMember($1))
  1811. prop Label :: "Data Section (.data)"
  1812. prop JSName :: "DATASEG"
  1813. prop Visible :: 1
  1814. prop Writable :: (self.USERCMD == 0)
  1815. prop NoGen :: 1
  1816. prop TabName :: "Compiler Sections"
  1817. }
  1818. global CIOSEG :: IRAM {
  1819. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1820. prop MemberType :: MEM
  1821. prop MemberTest :: (self.dataMember($1))
  1822. prop Label :: "Data Section (.cio)"
  1823. prop JSName :: "CIOSEG"
  1824. prop Visible :: 1
  1825. prop Writable :: (self.USERCMD == 0)
  1826. prop NoGen :: 1
  1827. prop TabName :: "Compiler Sections"
  1828. prop Set :: (self.CIOSEG = $1, self.SYSMEMSEG = $1, "ok")
  1829. }
  1830. global SYSMEMSEG :: IRAM {
  1831. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1832. prop MemberType :: MEM
  1833. prop MemberTest :: (self.dataMember($1))
  1834. prop Label :: "Data Section (.sysmem)"
  1835. prop JSName :: "SYSMEMSEG"
  1836. prop Visible :: 0
  1837. prop Writable :: (self.USERCMD == 0)
  1838. prop NoGen :: 1
  1839. prop TabName :: "Compiler Sections"
  1840. }
  1841. global STUBMEMSEG :: IRAM {
  1842. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1843. prop MemberType :: MEM
  1844. prop MemberTest :: MEM.codeMember($1)
  1845. prop Label :: "Function Stub Memory (.hwi)"
  1846. prop JSName :: "HWISEG"
  1847. prop Visible :: 1
  1848. prop Writable :: 1
  1849. prop NoGen :: 1
  1850. prop TabName :: "BIOS Code"
  1851. prop Set :: (self.STUBMEMSEG = $1, HWI.STUBMEMSEG = $1, "ok")
  1852. }
  1853. global LOADSTUBMEMSEG :: IRAM {
  1854. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1855. prop MemberType :: MEM
  1856. prop MemberTest :: MEM.codeMember($1)
  1857. prop Label :: "Load Address - Function Stub Memory (.hwi)"
  1858. prop JSName :: "LOADHWISEG"
  1859. prop Visible :: 1
  1860. prop Writable :: (self.ENABLELOADSEG == 1)
  1861. prop NoGen :: 1
  1862. prop TabName :: "Load Address"
  1863. }
  1864. global VECMEMSEG :: IRAM {
  1865. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1866. prop MemberType :: MEM
  1867. prop MemberTest :: MEM.codeMember($1)
  1868. prop Label :: "Interrupt Service Table Memory (.hwi_vec)"
  1869. prop JSName :: "HWIVECSEG"
  1870. prop Visible :: 1
  1871. prop Writable :: 1
  1872. prop NoGen :: 1
  1873. prop TabName :: "BIOS Code"
  1874. prop Set :: (self.VECMEMSEG = $1, HWI.VECMEMSEG = $1, GlobalStatus.gDirty = 1, if ($1.base == 0) {HWI.GENERATE_RESET_VEC = 0} , "ok")
  1875. }
  1876. global LOADVECMEMSEG :: IRAM {
  1877. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1878. prop MemberType :: MEM
  1879. prop MemberTest :: MEM.codeMember($1)
  1880. prop Label :: "Load Address -Interrupt Service Table Memory (.hwi_vec)"
  1881. prop JSName :: "LOADHWIVECSEG"
  1882. prop Visible :: 1
  1883. prop Writable :: (self.ENABLELOADSEG == 1)
  1884. prop NoGen :: 1
  1885. prop TabName :: "Load Address"
  1886. }
  1887. global RTDXTEXTMEMSEG :: IRAM {
  1888. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1889. prop MemberType :: MEM
  1890. prop MemberTest :: MEM.codeMember($1)
  1891. prop Label :: "RTDX Text Segment (.rtdx_text)"
  1892. prop JSName :: "RTDXTEXTSEG"
  1893. prop Visible :: 1
  1894. prop Writable :: 1
  1895. prop NoGen :: 1
  1896. prop TabName :: "BIOS Code"
  1897. prop Set :: (self.RTDXTEXTMEMSEG = $1, RTDX.TEXTMEMSEG = $1, "ok")
  1898. }
  1899. global LOADRTDXTEXTMEMSEG :: IRAM {
  1900. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  1901. prop MemberType :: MEM
  1902. prop MemberTest :: MEM.codeMember($1)
  1903. prop Label :: "Load Address - RTDX Text Segment (.rtdx_text)"
  1904. prop JSName :: "LOADRTDXTEXTSEG"
  1905. prop Visible :: 1
  1906. prop Writable :: (self.ENABLELOADSEG == 1)
  1907. prop NoGen :: 1
  1908. prop TabName :: "Load Address"
  1909. }
  1910. global ENUMSPACE :: = if GBL.DSPTYPE == 62 {"code,data,code/data,reserved"} else {if GBL.DSPTYPE == 54 {"code,data,io,other,reserved"} else {if GBL.DSPTYPE == 28 {"code,data,io,other,reserved"} else {if GBL.DSPTYPE == 55 {"code/data,code,data,io,reserved"} else {"code/data,io,reserved"}}}} {
  1911. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  1912. prop JSName :: "ENUMSPACE"
  1913. prop Visible :: 0
  1914. prop Writable :: 1
  1915. prop NoGen :: 1
  1916. }
  1917. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  1918. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  1919. prop Label :: "comment"
  1920. prop JSName :: "comment"
  1921. prop Visible :: 1
  1922. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  1923. prop NoGen :: 1
  1924. }
  1925. inst iIsUsed :: 0 {
  1926. prop Visible :: 0
  1927. prop Writable :: 0
  1928. prop NoGen :: 1
  1929. }
  1930. inst iId :: 0 {
  1931. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1932. prop Style :: 0x01
  1933. prop Visible :: 0
  1934. prop Writable :: 1
  1935. prop NoGen :: 1
  1936. }
  1937. inst iDelUser :: "USER" {
  1938. prop Visible :: 0
  1939. prop Writable :: 0
  1940. prop NoGen :: 1
  1941. }
  1942. inst iDelMsg :: "ok" {
  1943. prop Visible :: 0
  1944. prop Writable :: 0
  1945. prop NoGen :: 1
  1946. }
  1947. inst base :: 0 {
  1948. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1949. prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%06x"}
  1950. prop Style :: 0x02
  1951. prop Label :: "base"
  1952. prop JSName :: "base"
  1953. prop Visible :: 1
  1954. prop Writable :: (self.iIsModifiable)
  1955. prop NoGen :: 1
  1956. prop Set :: ($e = "ok", $a = self.base, self.base = $1, if (MEM.CALLBACKOBJ != nil) {$e = MEM.CALLBACKOBJ.call(self), if ($e != "ok") {self.base = $a} } , $e)
  1957. }
  1958. inst len :: 0 {
  1959. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1960. prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%04x"}
  1961. prop Style :: 0x08
  1962. prop Label :: "len"
  1963. prop JSName :: "len"
  1964. prop Visible :: 1
  1965. prop Writable :: (self.memWritable)
  1966. prop NoGen :: 0
  1967. prop Set :: ($e = "ok", $a = self.len, self.len = $1, if (MEM.CALLBACKOBJ != nil) {$e = MEM.CALLBACKOBJ.call(self), if ($e != "ok") {self.len = $a} } , "ok")
  1968. }
  1969. inst page :: = (if GBL.DSPTYPE == 62 {-1} else {if GBL.DSPTYPE == 55 {(if self.space == "code" {0} else {if self.space == "data" {1} else {if self.space == "io" {2} else {0}}})} else {if self.space == "code" {0} else {if self.space == "data" {1} else {if self.space == "io" {2} else {3}}}}}) {
  1970. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  1971. prop NoGen :: 1
  1972. }
  1973. inst iAllocHeap :: if MEM.NOHEAPS == 1 {0} else {1} {
  1974. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1975. prop Label :: "create a heap in this memory"
  1976. prop JSName :: "createHeap"
  1977. prop Visible :: 1
  1978. prop Writable :: (self.space == "data" || self.space == "code/data") && (MEM.NOHEAPS == 0) && self.memWritable
  1979. prop NoGen :: 0
  1980. prop Set :: ($a = "ok", if ($1 == 0 && self.iReqHeapCount > 0) {self.error("This heap is used by one or more of: segment for DSP/BIOS objects, segment for malloc()/free(), TSK default stack segment")} else {if ($1 == 0) {self.iUserHeapId = 0, self.iHeapId = @segment_name} , self.iAllocHeap = $1, MEM.gDirty = 1, $a})
  1981. }
  1982. inst iHeapSize :: 0x8000 {
  1983. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  1984. prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%04x"}
  1985. prop Style :: 0x02
  1986. prop Label :: "heap size"
  1987. prop JSName :: "heapSize"
  1988. prop Visible :: 1
  1989. prop Writable :: (self.iAllocHeap) && (self.iIsModifiable) && (MEM.NOHEAPS == 0)
  1990. prop Set :: (self.iHeapSize = $1, "ok")
  1991. prop NoGen :: 1
  1992. }
  1993. inst iSegZero :: = MEM.SEGZERO
  1994. inst iUserHeapId :: 0 {
  1995. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  1996. prop Label :: "enter a user defined heap identifier label"
  1997. prop JSName :: "enableHeapLabel"
  1998. prop Set :: (if ($1 == 0) {self.iHeapId = @segment_name} , self.iUserHeapId = $1, "ok")
  1999. prop Visible :: 1
  2000. prop Writable :: (self.iAllocHeap) && (self.iIsModifiable) && (self.NOHEAPS == 0)
  2001. prop NoGen :: 1
  2002. }
  2003. inst iHeapId :: @segment_name {
  2004. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2005. prop Label :: "heap identifier label"
  2006. prop JSName :: "heapLabel"
  2007. prop Set :: ($e = self.checkHeapId($1), if ($e == "ok") {self.iHeapId = $1} , $e)
  2008. prop Writable :: (self.iAllocHeap) && (self.iIsModifiable) && (self.NOHEAPS == 0) && (self.iUserHeapId)
  2009. prop Visible :: 1
  2010. prop NoGen :: 0
  2011. }
  2012. inst iReqHeapCount :: 0 {
  2013. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2014. prop NoGen :: 1
  2015. }
  2016. inst space :: (if GBL.DSPTYPE == 55 {"code/data"} else {"data"}) {
  2017. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  2018. prop Enum :: MEM._spaceEnum()
  2019. prop JSName :: "space"
  2020. prop Visible :: 1
  2021. prop Writable :: (self.memWritable)
  2022. prop NoGen :: 1
  2023. prop Set :: ($e = "ok", if ($1 != "data" && $1 != "code/data" && self.iAllocHeap == 1) {$e = self.error("Cannot select this space if a heap will be created")} else {$a = self.space, self.space = $1, if (MEM.CALLBACKOBJ != nil) {$e = MEM.CALLBACKOBJ.call(self), if ($e != "ok") {self.space = $a} } }, $e)
  2024. }
  2025. inst dynamicLoading :: 0 {
  2026. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2027. prop Label :: "Reserved for dynamic loading"
  2028. prop JSName :: "dynamicLoading"
  2029. prop Visible :: GBL.ENABLEDLL
  2030. prop Writable :: GBL.ENABLEDLL
  2031. prop NoGen :: 1
  2032. }
  2033. inst iIsModifiable :: 1 {
  2034. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2035. prop Visible :: 0
  2036. prop Writable :: 0
  2037. prop NoGen :: 1
  2038. }
  2039. }
  2040. object MEM_NULL :: MEM {
  2041. param iComment :: "Place holder segment which allows user to disable heaps"
  2042. param iIsUsed :: 0
  2043. param iId :: 0
  2044. param iDelUser :: "USER"
  2045. param iDelMsg :: "ok"
  2046. param base :: 0
  2047. param len :: 0
  2048. param iAllocHeap :: 1
  2049. param iHeapSize :: 32768
  2050. param iUserHeapId :: 0
  2051. param iHeapId :: @segment_name
  2052. param iReqHeapCount :: 0
  2053. param space :: "data"
  2054. param dynamicLoading :: 0
  2055. param iIsModifiable :: 1
  2056. }
  2057. type OBJ {
  2058. isa ObjectMgr
  2059. prop name :: "OBJ"
  2060. prop Visible :: 0
  2061. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _objMemDesc, _memSeg, _placement"} )
  2062. prop _objMemDesc :: ("%8t .obj: {}")
  2063. prop _memSeg :: MEM.CFGOBJSEG
  2064. prop _placement :: (0x7fffffff / 2)
  2065. global gUser :: "USER" {
  2066. prop Visible :: 0
  2067. prop Writable :: 0
  2068. prop NoGen :: 1
  2069. }
  2070. global gSetOf :: 0 {
  2071. prop Visible :: 0
  2072. prop Writable :: 0
  2073. prop NoGen :: 1
  2074. }
  2075. global gNumOf :: 0 {
  2076. prop Visible :: 0
  2077. prop Writable :: 0
  2078. prop NoGen :: 1
  2079. }
  2080. global gDirty :: 0 {
  2081. prop Visible :: 0
  2082. prop Writable :: 0
  2083. prop NoGen :: 1
  2084. }
  2085. global gInitFlag :: 1 {
  2086. prop Visible :: 0
  2087. prop Writable :: 0
  2088. prop NoGen :: 1
  2089. }
  2090. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  2091. prop Visible :: 0
  2092. prop Writable :: 0
  2093. prop NoGen :: 1
  2094. }
  2095. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  2096. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2097. prop Label :: "comment"
  2098. prop JSName :: "comment"
  2099. prop Visible :: 1
  2100. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  2101. prop NoGen :: 1
  2102. }
  2103. inst iIsUsed :: 0 {
  2104. prop Visible :: 0
  2105. prop Writable :: 0
  2106. prop NoGen :: 1
  2107. }
  2108. inst iId :: 0 {
  2109. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2110. prop Style :: 0x01
  2111. prop Visible :: 0
  2112. prop Writable :: 1
  2113. prop NoGen :: 1
  2114. }
  2115. inst iDelUser :: "USER" {
  2116. prop Visible :: 0
  2117. prop Writable :: 0
  2118. prop NoGen :: 1
  2119. }
  2120. inst iDelMsg :: "ok" {
  2121. prop Visible :: 0
  2122. prop Writable :: 0
  2123. prop NoGen :: 1
  2124. }
  2125. }
  2126. type BUF {
  2127. isa ObjectMgr
  2128. prop name :: "BUF"
  2129. prop Label :: "BUF - Buffer Manager"
  2130. prop IsContainedIn :: SYSTEM
  2131. prop GlobalIcon :: 199
  2132. prop InstanceIcon :: 200
  2133. prop InstanceHelpTopic :: (421)
  2134. prop GlobalHelpTopic :: (321)
  2135. prop InstancePropertyPage :: ("{B7240DE8-AA51-11cf-9BFE-0000C0AC14C7}")
  2136. prop GlobalPropertyPage :: ("{B7240DE9-AA51-11cf-9BFE-0000C0AC14C7}")
  2137. prop maxObjs :: (32767)
  2138. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  2139. prop _globalAllocDesc :: ("%8t.buf:{}")
  2140. prop _placement :: (0x7fffffff / 2)
  2141. prop _memSeg :: self.OBJMEMSEG
  2142. prop AllocInst :: ("1\0, _instAllocDesc, _instMemSeg, _placement")
  2143. prop _instAllocDesc :: ("%8t .%0s$data: align = 0x%1x {%12t\n %0s$databeg = .;\n .+= %2d; %8t\n }\0, _objAlign, _buflength")
  2144. prop _objAlign :: self.align
  2145. prop _instMemSeg :: self.bufseg
  2146. prop _buflength :: (self.postalignsize * self.bufcount)
  2147. prop cGen :: 1
  2148. prop cHeaderName :: if self.gNumOf > 0 {"buf.h"} else {""}
  2149. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far BUF_Obj %0r;\n\0"} else {"extern BUF_Obj %0r;\n\0"})
  2150. prop objectSize :: (if (GBL.DSPTYPE == 62) {$a = ((7 + 3) * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = ((7 + 4) * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = ((7 + 3) * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (12 + 6)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (12 + 6)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (7 + 4)} , if (GBL.DSPTYPE == 28) {$a = (12 + 6)} , $a)
  2151. prop dataSize :: ($d = 0, scan ($i; BUF) {if ($i.IsConfObj()) {$d += $i.len} , $d += BUF.objectSize}, $d)
  2152. global gUser :: "USER" {
  2153. prop Visible :: 0
  2154. prop Writable :: 0
  2155. prop NoGen :: 1
  2156. }
  2157. global gSetOf :: 0 {
  2158. prop Visible :: 0
  2159. prop Writable :: 0
  2160. prop NoGen :: 1
  2161. }
  2162. global gNumOf :: 0 {
  2163. prop Visible :: 0
  2164. prop Writable :: 0
  2165. prop NoGen :: 1
  2166. }
  2167. global gDirty :: 0 {
  2168. prop Visible :: 0
  2169. prop Writable :: 0
  2170. prop NoGen :: 1
  2171. }
  2172. global gInitFlag :: 1 {
  2173. prop Visible :: 0
  2174. prop Writable :: 0
  2175. prop NoGen :: 1
  2176. }
  2177. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  2178. prop Visible :: 0
  2179. prop Writable :: 0
  2180. prop NoGen :: 1
  2181. }
  2182. global OBJMEMSEG :: IRAM {
  2183. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  2184. prop MemberType :: MEM
  2185. prop MemberTest :: MEM.dataMember($1)
  2186. prop Label :: "Object Memory"
  2187. prop JSName :: "OBJMEMSEG"
  2188. prop Visible :: 1
  2189. prop Writable :: 1
  2190. prop NoGen :: 1
  2191. }
  2192. global ENABLED :: 1 {
  2193. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2194. prop Label :: "Compile in logging"
  2195. prop Visible :: 0
  2196. prop Writable :: 0
  2197. prop NoGen :: 0
  2198. }
  2199. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  2200. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2201. prop Label :: "comment"
  2202. prop JSName :: "comment"
  2203. prop Visible :: 1
  2204. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  2205. prop NoGen :: 1
  2206. }
  2207. inst iIsUsed :: 0 {
  2208. prop Visible :: 0
  2209. prop Writable :: 0
  2210. prop NoGen :: 1
  2211. }
  2212. inst iId :: 0 {
  2213. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2214. prop Style :: 0x01
  2215. prop Visible :: 0
  2216. prop Writable :: 1
  2217. prop NoGen :: 1
  2218. }
  2219. inst iDelUser :: "USER" {
  2220. prop Visible :: 0
  2221. prop Writable :: 0
  2222. prop NoGen :: 1
  2223. }
  2224. inst iDelMsg :: "ok" {
  2225. prop Visible :: 0
  2226. prop Writable :: 0
  2227. prop NoGen :: 1
  2228. }
  2229. inst bufseg :: self.OBJMEMSEG {
  2230. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  2231. prop MemberType :: MEM
  2232. prop MemberTest :: MEM.dataMember($1)
  2233. prop Label :: "Memory segment for buffer pool"
  2234. prop JSName :: "bufSeg"
  2235. prop Visible :: 1
  2236. prop Writable :: 1
  2237. prop NoGen :: 0
  2238. }
  2239. inst bufcount :: 1 {
  2240. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2241. prop Label :: "Buffer count"
  2242. prop JSName :: "bufCount"
  2243. prop Visible :: 1
  2244. prop Writable :: 1
  2245. prop NoGen :: 0
  2246. prop Set :: (self.bufcount = $1, self.postalignsize = (self.size + (self.align - 1)) & ~(self.align - 1), self.len = $1 * self.postalignsize, "ok")
  2247. }
  2248. inst size :: 8 {
  2249. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2250. prop Label :: "Buffer size (MADUs)"
  2251. prop JSName :: "size"
  2252. prop Visible :: 1
  2253. prop Writable :: 1
  2254. prop NoGen :: 0
  2255. prop Set :: (if ($1 < 8) {self.error("Size should be atleast 8 bytes")} else {self.size = $1, self.postalignsize = ($1 + (self.align - 1)) & ~(self.align - 1), self.len = self.postalignsize * self.bufcount, "ok"})
  2256. }
  2257. inst align :: 4 {
  2258. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2259. prop Label :: "Buffer alignment(Power of 2)"
  2260. prop JSName :: "align"
  2261. prop Visible :: 1
  2262. prop Writable :: 1
  2263. prop NoGen :: 0
  2264. prop Set :: (if ($1 < 4) {self.error("Alignment should be atleast 4 ")} else {self.align = $1, self.postalignsize = (self.size + ($1 - 1)) & ~($1 - 1), self.len = self.postalignsize * self.bufcount, "ok"})
  2265. }
  2266. inst len :: self.size {
  2267. prop Label :: "Buffer pool length (MADUs)"
  2268. prop JSName :: "len"
  2269. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2270. prop Visible :: 1
  2271. prop Writable :: 0
  2272. prop NoGen :: 1
  2273. }
  2274. inst postalignsize :: self.size {
  2275. prop Label :: "Buffer size after alignment (MADUs)"
  2276. prop JSName :: "postalignsize"
  2277. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2278. prop Visible :: 1
  2279. prop Writable :: 0
  2280. prop NoGen :: 0
  2281. }
  2282. }
  2283. type POOL {
  2284. isa Module
  2285. prop Visible :: 1
  2286. prop name :: "POOL"
  2287. prop Label :: "POOL - Allocator Manager"
  2288. prop IsConfMod :: self.USEPOOL
  2289. prop IsContainedIn :: SYSTEM
  2290. prop GlobalIcon :: 199
  2291. prop InstanceIcon :: 200
  2292. prop GlobalHelpTopic :: (324)
  2293. prop InstanceHelpTopic :: (424)
  2294. prop InstancePropertyPage :: ("{473C4A62-B1A8-11d0-9885-0020AFEE33C6}")
  2295. prop GlobalPropertyPage :: ("{473C4A63-B1A8-11d0-9885-0020AFEE33C6}")
  2296. prop DependsOn :: "MEM,BUF"
  2297. global gUser :: "USER" {
  2298. prop Visible :: 0
  2299. prop Writable :: 0
  2300. prop NoGen :: 1
  2301. }
  2302. global gSetOf :: 0 {
  2303. prop Visible :: 0
  2304. prop Writable :: 0
  2305. prop NoGen :: 1
  2306. }
  2307. global gNumOf :: 0 {
  2308. prop Visible :: 0
  2309. prop Writable :: 0
  2310. prop NoGen :: 1
  2311. }
  2312. global gDirty :: 0 {
  2313. prop Visible :: 0
  2314. prop Writable :: 0
  2315. prop NoGen :: 1
  2316. }
  2317. global gInitFlag :: 1 {
  2318. prop Visible :: 0
  2319. prop Writable :: 0
  2320. prop NoGen :: 1
  2321. }
  2322. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  2323. prop Visible :: 0
  2324. prop Writable :: 0
  2325. prop NoGen :: 1
  2326. }
  2327. global USEPOOL :: 0 {
  2328. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2329. prop Label :: "Enable Allocator Manager"
  2330. prop JSName :: "ENABLEPOOL"
  2331. prop Visible :: 1
  2332. prop Writable :: 1
  2333. prop NoGen :: 0
  2334. }
  2335. }
  2336. type CLK {
  2337. isa ObjectMgr
  2338. prop name :: "CLK"
  2339. prop Label :: "CLK - Clock Manager"
  2340. prop IsContainedIn :: SCH
  2341. prop IsConfMod :: 1
  2342. prop GlobalIcon :: 103
  2343. prop InstanceIcon :: 104
  2344. prop InstanceHelpTopic :: (202)
  2345. prop GlobalHelpTopic :: (102)
  2346. prop InstancePropertyPage :: ("{EEB2AB41-51E3-11d0-A61D-0000C070F3E9}")
  2347. prop GlobalPropertyPage :: ("{EEB2AB40-51E3-11d0-A61D-0000C070F3E9}")
  2348. prop objectSize :: (if (GBL.DSPTYPE == 55 || GBL.DSPTYPE == 28) {$a = (2 * 4)} else {$a = (1 * 4)}, $a)
  2349. prop GenLinkPrologue :: ("SECTIONS {%4t\n.%1L: {\n%8t \n CLK_F_gethtime = %5s;\n %1U_A_TABBEG = .;\n %4S\n %1U_A_TABEND = .;\n %1U_A_TABLEN = (. - %1U_A_TABBEG) / %2d;\n%4t} > %3s \0, name, _objSize, _memSeg, _linkString, clkFxn, _clkStartFxn")
  2350. prop _clkStartFxn :: if (GBL.SUPPORTCSL && self.USETIMER) {@_CLK_start6x} else {@FXN_F_nop}
  2351. prop GenLinkEpilogue :: ("%0t}\n_CLK_PRD = CLK_PRD;\n_CLK_COUNTSPMS = CLK_COUNTSPMS;\n_CLK_REGS = CLK_REGS;\n_CLK_USETIMER = CLK_USETIMER;\n_CLK_TIMERNUM = CLK_TIMERNUM;\n_CLK_TDDR = CLK_TDDR;\n\0")
  2352. prop _linkString :: if self.gNumOf > 0 {"*(.%1L)"} else {"/* no CLK objs */"}
  2353. prop _memSeg :: CLK.OBJMEMSEG
  2354. prop _objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  2355. prop clkFxn :: if (self.USETIMER == 1) {self.CLKFXN} else {@FXN_F_zero}
  2356. prop maxObjs :: (32767)
  2357. prop SortByField :: "iPri"
  2358. prop SortGroups :: 1
  2359. prop localInit :: (if (GBL.CALLBACKOBJ != CLK) {CLK.gGBLChain = GBL.CALLBACKOBJ, GBL.CALLBACKOBJ = CLK} )
  2360. prop dataSize :: (self.objectSize() * (CLK.gNumOf + 1))
  2361. prop localCanCreate :: (if self.USETIMER {"ok"} else {self.error("The CLK Manager must be enabled before inserting a CLK")})
  2362. prop localCreate :: (CLK.HOOKFXN = @HWI_F_dispatch, self.seizeHwi(self.WHICHHWI), "ok")
  2363. prop localDelete :: (if (self.gNumOf == 1) {if (GBL.CALLMODEL == "far") {CLK.HOOKFXN = @CLK_F_frete, self.seizeHwi(self.WHICHHWI)} else {CLK.HOOKFXN = @CLK_F_rete, self.seizeHwi(self.WHICHHWI)}} , "ok")
  2364. prop adjustPrd :: (if GBL.DSPTYPE == 62 {0} else {if GBL.DSPSUBTYPE == 5599 {0} else {1}})
  2365. prop seizeHwi :: (if ($1.client == "USER" && $1 == HWI_UNUSED) {self.error("Interrupt not mapped for selected timer.")} else {if ($1.client == "USER" && $1.function != @HWI_unused) {self.error("Interrupt mapped to selected timer is already in use.")} else {if ($1.client == "CSL") {self.error("Interrupt mapped to selected timer is already in use by CSL.")} else {$1.function = @CLK_F_isr, $1.client = "CLK", $1.iEventId = $1.iSource.iIntrSelectNum, $1.iUseDispatcher = (if CLK.HOOKFXN == @HWI_F_dispatch {1} else {0}), $1.iArg = (if $1.iUseDispatcher == 1 {@CLK_A_TABBEG} else {0}), HWI.gDirty = 1, "ok"}}})
  2366. prop releaseHwi :: ($1.function = @HWI_unused, $1.client = "USER", $1.iUseDispatcher = 0, $1.iArg = 0, HWI.gDirty = 1, "ok")
  2367. prop seizeTimer :: (if ($1 == "Timer 0") {self.WHICHTIMER = "Timer 0", self.WHICHHWI = Timer_0.iHwi, self.REGS = if (GBL.DSPSUBTYPE == 5599) {0x620} else {0x01000}, self.TIMERNUM = 0, self.TIMERIMR = 0x0, self.TIMERIFR = 0x1, self.INTBIT = 4, self.TIMERIMRMASK = self.WHICHHWI.Ier0Mask, self.IMR0TINTMASK = self.WHICHHWI.Ier0Mask, self.IMR1TINTMASK = 0x0, self.setMicroseconds(self.MICROSECONDS)} else {if ($1 == "Timer 1") {self.WHICHTIMER = "Timer 1", self.WHICHHWI = Timer_1.iHwi, self.REGS = if (GBL.DSPSUBTYPE == 5599) {0x640} else {0x2400}, self.TIMERNUM = 1, self.TIMERIMR = 0x45, self.TIMERIFR = 0x46, self.INTBIT = 6, self.TIMERIMRMASK = self.WHICHHWI.Ier1Mask, self.IMR0TINTMASK = 0x0, self.IMR1TINTMASK = self.WHICHHWI.Ier1Mask, self.setMicroseconds(self.MICROSECONDS)} else {if ($1 == "Timer 2") {self.WHICHTIMER = "Timer 2", self.WHICHHWI = Timer_2.iHwi, self.REGS = 0x4000, self.TIMERNUM = 2, self.TIMERIMR = 0x0, self.TIMERIFR = 0x1, self.INTBIT = 11, self.TIMERIMRMASK = self.WHICHHWI.Ier0Mask, self.IMR0TINTMASK = self.WHICHHWI.Ier0Mask, self.IMR1TINTMASK = 0x0, self.setMicroseconds(self.MICROSECONDS)} }}, "ok")
  2368. prop setMicroseconds :: ($a = if FIXTDDR == 1 {self.TDDR} else {0xffffffff}, $b = 0xffffffff, $c = (float($a) + 1.0) * ((float($b) + self.adjustPrd) / (GBL.MIPS / 8)), if ($1 < $c && $1 > 0.1) {if (self.FIXTDDR == 0) {self.TDDR = int((1.0 * $1 * GBL.MIPS / 8) / (float($b) + self.adjustPrd))} , self.PRD = int((1.0 * $1 * GBL.MIPS) / (8 * (self.TDDR + 1.0))) - self.adjustPrd, self.MICROSECONDS = ((float((self.PRD)) + CLK.adjustPrd) * ((self.TDDR) + 1.0) * 8 / GBL.MIPS), if (self.CALLBACKOBJ != nil) {self.CALLBACKOBJ.call()} , "ok"} else {self.error("The on-chip timer does not have enough range to support this combination of DSP MIPS and Microseconds/Int")})
  2369. prop call :: ($a = ((float((CLK.PRD)) + CLK.adjustPrd) * ((CLK.TDDR) + 1.0) * 8 / GBL.MIPS), $b = CLK.MICROSECONDS, $e = "ok", if (($e = self.setMicroseconds(CLK.MICROSECONDS)) == "ok") {if (CLK.gGBLChain != nil) {$e = CLK.gGBLChain.call()} , if ($e != "ok") {self.setMicroseconds($b), self.error($e)} else {"ok"}} else {$e})
  2370. global gUser :: "USER" {
  2371. prop Visible :: 0
  2372. prop Writable :: 0
  2373. prop NoGen :: 1
  2374. }
  2375. global gSetOf :: 0 {
  2376. prop Visible :: 0
  2377. prop Writable :: 0
  2378. prop NoGen :: 1
  2379. }
  2380. global gNumOf :: 1 {
  2381. prop Visible :: 0
  2382. prop Writable :: 0
  2383. prop NoGen :: 1
  2384. }
  2385. global gDirty :: 1 {
  2386. prop Visible :: 0
  2387. prop Writable :: 0
  2388. prop NoGen :: 1
  2389. }
  2390. global gInitFlag :: 1 {
  2391. prop Visible :: 0
  2392. prop Writable :: 0
  2393. prop NoGen :: 1
  2394. }
  2395. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  2396. prop Visible :: 0
  2397. prop Writable :: 0
  2398. prop NoGen :: 1
  2399. }
  2400. global gGBLChain :: nil {
  2401. prop Visible :: 0
  2402. prop Writable :: 0
  2403. prop NoGen :: 1
  2404. }
  2405. global OBJMEMSEG :: IRAM {
  2406. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  2407. prop MemberType :: MEM
  2408. prop MemberTest :: MEM.dataMember($1)
  2409. prop Label :: "Object Memory"
  2410. prop JSName :: "OBJMEMSEG"
  2411. prop Visible :: 1
  2412. prop Writable :: self.USETIMER
  2413. prop NoGen :: 1
  2414. }
  2415. global WHICHHWI :: HWI_INT14 {
  2416. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  2417. prop MemberType :: HWI
  2418. prop Label :: "CPU Interrupt"
  2419. prop Visible :: 1
  2420. prop Writable :: 0
  2421. prop NoGen :: 1
  2422. }
  2423. global INTBIT :: = self.WHICHHWI.iIntrEnableMask
  2424. global WHICHTIMER :: "Timer 0" {
  2425. prop Label :: "Timer Selection"
  2426. prop JSName :: "TIMERSELECT"
  2427. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  2428. prop Enum :: "Timer 0,Timer 1,Timer 2"
  2429. prop Visible :: 1
  2430. prop Writable :: self.USETIMER
  2431. prop NoGen :: 1
  2432. prop Set :: (if (self.WHICHTIMER != $1) {if (self.USETIMER == 0) {$e = "ok"} else {if (self.WHICHHIRESTIMER == $1) {$e = self.error("Must choose a timer different from the high resolution timer")} else {if ($1 == "Timer 0") {$a = Timer_0.iHwi} else {if ($1 == "Timer 1") {$a = Timer_1.iHwi} else {$a = Timer_2.iHwi}}, $e = self.seizeHwi($a)}}, if ($e == "ok") {self.releaseHwi(self.WHICHHWI), if ($1 == "Timer 0") {self.TIMERNUM = 0, self.WHICHHWI = Timer_0.iHwi} else {if ($1 == "Timer 1") {self.TIMERNUM = 1, self.WHICHHWI = Timer_1.iHwi} else {self.TIMERNUM = 2, self.WHICHHWI = Timer_2.iHwi}}, self.WHICHTIMER = $1, self.HOOKFXN = if self.gNumOf > 0 {@HWI_F_dispatch} else {(if GBL.CALLMODEL == "far" {@CLK_F_frete} else {@CLK_F_rete})}, self.seizeHwi(self.WHICHHWI)} , $e} )
  2433. }
  2434. global REGS :: = if self.WHICHTIMER == "Timer 0" {self.TIMER0BASE} else {if self.WHICHTIMER == "Timer 1" {self.TIMER1BASE} else {self.TIMER2BASE}} {
  2435. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2436. prop Style :: 0x02
  2437. prop Visible :: 0
  2438. prop Writable :: 1
  2439. }
  2440. global TIMER0BASE :: 26476544 {
  2441. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2442. prop Style :: 0x02
  2443. prop Writable :: 1
  2444. prop Visbile :: 0
  2445. prop JSName :: "TIMER0BASE"
  2446. prop NoGen :: 1
  2447. }
  2448. global TIMER1BASE :: 26738688 {
  2449. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2450. prop Style :: 0x02
  2451. prop Writable :: 1
  2452. prop Visbile :: 0
  2453. prop JSName :: "TIMER1BASE"
  2454. prop NoGen :: 1
  2455. }
  2456. global TIMER2BASE :: 28049408 {
  2457. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2458. prop Style :: 0x02
  2459. prop Writable :: 1
  2460. prop Visbile :: 0
  2461. prop JSName :: "TIMER2BASE"
  2462. prop NoGen :: 1
  2463. }
  2464. global TIMERNUM :: 0 {
  2465. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2466. prop Style :: 0x02
  2467. prop NoGen :: 0
  2468. }
  2469. global USETIMER :: 1 {
  2470. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2471. prop Label :: "Enable CLK Manager"
  2472. prop JSName :: "ENABLECLK"
  2473. prop Visible :: 1
  2474. prop Writable :: if self.gNumOf > 0 {0} else {1}
  2475. prop NoGen :: 0
  2476. prop Set :: (if ($1 == 1 && self.USETIMER == 0) {if (($e = self.seizeHwi(self.WHICHHWI)) == "ok") {self.USETIMER = 1, self.TIMEFXN = if CLK.HIRES {CLK.clkFxn()} else {@CLK_F_getltime}, self.HOOKFXN = if GBL.CALLMODEL == "far" {@CLK_F_frete} else {@CLK_F_rete}, self.seizeHwi(self.WHICHHWI), GlobalStatus.gDirty = 1, if (GlobalStatus.MinStackSize >= MEM.STACKSIZE) {self.releaseHwi(self.WHICHHWI), self.TIMEFXN = @FXN_F_zero, self.HOOKFXN = @FXN_F_nop, self.USETIMER = 0, GlobalStatus.gDirty = 1, self.error("Current stack size inadequate to enable CLK")} else {if (GBL.ENABLEINST == 1) {IDL_busyObj.Create("IDL"), IDL.USEIDLBUSYOBJ = 1, IDL_cpuLoad.Create("IDL"), IDL.AUTOCALCULATE = GBL.OLDAUTOCALCULATE} , $e}} else {$e}} else {if ($1 == 0 && self.USETIMER == 1) {self.releaseHwi(self.WHICHHWI), self.TIMEFXN = @FXN_F_zero, self.HOOKFXN = @FXN_F_nop, self.USETIMER = 0, if (GBL.ENABLEINST == 1) {IDL_busyObj.Delete("IDL"), IDL.USEIDLBUSYOBJ = 0, IDL_cpuLoad.Delete("IDL"), GBL.OLDAUTOCALCULATE = IDL.AUTOCALCULATE, IDL.AUTOCALCULATE = 0} , "ok"} else {"ok"}})
  2477. }
  2478. global HIRES :: 1 {
  2479. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2480. prop Label :: "Use high resolution time for internal timings"
  2481. prop JSName :: "HIRESTIME"
  2482. prop Visible :: 1
  2483. prop Writable :: self.USETIMER
  2484. prop NoGen :: 1
  2485. prop Set :: (if (CLK.USETIMER) {CLK.HIRES = $1, if (CLK.USETIMER) {CLK.TIMEFXN = if CLK.HIRES {CLK.clkFxn()} else {@CLK_F_getltime}} , "ok"} else {self.error("CLK Manager must be enabled in order to get high resolution timings.")})
  2486. }
  2487. global INSTRPERCLK :: 8 {
  2488. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2489. prop Visible :: 0
  2490. prop Writable :: 0
  2491. prop NoGen :: 1
  2492. }
  2493. global MICROSECONDS :: 10.000000 {
  2494. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  2495. prop Style :: 0x04
  2496. prop Format :: "%.4f"
  2497. prop Label :: "Microseconds/Int"
  2498. prop JSName :: "MICROSECONDS"
  2499. prop Set :: (self.setMicroseconds($1))
  2500. prop Visible :: 1
  2501. prop Writable :: if ((CLK.PROGTIMREGS != 0) | (self.USETIMER == 0)) {0} else {1}
  2502. prop NoGen :: 1
  2503. }
  2504. global MICROSECS :: = int(round(self.MICROSECONDS)) {
  2505. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2506. prop Style :: 0x20
  2507. prop Visible :: 0
  2508. prop Writable :: 0
  2509. prop NoGen :: 0
  2510. }
  2511. global PROGTIMREGS :: 0 {
  2512. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2513. prop Label :: "Directly configure on-chip timer registers"
  2514. prop JSName :: "CONFIGURETIMER"
  2515. prop Visible :: 1
  2516. prop Writable :: self.USETIMER
  2517. prop NoGen :: 1
  2518. }
  2519. global TCR :: = 0x20 | CLK.TDDR {
  2520. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2521. prop Style :: 0x01 | 0x02
  2522. prop Visible :: 0
  2523. prop Writable :: 0
  2524. prop NoGen :: 0
  2525. }
  2526. global FIXTDDR :: 1 {
  2527. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2528. prop Label :: "Fix TDDR"
  2529. prop JSName :: "FIXTDDR"
  2530. prop Visible :: (GBL.DSPTYPE != 62) && (GBL.DSPSUBTYPE != 2420) && (GBL.DSPSUBTYPE != 5599)
  2531. prop Writable :: CLK.PROGTIMREGS && (GBL.DSPTYPE != 62) && (GBL.DSPSUBTYPE != 2420) && (GBL.DSPSUBTYPE != 5599)
  2532. prop NoGen :: 1
  2533. }
  2534. global TDDR :: 0 {
  2535. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2536. prop Style :: 0x20
  2537. prop Label :: if GBL.DSPSUBTYPE == 5561 {"TDDR Register (PREMD=0)"} else {"TDDR Register"}
  2538. prop JSName :: "TCRTDDR"
  2539. prop Set :: (if ((GBL.DSPSUBTYPE != 5502) && (GBL.DSPSUBTYPE != 5802) && (GBL.DSPTYPE != 62) && (GBL.DSPSUBTYPE != 5599) && ($1 > 0xffffffff)) {self.error("The on-chip timer does not have enough range to support this value, maximum is 15.")} else {CLK.TDDR = $1, CLK.MICROSECONDS = ((float((CLK.PRD)) + CLK.adjustPrd) * ((CLK.TDDR) + 1.0) * 8 / GBL.MIPS), if (CLK.CALLBACKOBJ != nil) {CLK.CALLBACKOBJ.call()} , "ok"})
  2540. prop Visible :: GBL.DSPTYPE != 62
  2541. prop Writable :: CLK.PROGTIMREGS && GBL.DSPTYPE != 62
  2542. prop NoGen :: 0
  2543. }
  2544. global TDDRHIGH :: = ((self.TDDR & 0xffff0000) >> 16) {
  2545. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2546. }
  2547. global PRD :: 900 {
  2548. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2549. prop Style :: 0x20
  2550. prop Label :: if (GBL.CLKTYPE == 700) {"Compare0 Register"} else {"PRD Register"}
  2551. prop JSName :: "PRD"
  2552. prop Set :: (CLK.PRD = $1, CLK.MICROSECONDS = ((float((CLK.PRD)) + CLK.adjustPrd) * ((CLK.TDDR) + 1.0) * 8 / GBL.MIPS), if (CLK.CALLBACKOBJ != nil) {CLK.CALLBACKOBJ.call()} , "ok")
  2553. prop Visible :: 1
  2554. prop Writable :: if ((self.PROGTIMREGS) && (self.USETIMER)) {1} else {0}
  2555. prop NoGen :: 0
  2556. }
  2557. global PRDHIGH :: = ((self.PRD & 0xffff0000) >> 16) {
  2558. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2559. }
  2560. global COUNTSPMS :: = int(round(GBL.MIPS * 1000.0 / (CLK.TDDR + 1) / 8)) {
  2561. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2562. prop Style :: 0x20
  2563. }
  2564. global COUNTSPMSHIGH :: = ((self.COUNTSPMS & 0xffff0000) >> 16) {
  2565. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2566. }
  2567. global INSTRUCTIONS :: = (1.0 * (float(CLK.PRD) + CLK.adjustPrd) * (CLK.TDDR + 1.0) * 8) {
  2568. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  2569. prop Style :: 0x04
  2570. prop Format :: "%.0f"
  2571. prop Label :: "Instructions/Int"
  2572. prop Visible :: 1
  2573. prop Writable :: 0
  2574. prop NoGen :: 1
  2575. }
  2576. global TIMEFXN :: @CLK_F_getshtime {
  2577. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2578. prop Visible :: 0
  2579. prop Writable :: 0
  2580. prop NoGen :: 0
  2581. }
  2582. global HOOKFXN :: @HWI_F_dispatch {
  2583. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2584. prop Visible :: 0
  2585. prop Writable :: 0
  2586. prop NoGen :: 0
  2587. }
  2588. global CLKFXN :: = if (CLK.PRD == 0xffffffff) || (CLK.WHICHHIRESTIMER != "None") {@CLK_F_getfhtime} else {@CLK_F_getshtime} {
  2589. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2590. prop Visible :: 0
  2591. prop Writable :: 0
  2592. prop NoGen :: 1
  2593. }
  2594. global CALLBACKOBJ :: PRD {
  2595. prop Visible :: 0
  2596. prop Writable :: 0
  2597. prop NoGen :: 1
  2598. }
  2599. global CALDIV :: = if GBL.DSPSUBTYPE == 2420 {self.HTIMEDIV} else {1} {
  2600. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2601. prop Style :: 0x20
  2602. prop Visible :: 0
  2603. prop Writable :: 0
  2604. prop NoGen :: 0
  2605. }
  2606. global CALMULT :: = if GBL.DSPSUBTYPE == 2420 {self.HTIMEMULT} else {if GBL.DSPSUBTYPE == 1510 {self.PRDMULTFACTOR * 8} else {8}} {
  2607. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2608. prop Style :: 0x20
  2609. prop Visible :: 0
  2610. prop Writable :: 0
  2611. prop NoGen :: 0
  2612. }
  2613. global HTIMEDIV :: = if GBL.DSPSUBTYPE == 2420 {self.setHtimeParams()} else {1} {
  2614. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2615. prop Style :: 0x20
  2616. prop Visible :: 0
  2617. prop Writable :: 0
  2618. prop NoGen :: 0
  2619. }
  2620. global HTIMEMULT :: = if GBL.DSPSUBTYPE == 1510 {self.PRDMULTFACTOR * 8} else {if GBL.DSPSUBTYPE == 2420 {self.setHtimeParams()} else {if GBL.DSPSUBTYPE == 5502 {8} else {if GBL.DSPSUBTYPE == 6499 {1} else {((self.TDDR + 1) * 8)}}}} {
  2621. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2622. prop Style :: 0x20
  2623. prop Visible :: 0
  2624. prop Writable :: 0
  2625. prop NoGen :: 0
  2626. }
  2627. global LTIMEDIV :: = if GBL.DSPSUBTYPE == 2420 {if self.INPUTCLK == 0.032 {self.setLtimeParams()} else {self.HTIMEDIV}} else {1} {
  2628. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2629. prop Style :: 0x20
  2630. prop Visible :: 0
  2631. prop Writable :: 0
  2632. prop NoGen :: 0
  2633. }
  2634. global LTIMEMULT :: = if GBL.DSPSUBTYPE == 1510 {(self.PRDMULTFACTOR * self.PRD * 8)} else {if GBL.DSPSUBTYPE == 2420 {if self.INPUTCLK == 0.032 {self.setLtimeParams()} else {(self.HTIMEMULT * self.PRD)}} else {((self.TDDR + 1) * (self.PRD + self.adjustPrd) * (8))}} {
  2635. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2636. prop Style :: 0x20
  2637. prop Visible :: 0
  2638. prop Writable :: 0
  2639. prop NoGen :: 0
  2640. }
  2641. global HTIMEPERLTIME :: = if GBL.DSPSUBTYPE == 5502 {int(round(GBL.MIPS * self.MICROSECONDS / 8))} else {if GBL.DSPSUBTYPE == 2420 {int(round(self.HTIMECLK * self.MICROSECONDS / 8))} else {if GBL.DSPSUBTYPE == 6499 {int(round(GBL.MIPS * self.MICROSECONDS))} else {(self.PRD + CLK.adjustPrd)}}} {
  2642. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2643. prop Style :: 0x20
  2644. prop Visible :: 0
  2645. prop Writable :: 0
  2646. prop NoGen :: 0
  2647. }
  2648. global WHICHHIRESTIMER :: "None" {
  2649. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  2650. prop Enum :: "None,Timer 0,Timer 1,Timer 2"
  2651. prop Label :: "Timer to use for high resolution timings"
  2652. prop JSName :: "WHICHHIRESTIMER"
  2653. prop Visible :: 1
  2654. prop Writable :: self.USETIMER
  2655. prop NoGen :: 1
  2656. prop Set :: (if ($1 == self.WHICHTIMER) {$e = self.error("Must choose a timer different from the system tick timer")} else {self.WHICHHIRESTIMER = $1, $e = "ok"}, $e)
  2657. }
  2658. global HIRESREGS :: = if self.WHICHHIRESTIMER != "None" {(if self.WHICHHIRESTIMER == "Timer 0" {self.TIMER0BASE} else {if self.WHICHHIRESTIMER == "Timer 1" {self.TIMER1BASE} else {self.TIMER2BASE}})} else {(self.REGS)} {
  2659. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2660. prop Style :: 0x02
  2661. prop Visible :: 0
  2662. prop Writable :: 1
  2663. prop NoGen :: 0
  2664. }
  2665. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  2666. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2667. prop Label :: "comment"
  2668. prop JSName :: "comment"
  2669. prop Visible :: 1
  2670. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  2671. prop NoGen :: 1
  2672. }
  2673. inst iIsUsed :: 0 {
  2674. prop Visible :: 0
  2675. prop Writable :: 0
  2676. prop NoGen :: 1
  2677. }
  2678. inst iId :: 0 {
  2679. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2680. prop Style :: 0x01
  2681. prop Visible :: 0
  2682. prop Writable :: 1
  2683. prop NoGen :: 1
  2684. }
  2685. inst iDelUser :: "USER" {
  2686. prop Visible :: 0
  2687. prop Writable :: 0
  2688. prop NoGen :: 1
  2689. }
  2690. inst iDelMsg :: "ok" {
  2691. prop Visible :: 0
  2692. prop Writable :: 0
  2693. prop NoGen :: 1
  2694. }
  2695. inst function :: @FXN_F_nop {
  2696. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2697. prop Label :: "function"
  2698. prop JSName :: "fxn"
  2699. prop Visible :: 1
  2700. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  2701. prop NoGen :: 0
  2702. }
  2703. inst Order :: 0 {
  2704. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2705. prop JSName :: "order"
  2706. prop NoGen :: 1
  2707. prop Writable :: 1
  2708. }
  2709. inst iPri :: 0 {
  2710. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  2711. prop Visible :: 0
  2712. prop NoGen :: 1
  2713. }
  2714. }
  2715. type PRD {
  2716. isa ObjectMgr
  2717. prop name :: "PRD"
  2718. prop Label :: "PRD - Periodic Function Manager"
  2719. prop IsContainedIn :: SCH
  2720. prop IsConfMod :: 1
  2721. prop GlobalIcon :: 119
  2722. prop InstanceIcon :: 120
  2723. prop InstanceHelpTopic :: (210)
  2724. prop GlobalHelpTopic :: (110)
  2725. prop InstancePropertyPage :: ("{B7240DE0-AA51-11cf-9BFE-0000C0AC14C7}")
  2726. prop GlobalPropertyPage :: ("{B7240DE1-AA51-11cf-9BFE-0000C0AC14C7}")
  2727. prop STSGetMaxFmt :: ("%g ticks")
  2728. prop STSGetSumFmt :: (PRD.STSGetMaxFmt())
  2729. prop STSGetAvgFmt :: ("%.2f ticks")
  2730. prop GetPeriod :: self.period
  2731. prop IsOneShot :: if self.mode == "one-shot" {1} else {0}
  2732. prop objectSize :: (if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (10 * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (9 * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (12 * 4)} , if (GBL.DSPTYPE == 28 || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE")) {$a = (12 * 4)} , if (GBL.DSPTYPE == 62) {$a = (8 * 4)} , $a)
  2733. prop GenLinkPrologue :: ("SECTIONS {%4t\n.%1L: {\n%8t %1U_A_TABBEG = .;\n %4S\n %1U_A_TABEND = .;\n %1U_A_TABLEN = (. - %1U_A_TABBEG) / %2d;\n%4t} > %3s%5s\0, name, objSize, memSeg, linkString, pageString")
  2734. prop GenLinkEpilogue :: ("%0t}\n\0")
  2735. prop linkString :: if self.gNumOf > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  2736. prop pageString :: if GBL.DSPTYPE == 62 {""} else {if GBL.DSPTYPE == 55 {(if PRD.OBJMEMSEG.space() == "code" {" PAGE 0"} else {if PRD.OBJMEMSEG.space() == "data" {" PAGE 1"} else {if PRD.OBJMEMSEG.space() == "io" {" PAGE 2"} else {" PAGE 0"}}})} else {if GBL.DSPTYPE == 28 {" PAGE 1"} else {" PAGE 1"}}}
  2737. prop memSeg :: PRD.OBJMEMSEG
  2738. prop objSize :: if GBL.DSPTYPE == 55 {self.objectSize() * 2} else {self.objectSize()}
  2739. prop dataSize :: (self.objectSize() * PRD.gNumOf)
  2740. prop localInit :: (if (CLK.CALLBACKOBJ != nil) {self.error("PRD initialization failure")} , CLK.CALLBACKOBJ = PRD, if (PRD.USECLK && PRD_clock.iIsUsed == 0) {PRD_clock.Create("PRD")} , if (PRD_clock.iIsUsed == 1) {if (self.gNumOf == 0) {if (TSK.USETSK == 1 && TSK.TSKTICK == "PRD") {PRD_clock.function = @PRD_F_tick} else {PRD_clock.function = @FXN_F_nop}} else {PRD_clock.function = @PRD_F_tick}} )
  2741. prop localCanCreate :: (if (GlobalStatus.MinStackSize >= MEM.STACKSIZE) {self.error(" System Stack Size too small")} else {self.myCreate("can")})
  2742. prop localCreate :: (STS.gNumEmbed += 1, if (($a = self.myCreate("do")) == "ok") {if (PRD_clock.iIsUsed == 1) {if (self.gNumOf == 0) {PRD_clock.function = @PRD_F_tick} } } , $a)
  2743. prop localCanDelete :: (self.myDelete("can"))
  2744. prop localDelete :: (STS.gNumEmbed -= 1, if (($a = self.myDelete("do")) == "ok") {if (self.gNumOf == 1) {if (PRD_clock.iIsUsed == 1) {if (TSK.USETSK == 1 && TSK.TSKTICK == "PRD") {PRD_clock.function = @PRD_F_tick} else {PRD_clock.function = @FXN_F_nop}} } } , $a)
  2745. prop maxObjs :: (32767)
  2746. prop myCreate :: (if (PRD_swi.function != @PRD_F_swi) {PRD_swi.function = @PRD_F_swi} , if (PRD_swi.iIsUsed) {"ok"} else {if (SWI.CanCreate() == "ok") {if ($1 == "do") {if (KNL_swi.iIsUsed == 1 && PRD_swi.pri == 0) {PRD_swi.pri = 1} , PRD_swi.Create("PRD")} else {"ok"}} else {self.error("Can't create an SWI for PRD (try deleting a SWI)")}})
  2747. prop myDelete :: (if (PRD_swi.function != @PRD_F_swi) {PRD_swi.function = @PRD_F_swi} , if (self.gNumOf == 1) {if ($1 == "do") {PRD_swi.Delete("PRD")} else {"ok"}} else {"ok"})
  2748. prop call :: (if (CLK.USETIMER != 0) {PRD.MICROSECONDS = CLK.MICROSECONDS} , PRD.CALLBACKOBJ.call())
  2749. prop cGen :: 1
  2750. prop cHeaderName :: if self.gNumOf > 0 {"prd.h"} else {""}
  2751. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far PRD_Obj %0r;\n\0"} else {"extern PRD_Obj %0r;\n\0"})
  2752. prop SortByField :: "iPri"
  2753. prop SortGroups :: 1
  2754. prop DEFAULT_THOOKFXN :: @_KNL_tick
  2755. global gUser :: "USER" {
  2756. prop Visible :: 0
  2757. prop Writable :: 0
  2758. prop NoGen :: 1
  2759. }
  2760. global gSetOf :: 0 {
  2761. prop Visible :: 0
  2762. prop Writable :: 0
  2763. prop NoGen :: 1
  2764. }
  2765. global gNumOf :: 0 {
  2766. prop Visible :: 0
  2767. prop Writable :: 0
  2768. prop NoGen :: 1
  2769. }
  2770. global gDirty :: 0 {
  2771. prop Visible :: 0
  2772. prop Writable :: 0
  2773. prop NoGen :: 1
  2774. }
  2775. global gInitFlag :: 1 {
  2776. prop Visible :: 0
  2777. prop Writable :: 0
  2778. prop NoGen :: 1
  2779. }
  2780. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  2781. prop Visible :: 0
  2782. prop Writable :: 0
  2783. prop NoGen :: 1
  2784. }
  2785. global OBJMEMSEG :: IRAM {
  2786. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  2787. prop MemberType :: MEM
  2788. prop MemberTest :: MEM.dataMember($1)
  2789. prop Label :: "Object Memory"
  2790. prop JSName :: "OBJMEMSEG"
  2791. prop Visible :: 1
  2792. prop Writable :: 1
  2793. prop NoGen :: 1
  2794. }
  2795. global USECLK :: 1 {
  2796. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  2797. prop Label :: "Use CLK Manager to drive PRD"
  2798. prop JSName :: "USECLK"
  2799. prop Visible :: 1
  2800. prop Writable :: 1
  2801. prop Set :: (if ($1 == 1 && self.USECLK == 0) {if (CLK.USETIMER == 0) {self.error("In order to drive periodic functions, the CLK Manager must be enabled")} else {self.USECLK = 1, self.MICROSECONDS = CLK.MICROSECONDS, CLK.CALLBACKOBJ = PRD, PRD_clock.Create("PRD"), GlobalStatus.gDirty = 1, if (GlobalStatus.MinStackSize >= MEM.STACKSIZE) {self.USECLK = 0, self.MICROSECONDS = 0.0, CLK.CALLBACKOBJ = nil, PRD_clock.Delete("PRD"), self.error("Current Stack size inadequate to enable this option")} else {"ok"}}} else {if ($1 == 0 && self.USECLK == 1) {self.USECLK = 0, self.MICROSECONDS = 0.0, CLK.CALLBACKOBJ = nil, PRD_clock.Delete("PRD")} , "ok"})
  2802. prop NoGen :: 1
  2803. }
  2804. global MICROSECONDS :: 10.000000 {
  2805. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  2806. prop Style :: 0x04
  2807. prop Format :: "%.1f"
  2808. prop Label :: "Microseconds/Tick"
  2809. prop JSName :: "MICROSECONDS"
  2810. prop Visible :: 1
  2811. prop Writable :: self.USECLK == 0
  2812. prop NoGen :: 1
  2813. }
  2814. global SCALAR :: = ($d = 2, $f = 0, while ($d <= 0x4000 && $f == 0) {scan ($i; PRD) {if ((($i.period / $d) * $d != $i.period)) || ($i.mode == "one-shot") {$f = 1} }, if ($f == 0) {$d = 2 * $d} }, $d / 2) {
  2815. prop Visible :: 0
  2816. prop Writable :: 0
  2817. prop NoGen :: 0
  2818. }
  2819. global THOOKFXN :: @_KNL_tick {
  2820. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2821. prop Label :: "System Tick Hook Function"
  2822. prop Visible :: 0
  2823. prop Writable :: 1
  2824. prop NoGen :: 0
  2825. }
  2826. global CALLBACKOBJ :: STS {
  2827. prop Visible :: 0
  2828. prop Writable :: 0
  2829. prop NoGen :: 1
  2830. }
  2831. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  2832. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2833. prop Label :: "comment"
  2834. prop JSName :: "comment"
  2835. prop Visible :: 1
  2836. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  2837. prop NoGen :: 1
  2838. }
  2839. inst iIsUsed :: 0 {
  2840. prop Visible :: 0
  2841. prop Writable :: 0
  2842. prop NoGen :: 1
  2843. }
  2844. inst iId :: 0 {
  2845. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2846. prop Style :: 0x01
  2847. prop Visible :: 0
  2848. prop Writable :: 1
  2849. prop NoGen :: 1
  2850. }
  2851. inst iDelUser :: "USER" {
  2852. prop Visible :: 0
  2853. prop Writable :: 0
  2854. prop NoGen :: 1
  2855. }
  2856. inst iDelMsg :: "ok" {
  2857. prop Visible :: 0
  2858. prop Writable :: 0
  2859. prop NoGen :: 1
  2860. }
  2861. inst period :: 0x7fff {
  2862. prop Label :: "period (ticks)"
  2863. prop JSName :: "period"
  2864. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2865. prop Style :: 0x01 | 0x02
  2866. prop Visible :: 1
  2867. prop Writable :: 1
  2868. prop NoGen :: 0
  2869. prop Set :: (if (($1 > 0) && ($1 < 0x8000)) {self.period = $1, self.gDirty = 1, "ok"} else {self.error("Periodic function periods must be greater than 0 and less than 0x8000")})
  2870. }
  2871. inst mode :: "continuous" {
  2872. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  2873. prop Enum :: "continuous,one-shot"
  2874. prop JSName :: "mode"
  2875. prop Visible :: 1
  2876. prop Writable :: 1
  2877. prop NoGen :: 0
  2878. }
  2879. inst function :: @FXN_F_nop {
  2880. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  2881. prop JSName :: "fxn"
  2882. prop Visible :: 1
  2883. prop Writable :: 1
  2884. prop NoGen :: 0
  2885. }
  2886. inst arg0 :: 0 {
  2887. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  2888. prop JSName :: "arg0"
  2889. prop Visible :: 1
  2890. prop Writable :: 1
  2891. prop NoGen :: 0
  2892. }
  2893. inst arg1 :: 0 {
  2894. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  2895. prop JSName :: "arg1"
  2896. prop Visible :: 1
  2897. prop Writable :: 1
  2898. prop NoGen :: 0
  2899. }
  2900. inst milliseconds :: = ((self.period * PRD.MICROSECONDS) / 1000.0) {
  2901. prop Label :: "period (ms)"
  2902. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  2903. prop Style :: 0x04
  2904. prop Format :: "%.1f"
  2905. prop Visible :: 1
  2906. prop Writable :: 0
  2907. prop NoGen :: 1
  2908. }
  2909. inst Order :: 0 {
  2910. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2911. prop JSName :: "order"
  2912. prop NoGen :: 0
  2913. prop Writable :: 1
  2914. }
  2915. inst iPri :: 0 {
  2916. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  2917. prop Visible :: 0
  2918. prop NoGen :: 1
  2919. }
  2920. inst filter :: 0 {
  2921. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2922. prop Visible :: 0
  2923. prop Writable :: 1
  2924. prop Label :: "filter"
  2925. prop NoGen :: 0
  2926. }
  2927. inst maxformat :: "%g ticks" {
  2928. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2929. prop Visible :: 0
  2930. prop Writable :: 1
  2931. prop Label :: "maxformat"
  2932. prop NoGen :: 0
  2933. }
  2934. inst sumformat :: "%g ticks" {
  2935. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2936. prop Visible :: 0
  2937. prop Writable :: 1
  2938. prop Label :: "sumformat"
  2939. prop NoGen :: 0
  2940. }
  2941. inst avgformat :: "%.2f ticks" {
  2942. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  2943. prop Visible :: 0
  2944. prop Writable :: 1
  2945. prop Label :: "avgformat"
  2946. prop NoGen :: 0
  2947. }
  2948. inst unittype :: 2 {
  2949. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  2950. prop Visible :: 0
  2951. prop Writable :: 1
  2952. prop Label :: "unittype"
  2953. prop NoGen :: 0
  2954. }
  2955. }
  2956. object PRD_swi :: SWI {
  2957. param iComment :: "This Software ISR executes all configured PRD functions"
  2958. param iIsUsed :: 0
  2959. param iId :: 0
  2960. param iDelUser :: "PRD"
  2961. param iDelMsg :: "This object is automatically deleted when all PRD objects are deleted"
  2962. param function :: @PRD_F_swi
  2963. param pri :: 1
  2964. param mailbox :: 0
  2965. param arg0 :: 0
  2966. param arg1 :: 0
  2967. param dorta :: 1
  2968. param Order :: 0
  2969. param filter :: 2
  2970. param maxformat :: "%g inst"
  2971. param sumformat :: "%g inst"
  2972. param avgformat :: "%.2f inst"
  2973. param filtmaxmult :: 1
  2974. param filtsummult :: 1
  2975. param unittype :: 0
  2976. }
  2977. object PRD_clock :: CLK {
  2978. param iComment :: "This clock function calls PRD_tick from within the on-chip timer ISR"
  2979. param iIsUsed :: 1
  2980. param iId :: 0
  2981. param iDelUser :: "PRD"
  2982. param iDelMsg :: "This object is automatically deleted by disabling the 'Use CLK Manager to drive PRD' option of PRD"
  2983. param function :: @PRD_F_tick
  2984. param Order :: 0
  2985. param iPri :: 0
  2986. }
  2987. type RTDX {
  2988. isa ObjectMgr
  2989. prop Label :: "RTDX - Real-Time Data Exchange Settings"
  2990. prop name :: "RTDX"
  2991. prop IsConfMod :: self.USERTDX
  2992. prop IsContainedIn :: IOF
  2993. prop GlobalIcon :: 145
  2994. prop InstanceIcon :: 146
  2995. prop GlobalHelpTopic :: (113)
  2996. prop InstanceHelpTopic :: (213)
  2997. prop InstancePropertyPage :: ("{f80273c0-3838-11d2-a32c-006097656921}")
  2998. prop GlobalPropertyPage :: ("{050a0600-3839-11d2-a32c-006097656921}")
  2999. prop AllocType :: (if self.USERTDX {"2\0, _rtdxDataAllocDesc, _rtdxDataSeg, _placement,
  3000. _rtdxTextAllocDesc, _rtdxTextSeg, _placement"} else {""})
  3001. prop _rtdxDataAllocDesc :: (" .%1L_data: {} \0, name")
  3002. prop _rtdxTextAllocDesc :: (if (MEM.ENABLELOADSEG == 1) {if (MEM.RTDXTEXTMEMSEG == MEM.LOADRTDXTEXTMEMSEG) {" .%1L_text: {} \0, name"} else {" .%1L_text: {} load > %2s, run \0, name, _loadRtdxTextMemSeg"}} else {" .%1L_text: {} \0, name"})
  3003. prop _rtdxDataSeg :: RTDX.DATAMEMSEG
  3004. prop _rtdxTextSeg :: MEM.RTDXTEXTMEMSEG
  3005. prop _loadRtdxTextMemSeg :: MEM.LOADRTDXTEXTMEMSEG
  3006. prop _placement :: (0x7fffffff / 2)
  3007. prop _objSize :: RTDX.BUFMEMSIZE
  3008. prop GenLinkPrologue :: (if self.USERTDX {"_RTDX_interrupt_mask = 0x%1x;\n\0, _interruptMask"} else {""})
  3009. prop _interruptMask :: RTDX.MASK
  3010. prop cGen :: 1
  3011. prop noObjectAlias :: 1
  3012. prop cHeaderName :: if self.gNumOf > 0 {"rtdx.h"} else {""}
  3013. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {if (self.iChannelMode == "output") {"extern far RTDX_outputChannel %0r;\n\0"} else {"extern far RTDX_inputChannel %0r;\n\0"}} else {if (self.iChannelMode == "output") {"extern RTDX_outputChannel %0r;\n\0"} else {"extern RTDX_inputChannel %0r;\n\0"}})
  3014. prop cGenCInst :: (if (self.iChannelMode == "output") {"RTDX_CreateOutputChannel(%0r);\n\0"} else {"RTDX_CreateInputChannel(%0r);\n\0"})
  3015. prop dataSize :: ($d = 0, if (self.USERTDX) {$d = RTDX.BUFMEMSIZE} else {$d = 0}, scan ($a; RTDX) {if ($a.iChannelMode == "output") {$d += 1} else {$d += 3}}, $d)
  3016. prop localCanCreate :: ($e = "ok", if (RTDX.USERTDX != 1) {$e = self.error("RTDX manager not enabled")} , $e)
  3017. global gUser :: "USER" {
  3018. prop Visible :: 0
  3019. prop Writable :: 0
  3020. prop NoGen :: 1
  3021. }
  3022. global gSetOf :: 0 {
  3023. prop Visible :: 0
  3024. prop Writable :: 0
  3025. prop NoGen :: 1
  3026. }
  3027. global gNumOf :: 0 {
  3028. prop Visible :: 0
  3029. prop Writable :: 0
  3030. prop NoGen :: 1
  3031. }
  3032. global gDirty :: 0 {
  3033. prop Visible :: 0
  3034. prop Writable :: 0
  3035. prop NoGen :: 1
  3036. }
  3037. global gInitFlag :: 1 {
  3038. prop Visible :: 0
  3039. prop Writable :: 0
  3040. prop NoGen :: 1
  3041. }
  3042. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  3043. prop Visible :: 0
  3044. prop Writable :: 0
  3045. prop NoGen :: 1
  3046. }
  3047. global USERTDX :: 1 {
  3048. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3049. prop Label :: "Enable Real-Time Data Exchange (RTDX)"
  3050. prop JSName :: "ENABLERTDX"
  3051. prop Visible :: 1
  3052. prop Writable :: 1
  3053. prop NoGen :: 0
  3054. prop Set :: (if ($1 == 0) {if (HST.LNKTYPE == "RTDX") {self.error("RTDX is being used by HST; select a different host link type before attempting to disable RTDX")} else {if (self.gNumOf > 0) {self.error("Cannot disable RTDX until all RTDX objects are deleted.")} else {GlobalStatus.gDirty = 1, self.USERTDX = $1, if (RTDX.CALLBACKOBJ != nil) {RTDX.CALLBACKOBJ.call()} , "ok"}}} else {if ((GBL.DSPTYPE == 55) && (GBL.MEMORYMODEL == "HUGE")) {self.error("RTDX NOT enabled. Not supported for huge model")} else {GlobalStatus.gDirty = 1, self.USERTDX = $1, if (RTDX.CALLBACKOBJ != nil) {RTDX.CALLBACKOBJ.call()} , "ok"}})
  3055. }
  3056. global USERTEXECUTION :: = 0 {
  3057. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3058. prop Label :: "Enable Real-Time Execution Control"
  3059. prop Visible :: 0
  3060. prop Writable :: 0
  3061. prop NoGen :: 0
  3062. }
  3063. global RTDXTYPE :: "Simulator" {
  3064. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3065. prop Enum :: "JTAG,HSRTDX,Simulator"
  3066. prop Label :: "RTDX Mode"
  3067. prop JSName :: "MODE"
  3068. prop Visible :: 1
  3069. prop Writable :: self.USERTDX
  3070. prop NoGen :: 0
  3071. prop Set :: (self.RTDXTYPE = $1, if (RTDX.CALLBACKOBJ != nil) {RTDX.CALLBACKOBJ.call()} , "ok")
  3072. }
  3073. global DATAMEMSEG :: IRAM {
  3074. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3075. prop MemberType :: MEM
  3076. prop MemberTest :: MEM.dataMember($1)
  3077. prop Label :: "RTDX Data Segment (.rtdx_data)"
  3078. prop JSName :: "RTDXDATASEG"
  3079. prop Visible :: 1
  3080. prop Writable :: 1
  3081. prop NoGen :: 0
  3082. }
  3083. global BUFMEMSIZE :: = (256 + 2) * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE) {
  3084. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3085. prop Style :: 0x02
  3086. prop Label :: "RTDX Buffer Size (MAUs)"
  3087. prop JSName :: "BUFSIZE"
  3088. prop Visible :: 1
  3089. prop Writable :: self.USERTDX
  3090. prop NoGen :: 0
  3091. prop Set :: (if (HST.RTDX == 0) {self.BUFMEMSIZE = $1, GlobalStatus.gDirty = 1, "ok"} else {if ($1 < (HST.MAXFRAMESET + 3) * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)) {self.error("size (in MAUs) must be at least: (largest configured HST channel framesize in words + 3) * (MAUs per word)")} else {self.BUFMEMSIZE = $1, GlobalStatus.gDirty = 1, if (HST.LNKTYPE == "RTDX") {HST.MAXFRAMEALLOWED = (self.BUFMEMSIZE / (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)) - 3, "ok"} else {"ok"}}})
  3092. }
  3093. global TEXTMEMSEG :: IRAM {
  3094. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3095. prop MemberType :: MEM
  3096. prop MemberTest :: MEM.codeMember($1)
  3097. prop Label :: "RTDX Text Segment (.rtdx_text)"
  3098. prop Visible :: 0
  3099. prop Writable :: 1
  3100. prop NoGen :: 1
  3101. }
  3102. global MASK :: 0 {
  3103. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3104. prop Format :: "0x%08x"
  3105. prop Style :: 0x02
  3106. prop Label :: "RTDX Interrupt Mask"
  3107. prop JSName :: "INTERRUPTMASK"
  3108. prop Visible :: 1
  3109. prop Writable :: self.USERTDX
  3110. prop NoGen :: 1
  3111. prop Set :: (self.MASK = $1, "ok")
  3112. }
  3113. global CALLBACKOBJ :: HWI {
  3114. prop Visible :: 0
  3115. prop Writable :: 0
  3116. prop NoGen :: 1
  3117. }
  3118. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  3119. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  3120. prop Label :: "comment"
  3121. prop JSName :: "comment"
  3122. prop Visible :: 1
  3123. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  3124. prop NoGen :: 1
  3125. }
  3126. inst iIsUsed :: 0 {
  3127. prop Visible :: 0
  3128. prop Writable :: 0
  3129. prop NoGen :: 1
  3130. }
  3131. inst iId :: 0 {
  3132. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3133. prop Style :: 0x01
  3134. prop Visible :: 0
  3135. prop Writable :: 1
  3136. prop NoGen :: 1
  3137. }
  3138. inst iDelUser :: "USER" {
  3139. prop Visible :: 0
  3140. prop Writable :: 0
  3141. prop NoGen :: 1
  3142. }
  3143. inst iDelMsg :: "ok" {
  3144. prop Visible :: 0
  3145. prop Writable :: 0
  3146. prop NoGen :: 1
  3147. }
  3148. inst iChannelMode :: "output" {
  3149. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3150. prop Label :: "Channel Mode"
  3151. prop JSName :: "channelMode"
  3152. prop Enum :: "input,output"
  3153. prop Visible :: 1
  3154. prop Writable :: 1
  3155. prop NoGen :: 0
  3156. prop Set :: (GlobalStatus.gDirty = 1, self.iChannelMode = $1, "ok")
  3157. }
  3158. }
  3159. type HST {
  3160. isa ObjectMgr
  3161. prop name :: "HST"
  3162. prop Label :: "HST - Host Channel Manager"
  3163. prop IsContainedIn :: IOF
  3164. prop DependsOn :: "HWI"
  3165. prop FileStream :: 1
  3166. prop GlobalIcon :: 107
  3167. prop InstanceIcon :: 108
  3168. prop GlobalHelpTopic :: (104)
  3169. prop InstanceHelpTopic :: (204)
  3170. prop maxObjs :: (GBL.DSPWORDSIZE)
  3171. prop dataSize :: ($b = 0, scan ($i; HST) {if ($i.IsConfObj()) {$b += (12 + $i.framesize) * $i.numframes + PIP.OBJSIZE + self.objectSize()} }, $b)
  3172. prop InstancePropertyPage :: ("{B7240DEA-AA51-11cf-9BFE-0000C0AC14C8}")
  3173. prop GlobalPropertyPage :: ("{B7240DEB-AA51-11cf-9BFE-0000C0AC14C8}")
  3174. prop localCreate :: (PIP.gNumEmbed += 1, if (self.gNumOf == 0) {(LNK_dataPump.Create("HST"))} , "ok")
  3175. prop localDelete :: (PIP.gNumEmbed -= 1, $b = 0, scan ($i; HST) {if ($i != self) {if ($i.IsConfObj()) {if ($i.framesize > $b) {$b = $i.framesize} } } }, self.MAXFRAMESET = $b, if (self.gNumOf == 1) {(LNK_dataPump.Delete("HST"))} , "ok")
  3176. prop GenLinkPrologue :: (if (self.LNKTYPE == "RTDX") {"_LNK_dspFrameReadyMask = LNK_dspFrameReadyMask; \n_LNK_dspFrameRequestMask = LNK_dspFrameRequestMask; \n_LNK_readDone = LNK_readDone; \n_LNK_readFail = LNK_readFail; \n_LNK_readPend = LNK_readPend; \n_LNK_writeFail = LNK_writeFail;"} )
  3177. prop AllocType :: ("2\0, _globalAllocDesc, _memSeg, _placement, _dsmAllocDesc, _dsmMemSeg, _placement")
  3178. prop _globalAllocDesc :: ("%8t .%1L: {%12t\n %1U_A_TABBEG = .;\n _%1U_A_TABBEG = .;\n %2S\n %1U_A_TABEND = .;\n _%1U_A_TABEND = .;\n %1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;\n _%1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;%8t\n }\0, name, _linkString, _objSize")
  3179. prop objectSize :: (if (GBL.DSPTYPE == 28) {$a = (10 * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (8 * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (8 * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (6 * 4)} , if (GBL.DSPTYPE == 54 || GBL.DSPTYPE == 62) {$a = (5 * 4)} , $a)
  3180. prop _dsmAllocDesc :: ("%8t .dsm: {}")
  3181. prop _placement :: (0x7fffffff / 2)
  3182. prop AllocInst :: ("1\0, _instAllocDesc, _objMemSeg, _placement")
  3183. prop _instAllocDesc :: ("/* %0s buffer */\n.hst%2d: %3S\0, name, _objId, _alignString, _objAlign")
  3184. prop _alignString :: if self.bufalign > 1 {"align = 0x%4x {}"} else {""}
  3185. prop _objId :: self.iId
  3186. prop _objAlign :: self.bufalign
  3187. prop _objMemSeg :: self.bufseg
  3188. prop _linkString :: if (self.gNumOf + self.gNumEmbed) > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  3189. prop _memSeg :: HST.OBJMEMSEG
  3190. prop _dsmMemSeg :: HST.DSMBUFSEG
  3191. prop _objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  3192. prop cGen :: 1
  3193. prop cHeaderName :: if self.gNumOf > 0 {"hst.h"} else {""}
  3194. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far HST_Obj %0r;\n\0"} else {"extern HST_Obj %0r;\n\0"})
  3195. prop modifiable :: ((if self.iDelUser == "USER" {1} else {0}))
  3196. global gUser :: "USER" {
  3197. prop Visible :: 0
  3198. prop Writable :: 0
  3199. prop NoGen :: 1
  3200. }
  3201. global gSetOf :: 3 {
  3202. prop Visible :: 0
  3203. prop Writable :: 0
  3204. prop NoGen :: 1
  3205. }
  3206. global gNumOf :: 2 {
  3207. prop Visible :: 0
  3208. prop Writable :: 0
  3209. prop NoGen :: 1
  3210. }
  3211. global gDirty :: 1 {
  3212. prop Visible :: 0
  3213. prop Writable :: 0
  3214. prop NoGen :: 1
  3215. }
  3216. global gInitFlag :: 1 {
  3217. prop Visible :: 0
  3218. prop Writable :: 0
  3219. prop NoGen :: 1
  3220. }
  3221. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  3222. prop Visible :: 0
  3223. prop Writable :: 0
  3224. prop NoGen :: 1
  3225. }
  3226. global gNumEmbed :: 0 {
  3227. prop NoGen :: 1
  3228. }
  3229. global OBJMEMSEG :: IRAM {
  3230. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3231. prop MemberType :: MEM
  3232. prop MemberTest :: MEM.dataMember($1)
  3233. prop Label :: "Object Memory"
  3234. prop JSName :: "OBJMEMSEG"
  3235. prop Visible :: 1
  3236. prop Writable :: 1
  3237. prop NoGen :: 1
  3238. }
  3239. global LNKTYPE :: "RTDX" {
  3240. prop Label :: "Host Link Type"
  3241. prop JSName :: "HOSTLINKTYPE"
  3242. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3243. prop Enum :: "RTDX,NONE"
  3244. prop Visible :: 1
  3245. prop Writable :: 1
  3246. prop NoGen :: 1
  3247. prop Set :: (if ($1 == "RTDX") {if (RTDX.USERTDX == 0) {if ((GBL.DSPTYPE == 55) && (GBL.MEMORYMODEL == "HUGE")) {self.error(" HOSTLINKTYPE cannot be RTDX for huge model")} else {self.error("RTDX module must be enabled before it can be used by HST")}} else {if ((RTDX.BUFMEMSIZE / (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)) - 2 < self.MAXFRAMESET) {self.error("RTDX buffer size too small for largest configured HST channel")} else {if (self.LNKTYPE == "NONE") {GlobalStatus.gDirty = 1, self.LNKTYPE = $1, $b = 0, scan ($i; HST) {if ($i.IsConfObj()) {if ($i.framesize > $b) {$b = $i.framesize} } }, self.MAXFRAMESET = $b, self.MAXFRAMEALLOWED = (RTDX.BUFMEMSIZE / (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)) - 3, "ok"} else {self.LNKTYPE = $1, self.MAXFRAMEALLOWED = (RTDX.BUFMEMSIZE / (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)) - 3, "ok"}}}} else {if ($1 == "Shared Memory") {if ((self.DSMMEMSIZE / 4) < self.MAXFRAMESET) {self.error("Shared memory buffer too small for largest configured HST channel")} else {if (self.LNKTYPE == "NONE") {GlobalStatus.gDirty = 1, self.LNKTYPE = $1, $b = 0, scan ($i; HST) {if ($i.IsConfObj()) {if ($i.framesize > $b) {$b = $i.framesize} } }, self.MAXFRAMESET = $b, self.MAXFRAMEALLOWED = self.DSMMEMSIZE / 4, "ok"} else {self.LNKTYPE = $1, self.MAXFRAMEALLOWED = self.DSMMEMSIZE / 4, "ok"}}} else {GlobalStatus.gDirty = 1, self.LNKTYPE = $1, "ok"}})
  3248. }
  3249. global RTDX :: = if self.LNKTYPE == "RTDX" {1} else {0} {
  3250. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3251. prop Label :: "Use RTDX for host link"
  3252. prop Visible :: 0
  3253. prop Writable :: 0
  3254. prop NoGen :: 0
  3255. }
  3256. global DSM :: = if self.LNKTYPE == "Shared Memory" {1} else {0} {
  3257. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3258. prop Label :: "Use Shared Memory for host link"
  3259. prop Visible :: 0
  3260. prop Writable :: 0
  3261. prop NoGen :: 0
  3262. }
  3263. global EVM54 :: = if self.LNKTYPE == "EVM54" {1} else {0} {
  3264. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3265. prop Label :: "Use EVM54's I/O ports for host link"
  3266. prop Visible :: 0
  3267. prop Writable :: 0
  3268. prop NoGen :: 1
  3269. }
  3270. global NONE :: = if self.LNKTYPE == "NONE" {1} else {0} {
  3271. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3272. prop Label :: "No host link"
  3273. prop Visible :: 0
  3274. prop Writable :: 0
  3275. prop NoGen :: 0
  3276. }
  3277. global MAXFRAMESET :: 64 {
  3278. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3279. prop Label :: "MAXFRAMESET"
  3280. prop Visible :: 0
  3281. prop Writable :: 1
  3282. prop NoGen :: 0
  3283. }
  3284. global MAXFRAMEALLOWED :: 255 {
  3285. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3286. prop Label :: "MAXFRAMEALLOWED"
  3287. prop Visible :: 0
  3288. prop Writable :: 1
  3289. prop NoGen :: 0
  3290. }
  3291. global DSMBUFSEG :: = self.OBJMEMSEG {
  3292. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3293. prop MemberType :: MEM
  3294. prop MemberTest :: MEM.dataMember($1)
  3295. prop Label :: "Shared Memory Segment"
  3296. prop Visible :: 0
  3297. prop Writable :: self.DSM
  3298. prop NoGen :: 0
  3299. }
  3300. global DSMMEMSIZE :: = 1024 {
  3301. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3302. prop Style :: 0x01 | 0x02
  3303. prop Label :: "Shared Memory Frame Size (MAUs)"
  3304. prop Visible :: 0
  3305. prop Writable :: self.DSM
  3306. prop NoGen :: 0
  3307. prop Set :: (if ($1 < HST.MAXFRAMESET * 4) {self.error("size (in MAUs) must be at least: 4 * largest configured HST channel framesize (in words)")} else {self.DSMMEMSIZE = $1, GlobalStatus.gDirty = 1, if (self.LNKTYPE == "Shared Memory") {self.MAXFRAMEALLOWED = self.DSMMEMSIZE / 4, "ok"} else {"ok"}})
  3308. }
  3309. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  3310. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  3311. prop Label :: "comment"
  3312. prop JSName :: "comment"
  3313. prop Visible :: 1
  3314. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  3315. prop NoGen :: 1
  3316. }
  3317. inst iIsUsed :: 0 {
  3318. prop Visible :: 0
  3319. prop Writable :: 0
  3320. prop NoGen :: 1
  3321. }
  3322. inst iId :: 0 {
  3323. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3324. prop Style :: 0x01
  3325. prop Visible :: 0
  3326. prop Writable :: 1
  3327. prop NoGen :: 1
  3328. }
  3329. inst iDelUser :: "USER" {
  3330. prop Visible :: 0
  3331. prop Writable :: 0
  3332. prop NoGen :: 1
  3333. }
  3334. inst iDelMsg :: "ok" {
  3335. prop Visible :: 0
  3336. prop Writable :: 0
  3337. prop NoGen :: 1
  3338. }
  3339. inst mode :: "output" {
  3340. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3341. prop JSName :: "mode"
  3342. prop Enum :: "input,output"
  3343. prop Visible :: 1
  3344. prop Writable :: self.modifiable()
  3345. prop NoGen :: 0
  3346. }
  3347. inst bufseg :: = self.OBJMEMSEG {
  3348. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3349. prop Label :: "bufseg"
  3350. prop JSName :: "bufSeg"
  3351. prop MemberType :: MEM
  3352. prop MemberTest :: MEM.dataMember($1)
  3353. prop Visible :: 1
  3354. prop Writable :: 1
  3355. prop NoGen :: 1
  3356. }
  3357. inst bufalign :: 4 {
  3358. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3359. prop Style :: 0x01 | 0x02
  3360. prop JSName :: "bufAlign"
  3361. prop Visible :: 1
  3362. prop Writable :: self.modifiable()
  3363. prop NoGen :: 1
  3364. prop Set :: (if ($1 < 4) {self.error("Alignment must be greater than or equal to 4")} else {if (($1 % 2) != 0) {self.error("Alignment must be a power of 2")} else {$i = $1, while ((($i % 2) == 0) && ($i != 2)) {$i = $i / 2}, if (($i % 2) != 0) {self.error("Alignment must be a power of 2")} else {self.bufalign = $1, "ok"}}})
  3365. }
  3366. inst buf :: "<NULL>" {
  3367. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3368. prop Visible :: 0
  3369. prop Writable :: 0
  3370. prop NoGen :: 0
  3371. }
  3372. inst framesize :: 0x80 {
  3373. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3374. prop Label :: "framesize (words)"
  3375. prop JSName :: "frameSize"
  3376. prop Style :: 0x01 | 0x02
  3377. prop Visible :: 1
  3378. prop Writable :: 1
  3379. prop NoGen :: 0
  3380. prop Set :: (if ($1 < 1) {self.error("framesize must be >= 1.")} else {if (($1 > self.MAXFRAMEALLOWED) && ((self.RTDX == 1) || (self.DSM == 1))) {if (self.RTDX == 1) {self.error("size (in words) is limited to: (RTDX buffer size in MAUs) / (MAUs per word) - 3")} else {self.error("size (in words) is limited to: shared memory frame size (in MAUs)/4")}} else {self.framesize = $1, $b = 0, scan ($i; HST) {if ($i.IsConfObj()) {if ($i.framesize > $b) {$b = $i.framesize} } }, self.MAXFRAMESET = $b, GlobalStatus.gDirty = 1, "ok"}})
  3381. }
  3382. inst numframes :: 2 {
  3383. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3384. prop Style :: 0x01
  3385. prop JSName :: "numFrames"
  3386. prop Visible :: 1
  3387. prop Writable :: self.modifiable()
  3388. prop NoGen :: 0
  3389. prop Set :: (if ($1 < 1) {self.error("Channels must contain at least 1 frame.")} else {GlobalStatus.gDirty = 1, self.numframes = $1, "ok"})
  3390. }
  3391. inst stsflg :: 0 {
  3392. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3393. prop Label :: "statistics"
  3394. prop JSName :: "statistics"
  3395. prop Visible :: 1
  3396. prop Writable :: 1
  3397. prop NoGen :: 0
  3398. }
  3399. inst notify :: @_FXN_F_nop {
  3400. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  3401. prop JSName :: "notifyFxn"
  3402. prop Visible :: 1
  3403. prop Writable :: (if self.iDelUser == "DHL" || self.iDelUser != "USER" {0} else {1})
  3404. prop NoGen :: 0
  3405. prop TabName :: "Notify Function"
  3406. }
  3407. inst arg0 :: 0 {
  3408. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  3409. prop JSName :: "arg0"
  3410. prop Visible :: 1
  3411. prop Writable :: (if self.iDelUser == "DHL" || self.iDelUser != "USER" {0} else {1})
  3412. prop NoGen :: 0
  3413. prop TabName :: "Notify Function"
  3414. }
  3415. inst arg1 :: 0 {
  3416. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  3417. prop JSName :: "arg1"
  3418. prop Visible :: 1
  3419. prop Writable :: (if self.iDelUser == "DHL" || self.iDelUser != "USER" {0} else {1})
  3420. prop NoGen :: 0
  3421. prop TabName :: "Notify Function"
  3422. }
  3423. inst lnk :: = if self.RTDX {"RTDX"} else {"NOTRTDX"} {
  3424. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  3425. prop Label :: "link type"
  3426. prop Visible :: 0
  3427. prop Writable :: 0
  3428. prop NoGen :: 0
  3429. }
  3430. inst iDHLAvailable :: 0 {
  3431. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3432. prop Label :: "Make this channel available for a new DHL device"
  3433. prop JSName :: "availableForDHL"
  3434. prop Set :: (if (($1 == 0) && (self.iDHLAvailable == 1)) {DHL.gChannelsAvailable--} else {if (($1 == 1) && (self.iDHLAvailable == 0)) {DHL.gChannelsAvailable++} }, self.iDHLAvailable = $1, "ok")
  3435. prop Writable :: self.modifiable()
  3436. prop Visible :: 1
  3437. prop NoGen :: 1
  3438. }
  3439. inst bufFrameAlign :: = self.bufalign {
  3440. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3441. prop Visible :: 0
  3442. prop Writable :: 0
  3443. prop NoGen :: 0
  3444. }
  3445. }
  3446. object LNK_dataPump :: IDL {
  3447. param iComment :: "This object cannot be deleted"
  3448. param iIsUsed :: 1
  3449. param iId :: 0
  3450. param iDelUser :: "HST"
  3451. param iDelMsg :: "This object cannot be deleted"
  3452. param function :: @LNK_F_dataPump
  3453. param cycles :: 0
  3454. param calibration :: 1
  3455. param Order :: 0
  3456. param iPri :: 0
  3457. }
  3458. object RTA_dispatcher :: IDL {
  3459. param iComment :: "This object cannot be deleted"
  3460. param iIsUsed :: 1
  3461. param iId :: 0
  3462. param iDelUser :: "HST"
  3463. param iDelMsg :: "This object cannot be deleted"
  3464. param function :: @RTA_F_dispatch
  3465. param cycles :: 0
  3466. param calibration :: 1
  3467. param Order :: 0
  3468. param iPri :: 0
  3469. }
  3470. object RTA_fromHost :: HST {
  3471. param iComment :: "Used to access LOG and STS data"
  3472. param iIsUsed :: 1
  3473. param iId :: 1
  3474. param iDelUser :: "HST"
  3475. param iDelMsg :: "This object cannot be deleted"
  3476. param mode :: "input"
  3477. param bufseg :: IRAM
  3478. param bufalign :: 4
  3479. param buf :: "<NULL>"
  3480. param framesize :: 4
  3481. param numframes :: 1
  3482. param stsflg :: 0
  3483. param notify :: @_FXN_F_nop
  3484. param arg0 :: 0
  3485. param arg1 :: 0
  3486. param iDHLAvailable :: 0
  3487. }
  3488. object RTA_toHost :: HST {
  3489. param iComment :: "Used to access LOG and STS data"
  3490. param iIsUsed :: 1
  3491. param iId :: 0
  3492. param iDelUser :: "HST"
  3493. param iDelMsg :: "This object cannot be deleted"
  3494. param mode :: "output"
  3495. param bufseg :: IRAM
  3496. param bufalign :: 4
  3497. param buf :: "<NULL>"
  3498. param framesize :: 64
  3499. param numframes :: 1
  3500. param stsflg :: 0
  3501. param notify :: @_FXN_F_nop
  3502. param arg0 :: 0
  3503. param arg1 :: 0
  3504. param iDHLAvailable :: 0
  3505. }
  3506. type HWI {
  3507. isa ObjectMgr
  3508. prop name :: "HWI"
  3509. prop Label :: "HWI - Hardware Interrupt Service Routine Manager"
  3510. prop IsContainedIn :: SCH
  3511. prop SortChildHierView :: 0
  3512. prop GlobalIcon :: 109
  3513. prop InstanceIcon :: 110
  3514. prop InstanceHelpTopic :: (205)
  3515. prop GlobalHelpTopic :: (105)
  3516. prop dataSize :: (0 * HWI.gNumOf)
  3517. prop localCanCreate :: (self.error("New hardware interrupt objects cannot be created"))
  3518. prop InstancePropertyPage :: ("{B7240DE6-AA51-11cf-9BFE-0000C0AC14C7}")
  3519. prop GlobalPropertyPage :: ("{B7240DE7-AA51-11cf-9BFE-0000C0AC14C7}")
  3520. prop DependsOn :: "GBL,OBJ,BUF,CLK,IDL,LCK,LOG,MBX,MEM,PIP,POOL,PRD,QUE,RTDX,SEM,STS,SYS"
  3521. prop AllocType :: (if self.ZEROTAB {"1\0, _stubsAllocDesc, _memSeg, _placement"} else {if ((MEM.ENABLELOADSEG) && (MEM.VECMEMSEG != MEM.LOADVECMEMSEG)) {"2\0, _stubsAllocDesc, _memSeg, _placement,
  3522. _vectAllocDesc, _loadvecSeg, _minplace"} else {"2\0, _stubsAllocDesc, _memSeg, _placement,
  3523. _vectAllocDesc, _vecSeg, _minplace"}})
  3524. prop _stubsAllocDesc :: (if ((MEM.ENABLELOADSEG) && (MEM.STUBMEMSEG != MEM.LOADSTUBMEMSEG)) {"%8t .%1L: {} load > %2s, run\0, name, _loadstubSeg"} else {"%8t .%1L: {} \0, name"})
  3525. prop _vectAllocDesc :: (if ((MEM.ENABLELOADSEG) && (MEM.VECMEMSEG != MEM.LOADVECMEMSEG)) {"%8t .%1L_vec: {%12t\n %1U_A_VECS = .;\n *(.hwi_vec)%8t\n } run > %2s align = 0x400, load \0, name, _vecSeg"} else {"%8t .%1L_vec: {%12t\n %1U_A_VECS = .;\n *(.hwi_vec)%8t\n } align = 0x400\0, name"})
  3526. prop _placement :: (0x7fffffff / 2)
  3527. prop _minplace :: 0
  3528. prop GenLinkPrologue :: (if self.ZEROTAB {if ((MEM.ENABLELOADSEG) && (MEM.VECMEMSEG != MEM.LOADVECMEMSEG)) {"SECTIONS {%4t\n .%1L_vec: {%8t\n %1U_A_VECS = .;\n *(.hwi_vec)%4t\n } load > %2s, run = 0x0 %0t\n}\n\0 , name, _loadvecSeg"} else {"SECTIONS {%4t\n .%1L_vec: 0x0 {%8t\n %1U_A_VECS = .;\n *(.hwi_vec)%4t\n }%0t\n}\n\0, name"}} else {if self.GENERATE_RESET_VEC {"SECTIONS {%4t\n .%1L_reset: %2x {}%0t\n}\n\0, name, .RESETVECTORADDR"} else {""}})
  3529. prop GenLinkEpilogue :: ("%0t_HWI_CFGDISPATCHED = HWI_CFGDISPATCHED;\n\0")
  3530. prop localInit :: (if (RTDX.CALLBACKOBJ != nil) {self.error("HWI initialization failure.")} , RTDX.CALLBACKOBJ = HWI)
  3531. prop call :: (if (RTDX.USERTDX == 0) {HWI_RESERVED1.function = @HWI_unused, HWI_RESERVED1.iUseDispatcher = 0, if (HWI_INT9.iSource == JTAGRTDX9 && HWI_INT9.function == @_RTDX_Poll) {HWI_INT9.iSource = MCSP_0_Transmit, HWI_INT9.iReMappable = 1, HWI_INT9.function = @HWI_unused, HWI_INT9.iUseDispatcher = 0, HWI_INT9.iIntrMask = "self", HWI_INT9.IntrMask = 0x200, HWI_INT9.client = "USER"} , if (HWI_INT11.iSource == HSRTDX11 && HWI_INT11.function == @_HSRTDX_xmt) {HWI_INT11.iSource = MCSP_0_Receive, HWI_INT11.iReMappable = 1, HWI_INT11.function = @HWI_unused, HWI_INT11.iUseDispatcher = 0, HWI_INT11.iIntrMask = "self", HWI_INT11.IntrMask = 0x800, HWI_INT11.client = "USER"} , if (HWI_INT12.iSource == HSRTDX12 && HWI_INT12.function == @_HSRTDX_rec) {HWI_INT12.iSource = MCSP_1_Transmit, HWI_INT12.iReMappable = 1, HWI_INT12.function = @HWI_unused, HWI_INT12.iUseDispatcher = 0, HWI_INT12.iIntrMask = "self", HWI_INT12.IntrMask = 0x1000, HWI_INT12.client = "USER"} } else {HWI_RESERVED1.function = @_RTDX_Poll, HWI_RESERVED1.iUseDispatcher = 1, if (RTDX.RTDXTYPE == "HSRTDX") {if (HWI_INT9.iSource == JTAGRTDX9 && HWI_INT9.function == @_RTDX_Poll) {HWI_INT9.iSource = MCSP_0_Transmit, HWI_INT9.iReMappable = 1, HWI_INT9.function = @HWI_unused, HWI_INT9.iUseDispatcher = 0, HWI_INT9.iIntrMask = "self", HWI_INT9.IntrMask = 0x200, HWI_INT9.client = "USER"} , HWI_INT11.iSource = HSRTDX11, HWI_INT11.iReMappable = 0, HWI_INT11.function = @_HSRTDX_xmt, HWI_INT11.iUseDispatcher = 1, HWI_INT11.iIntrMask = "bitmask", HWI_INT11.IntrMask = 0x1808, HWI_INT11.client = "RTDX", HWI_INT12.iSource = HSRTDX12, HWI_INT12.iReMappable = 0, HWI_INT12.function = @_HSRTDX_rec, HWI_INT12.iUseDispatcher = 1, HWI_INT12.iIntrMask = "bitmask", HWI_INT12.IntrMask = 0x1808, HWI_INT12.client = "RTDX"} else {HWI_INT9.iSource = JTAGRTDX9, HWI_INT9.iReMappable = 0, HWI_INT9.function = @_RTDX_Poll, HWI_INT9.iUseDispatcher = 1, HWI_INT9.iIntrMask = "bitmask", HWI_INT9.IntrMask = 0x208, HWI_INT9.client = "RTDX", if (HWI_INT11.iSource == HSRTDX11 && HWI_INT11.function == @_HSRTDX_xmt) {HWI_INT11.iSource = MCSP_0_Receive, HWI_INT11.iReMappable = 1, HWI_INT11.function = @HWI_unused, HWI_INT11.iUseDispatcher = 0, HWI_INT11.iIntrMask = "self", HWI_INT11.IntrMask = 0x800, HWI_INT11.client = "USER"} , if (HWI_INT12.iSource == HSRTDX12 && HWI_INT12.function == @_HSRTDX_rec) {HWI_INT12.iSource = MCSP_1_Transmit, HWI_INT12.iReMappable = 1, HWI_INT12.function = @HWI_unused, HWI_INT12.iUseDispatcher = 0, HWI_INT12.iIntrMask = "self", HWI_INT12.IntrMask = 0x1000, HWI_INT12.client = "USER"} }})
  3532. prop _memSeg :: MEM.STUBMEMSEG
  3533. prop _loadstubSeg :: MEM.LOADSTUBMEMSEG
  3534. prop _linkString :: ($b = 0, scan ($a; HWI) {if ($a.monitor != "Nothing") {$b = 1} }, if ($b == 1) {"*(.hwi)"} else {"/* no HWI stubs are necessary */"})
  3535. prop name2addr :: ($i = 0, $b = nil, scan ($a; {"Nothing", "Data Value", "Stack Pointer", "Top of SW Stack", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10", "A11", "A12", "A13", "A14", "A15", "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13", "B14", "B15"}) {if ($b == nil) {if ($a == $1) {$b = {0, 0, 0, @GBL_stackbeg, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}[$i]} , $i++} }, if ($b == nil) {$b = 0} , $b)
  3536. prop name2type :: ($i = 0, $b = nil, scan ($a; {"Nothing", "Data Value", "Stack Pointer", "Top of SW Stack", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8", "A9", "A10", "A11", "A12", "A13", "A14", "A15", "B0", "B1", "B2", "B3", "B4", "B5", "B6", "B7", "B8", "B9", "B10", "B11", "B12", "B13", "B14", "B15"}) {if ($b == nil) {if ($a == $1) {if ($i < 5) {$b = {"unsigned", "signed", "unsigned", "unsigned", "unsigned"}[$i]} } , $i++} }, if ($b == nil) {$b = "unsigned"} , $b)
  3537. prop _vecSeg :: MEM.VECMEMSEG
  3538. prop _loadvecSeg :: MEM.LOADVECMEMSEG
  3539. prop HWIR0_DISP :: (if (HWI_RESERVED0.iUseDispatcher == 1) {0x4} else {0})
  3540. prop HWIR1_DISP :: (if (HWI_RESERVED1.iUseDispatcher == 1) {0x8} else {0})
  3541. prop HWI4_DISP :: (if (HWI_INT4.iUseDispatcher == 1) {0x10} else {0})
  3542. prop HWI5_DISP :: (if (HWI_INT5.iUseDispatcher == 1) {0x20} else {0})
  3543. prop HWI6_DISP :: (if (HWI_INT6.iUseDispatcher == 1) {0x40} else {0})
  3544. prop HWI7_DISP :: (if (HWI_INT7.iUseDispatcher == 1) {0x80} else {0})
  3545. prop HWI8_DISP :: (if (HWI_INT8.iUseDispatcher == 1) {0x100} else {0})
  3546. prop HWI9_DISP :: (if (HWI_INT9.iUseDispatcher == 1) {0x200} else {0})
  3547. prop HWI10_DISP :: (if (HWI_INT10.iUseDispatcher == 1) {0x400} else {0})
  3548. prop HWI11_DISP :: (if (HWI_INT11.iUseDispatcher == 1) {0x800} else {0})
  3549. prop HWI12_DISP :: (if (HWI_INT12.iUseDispatcher == 1) {0x1000} else {0})
  3550. prop HWI13_DISP :: (if (HWI_INT13.iUseDispatcher == 1) {0x2000} else {0})
  3551. prop HWI14_DISP :: (if (HWI_INT14.iUseDispatcher == 1) {0x4000} else {0})
  3552. prop HWI15_DISP :: (if (HWI_INT15.iUseDispatcher == 1) {0x8000} else {0})
  3553. global gUser :: "USER" {
  3554. prop Visible :: 0
  3555. prop Writable :: 0
  3556. prop NoGen :: 1
  3557. }
  3558. global gSetOf :: 65535 {
  3559. prop Visible :: 0
  3560. prop Writable :: 0
  3561. prop NoGen :: 1
  3562. }
  3563. global gNumOf :: 16 {
  3564. prop Visible :: 0
  3565. prop Writable :: 0
  3566. prop NoGen :: 1
  3567. }
  3568. global gDirty :: 1 {
  3569. prop Visible :: 0
  3570. prop Writable :: 0
  3571. prop NoGen :: 1
  3572. }
  3573. global gInitFlag :: 1 {
  3574. prop Visible :: 0
  3575. prop Writable :: 0
  3576. prop NoGen :: 1
  3577. }
  3578. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  3579. prop Visible :: 0
  3580. prop Writable :: 0
  3581. prop NoGen :: 1
  3582. }
  3583. global STUBMEMSEG :: IRAM {
  3584. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3585. prop MemberType :: MEM
  3586. prop MemberTest :: MEM.codeMember($1)
  3587. prop Label :: "Function Stub Memory"
  3588. prop Visible :: 0
  3589. prop Writable :: 1
  3590. prop NoGen :: 1
  3591. }
  3592. global ZEROTAB :: = if 6400 == 6499 {0} else {self.VECMEMSEG.base == self.RESETVECTORADDR} {
  3593. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3594. prop Writable :: 0
  3595. prop Visible :: 0
  3596. }
  3597. global VECMEMSEG :: IRAM {
  3598. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3599. prop MemberType :: MEM
  3600. prop Label :: "Interrupt Service Table Memory"
  3601. prop Visible :: 0
  3602. prop Writable :: 1
  3603. prop NoGen :: 1
  3604. prop MemberTest :: MEM.codeMember($1)
  3605. prop Set :: (self.VECMEMSEG = $1, if ($1.base == 0) {self.GENERATE_RESET_VEC = 0} , "ok")
  3606. }
  3607. global GENERATE_RESET_VEC :: 0 {
  3608. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3609. prop Label :: "Generate RESET vector"
  3610. prop JSName :: "RESETVECTOR"
  3611. prop Writable :: self.ZEROTAB == 0
  3612. prop Visible :: 1
  3613. prop NoGen :: 0
  3614. }
  3615. global RESETVECTORADDR :: 0 {
  3616. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3617. prop Label :: "RESET vector address"
  3618. prop JSName :: "RESETVECTORADDR"
  3619. prop Format :: "0x%08x"
  3620. prop Style :: 0x02
  3621. prop Writable :: self.GENERATE_RESET_VEC
  3622. prop Visible :: 1
  3623. prop NoGen :: 1
  3624. }
  3625. global EXT4_POLARITY :: "low-to-high" {
  3626. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3627. prop Enum :: "low-to-high,high-to-low"
  3628. prop Label :: "External Interrupt Pin 4 Polarity"
  3629. prop JSName :: "EXTPIN4POLARITY"
  3630. prop Visible :: 1
  3631. prop Writable :: 1
  3632. prop NoGen :: 1
  3633. }
  3634. global EXT5_POLARITY :: "low-to-high" {
  3635. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3636. prop Enum :: "low-to-high,high-to-low"
  3637. prop Label :: "External Interrupt Pin 5 Polarity"
  3638. prop JSName :: "EXTPIN5POLARITY"
  3639. prop Visible :: 1
  3640. prop Writable :: 1
  3641. prop NoGen :: 1
  3642. }
  3643. global EXT6_POLARITY :: "low-to-high" {
  3644. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3645. prop Enum :: "low-to-high,high-to-low"
  3646. prop Label :: "External Interrupt Pin 6 Polarity"
  3647. prop JSName :: "EXTPIN6POLARITY"
  3648. prop Visible :: 1
  3649. prop Writable :: 1
  3650. prop NoGen :: 1
  3651. }
  3652. global EXT7_POLARITY :: "low-to-high" {
  3653. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3654. prop Enum :: "low-to-high,high-to-low"
  3655. prop Label :: "External Interrupt Pin 7 Polarity"
  3656. prop JSName :: "EXTPIN7POLARITY"
  3657. prop Visible :: 1
  3658. prop Writable :: 1
  3659. prop NoGen :: 1
  3660. }
  3661. global POLARITYMASK :: = (if self.EXT4_POLARITY == "high-to-low" {1} else {0}) | (if self.EXT5_POLARITY == "high-to-low" {1} else {0}) << 1 | (if self.EXT6_POLARITY == "high-to-low" {1} else {0}) << 2 | (if self.EXT7_POLARITY == "high-to-low" {1} else {0}) << 3 {
  3662. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3663. prop Visible :: 0
  3664. prop Writable :: 0
  3665. prop NoGen :: 0
  3666. }
  3667. global INTRMULTLOW :: = (HWI_INT4.iEventId) | (HWI_INT5.iEventId << 5) | (HWI_INT6.iEventId << 10) | (HWI_INT7.iEventId << 16) | (HWI_INT8.iEventId << 21) | (HWI_INT9.iEventId << 26) {
  3668. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3669. prop Style :: 0x02
  3670. prop Writable :: 0
  3671. prop Visible :: 0
  3672. prop NoGen :: 0
  3673. }
  3674. global INTRMULTHIGH :: = (HWI_INT10.iEventId) | (HWI_INT11.iEventId << 5) | (HWI_INT12.iEventId << 10) | (HWI_INT13.iEventId << 16) | (HWI_INT14.iEventId << 21) | (HWI_INT15.iEventId << 26) {
  3675. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3676. prop Style :: 0x02
  3677. prop Writable :: 0
  3678. prop Visible :: 0
  3679. prop NoGen :: 0
  3680. }
  3681. global CFGDISPATCHED :: = (self.HWIR0_DISP | self.HWIR1_DISP | self.HWI4_DISP | self.HWI5_DISP | self.HWI6_DISP | self.HWI7_DISP | self.HWI8_DISP | self.HWI9_DISP | self.HWI10_DISP | self.HWI11_DISP | self.HWI12_DISP | self.HWI13_DISP | self.HWI14_DISP | self.HWI15_DISP) {
  3682. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3683. prop Label :: "dispatched mask"
  3684. prop Style :: 0x02
  3685. prop Writable :: 1
  3686. prop Visible :: 0
  3687. prop NoGen :: 0
  3688. }
  3689. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  3690. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  3691. prop Label :: "comment"
  3692. prop JSName :: "comment"
  3693. prop Visible :: 1
  3694. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  3695. prop NoGen :: 1
  3696. }
  3697. inst iIsUsed :: 0 {
  3698. prop Visible :: 0
  3699. prop Writable :: 0
  3700. prop NoGen :: 1
  3701. }
  3702. inst iId :: 0 {
  3703. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3704. prop Style :: 0x01
  3705. prop Visible :: 0
  3706. prop Writable :: 1
  3707. prop NoGen :: 1
  3708. }
  3709. inst iDelUser :: "USER" {
  3710. prop Visible :: 0
  3711. prop Writable :: 0
  3712. prop NoGen :: 1
  3713. }
  3714. inst iDelMsg :: "ok" {
  3715. prop Visible :: 0
  3716. prop Writable :: 0
  3717. prop NoGen :: 1
  3718. }
  3719. inst iSource :: Reset {
  3720. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  3721. prop MemberType :: ISRC
  3722. prop MemberTest :: 1
  3723. prop Label :: "interrupt source"
  3724. prop JSName :: "interruptSource"
  3725. prop Visible :: if (GBL.CLKTYPE == 700) {0} else {if (GBL.DSPSUBTYPE == 6499) {0} else {1}}
  3726. prop Writable :: if (GBL.CLKTYPE == 700) {0} else {self.iReMappable}
  3727. prop NoGen :: 1
  3728. prop Set :: ($a = $1, if ($a == Reset) {self.error("The Reset interrupt source cannot be remapped")} else {if ($a == Non_Maskable) {self.error("The Non-Maskable interrupt source cannot be remapped")} else {if ($a == Reserved) {self.error("The Reserved interrupt source cannot be remapped")} else {if (CLK.WHICHHWI == self && $a != self.iSource && CLK.USETIMER) {self.error("This interrupt is in use by CLK, settings may be changed in the CLK Manager")} else {if ($a == CLK.WHICHHWI.iSource && CLK.USETIMER == 1) {self.error("Interrupt source is in use by CLK, settings may be changed in the CLK Manager.")} else {$a.iHwi = self, self.iSource.iHwi = HWI_UNUSED, self.iSource = $1, self.iEventId = self.iSource.iIntrSelectNum, "ok"}}}}})
  3729. }
  3730. inst iEventId :: = self.iSource.iIntrSelectNum {
  3731. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3732. prop Label :: "interrupt selection number"
  3733. prop JSName :: "interruptSelectNumber"
  3734. prop Style :: 0x02
  3735. prop Visible :: if (GBL.CLKTYPE == 700) {0} else {1}
  3736. prop Writable :: if (GBL.CLKTYPE == 700) {0} else {self.iReMappable}
  3737. prop NoGen :: 1
  3738. }
  3739. inst iReMappable :: 1 {
  3740. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3741. prop Visible :: 0
  3742. prop Writable :: 0
  3743. prop NoGen :: 1
  3744. }
  3745. inst iIntrEnableMask :: 0 {
  3746. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  3747. prop Style :: 0x02
  3748. prop Visible :: 0
  3749. prop Writable :: 0
  3750. prop NoGen :: 1
  3751. }
  3752. inst function :: @HWI_unused {
  3753. prop JSName :: "fxn"
  3754. prop Visible :: 1
  3755. prop Writable :: if ((self.function == @RESERVED) || (self.client != "USER")) {0} else {1}
  3756. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  3757. prop NoGen :: 0
  3758. prop Set :: (self.function = $1, GlobalStatus.gDirty = 1, "ok")
  3759. }
  3760. inst iSTSObj :: HWI_RESETSTS {
  3761. prop Visible :: 0
  3762. prop Writable :: 0
  3763. prop NoGen :: 1
  3764. }
  3765. inst monitor :: "Nothing" {
  3766. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3767. prop Enum :: "Nothing,Data Value,Stack Pointer,Top of SW Stack,A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,B0,B1,B2,B3,B4,B5,B6,B7,B8,B9,B10,B11,B12,B13,B14,B15"
  3768. prop JSName :: "monitor"
  3769. prop Visible :: 1
  3770. prop Writable :: ((self.function != @HWI_unused && self.function != @RESERVED) && (self.iId != 0))
  3771. prop NoGen :: 0
  3772. prop Set :: (if ($1 != self.monitor) {$e = "ok", if ($1 == "Nothing") {if (($e = self.iSTSObj.Delete("HWI")) == "ok") {self.monitor = "Nothing", self.addr = self.name2addr(self.monitor), self.dataType = self.name2type(self.monitor)} } else {if (self.iSTSObj.iIsUsed || ($e = self.iSTSObj.Create("HWI")) == "ok") {self.monitor = $1, if (self.monitor == "Data Value") {self.addr = self.saveAddr, self.dataType = self.saveType} else {self.addr = self.name2addr(self.monitor), self.dataType = self.name2type(self.monitor)}} else {self.monitor = "Nothing"}}, $e} else {"ok"})
  3773. }
  3774. inst saveAddr :: 0 {
  3775. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  3776. prop Visible :: 0
  3777. prop Writable :: 0
  3778. prop NoGen :: 1
  3779. }
  3780. inst saveType :: "signed" {
  3781. prop Visible :: 0
  3782. prop Writable :: 0
  3783. prop NoGen :: 1
  3784. }
  3785. inst addr :: 0 {
  3786. prop JSName :: "addr"
  3787. prop Visible :: 1
  3788. prop Writable :: (if self.monitor == "Data Value" {1} else {0})
  3789. prop NoGen :: 0
  3790. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  3791. prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%04x"}
  3792. prop Set :: (self.addr = $1, self.saveAddr = $1, "ok")
  3793. }
  3794. inst dataType :: "signed" {
  3795. prop Visible :: 1
  3796. prop Writable :: (if self.monitor == "Nothing" {0} else {1})
  3797. prop NoGen :: 0
  3798. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3799. prop Enum :: "signed,unsigned"
  3800. prop Label :: "type"
  3801. prop JSName :: "dataType"
  3802. prop Set :: (if (self.monitor != "Nothing") {self.dataType = $1, self.saveType = $1, "ok"} else {self.error("The monitor field must set to modify this field")})
  3803. }
  3804. inst operation :: "STS_add(*addr)" {
  3805. prop Visible :: 1
  3806. prop Writable :: (if self.monitor == "Nothing" {0} else {1})
  3807. prop NoGen :: 0
  3808. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3809. prop JSName :: "operation"
  3810. prop Enum :: "STS_add(*addr),STS_delta(*addr),STS_add(-*addr),STS_delta(-*addr),STS_add(|*addr|),STS_delta(|*addr|)"
  3811. prop Set :: (if (self.monitor != "Nothing") {self.operation = $1, "ok"} else {self.error("The monitor field must set to modify this field")})
  3812. }
  3813. inst client :: "USER" {
  3814. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  3815. prop Visible :: 0
  3816. prop Writable :: 0
  3817. prop NoGen :: 0
  3818. }
  3819. inst iUseDispatcher :: 0 {
  3820. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3821. prop Label :: "Use Dispatcher"
  3822. prop JSName :: "useDispatcher"
  3823. prop Visible :: 1
  3824. prop Writable :: if (self.client == "USER") {1} else {0}
  3825. prop NoGen :: 0
  3826. prop TabName :: "Dispatcher"
  3827. prop Set :: (if (($1 == 1) && (self == HWI_NMI)) {self.error("HWI dispatcher can't be used for NMI")} else {self.iUseDispatcher = $1, "ok"})
  3828. }
  3829. inst iArg :: 0 {
  3830. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  3831. prop Label :: "Arg"
  3832. prop JSName :: "arg"
  3833. prop Visible :: 1
  3834. prop Writable :: if ((self.iUseDispatcher == 1) && (self.client == "USER")) {1} else {0}
  3835. prop NoGen :: 0
  3836. prop TabName :: "Dispatcher"
  3837. prop Set :: (self.iArg = $1, "ok")
  3838. }
  3839. inst iIntrMask :: "self" {
  3840. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3841. prop Label :: "Interrupt Mask"
  3842. prop JSName :: "interruptMask"
  3843. prop Enum :: "all,none,self,bitmask"
  3844. prop Visible :: 1
  3845. prop Writable :: if (self.iUseDispatcher == 1) {1} else {0}
  3846. prop NoGen :: 1
  3847. prop TabName :: "Dispatcher"
  3848. prop Set :: (if ($1 == "all") {self.IntrMask = 0xffff} else {if ($1 == "self") {self.IntrMask = 1 << self.iId} else {if ($1 == "none") {self.IntrMask = 0} }}, self.iIntrMask = $1, "ok")
  3849. }
  3850. inst IntrMask :: (1 << self.iId) {
  3851. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3852. prop Format :: "0x%04x"
  3853. prop Style :: 0x02
  3854. prop Label :: "Interrupt Bit Mask"
  3855. prop JSName :: "interruptBitMask"
  3856. prop Visible :: 1
  3857. prop Writable :: if ((self.iUseDispatcher == 1) && (self.iIntrMask == "bitmask")) {1} else {0}
  3858. prop NoGen :: 0
  3859. prop TabName :: "Dispatcher"
  3860. prop Set :: (if ($1 > 0xffff) {self.error("Invalid Number")} else {self.IntrMask = $1, "ok"})
  3861. }
  3862. inst iCacheControl :: 1 {
  3863. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3864. prop Label :: "Don't modify cache control"
  3865. prop JSName :: "cacheControl"
  3866. prop Visible :: 1
  3867. prop Writable :: 0
  3868. prop NoGen :: 1
  3869. prop TabName :: "Dispatcher"
  3870. prop Set :: (if ($1 == 1) {self.iCCBitMask = 0x1} else {self.iCCBitMask = (self.iPCCBitMask | self.iDCCBitMask)}, self.iCacheControl = $1, "ok")
  3871. }
  3872. inst iPCCMask :: (if (GBL.DSPSUBTYPE == 6200 || GBL.DSPSUBTYPE == 6700) {"mapped"} else {"cache enable"}) {
  3873. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3874. prop Enum :: "mapped,cache enable,cache freeze,cache bypass"
  3875. prop Label :: "Program Cache Control Mask"
  3876. prop JSName :: "progCacheMask"
  3877. prop Visible :: 1
  3878. prop Writable :: if ((self.iUseDispatcher == 1) && (self.iCacheControl == 0)) {1} else {0}
  3879. prop NoGen :: 1
  3880. prop TabName :: "Dispatcher"
  3881. prop Set :: (if ((GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6400) && $1 != "cache enable") {self.error("unsupported cache mode for 6x1x/64x device (cache enable must be selected)")} else {if ($1 == "mapped") {self.iPCCBitMask = 0x0000} else {if ($1 == "cache enable") {self.iPCCBitMask = 0x0040} else {if ($1 == "cache freeze") {self.iPCCBitMask = 0x0060} else {self.iPCCBitMask = 0x0080}}}, self.iPCCMask = $1, self.iCCBitMask = self.iPCCBitMask | self.iDCCBitMask, "ok"})
  3882. }
  3883. inst iPCCBitMask :: 0x0000 {
  3884. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3885. prop Visible :: 0
  3886. prop Writable :: 0
  3887. prop NoGen :: 1
  3888. }
  3889. inst iDCCMask :: (if (GBL.DSPSUBTYPE == 6200 || GBL.DSPSUBTYPE == 6700) {"mapped"} else {"cache enable"}) {
  3890. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  3891. prop Enum :: "mapped,cache enable,cache freeze,cache bypass"
  3892. prop Label :: "Data Cache Control Mask"
  3893. prop JSName :: "dataCacheMask"
  3894. prop Visible :: 1
  3895. prop Writable :: if ((self.iUseDispatcher == 1) && (self.iCacheControl == 0)) {1} else {0}
  3896. prop NoGen :: 1
  3897. prop TabName :: "Dispatcher"
  3898. prop Set :: (if ((GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6400) && $1 != "cache enable") {self.error("unsupported cache mode for 6x1x/64x device (cache enable must be selected)")} else {if ($1 == "mapped") {self.iDCCBitMask = 0x0000} else {if ($1 == "cache enable") {self.iDCCBitMask = 0x0008} else {if ($1 == "cache freeze") {self.iDCCBitMask = 0x000C} else {self.iDCCBitMask = 0x0010}}}, self.iDCCMask = $1, self.iCCBitMask = self.iPCCBitMask | self.iDCCBitMask, "ok"})
  3899. }
  3900. inst iDCCBitMask :: 0x0000 {
  3901. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3902. prop Visible :: 0
  3903. prop Writable :: 0
  3904. prop NoGen :: 1
  3905. }
  3906. inst iCCBitMask :: 1 {
  3907. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  3908. prop Visible :: 0
  3909. prop Writable :: 0
  3910. prop NoGen :: 0
  3911. }
  3912. inst iLoadTrack :: 0 {
  3913. prop Label :: "Support CPU load tracking"
  3914. prop JSName :: "loadTrack"
  3915. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  3916. prop Visible :: 0
  3917. prop Writable :: 0
  3918. prop NoGen :: 0
  3919. }
  3920. }
  3921. object HWI_RESET_STS :: STS {
  3922. param iComment :: "provides statistics for the RESET ISR"
  3923. param iIsUsed :: 0
  3924. param iId :: 0
  3925. param iDelUser :: "HWI"
  3926. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  3927. param prev :: 0
  3928. param format :: "%g"
  3929. param filter :: 1
  3930. param maxformat :: "%g"
  3931. param sumformat :: "%g"
  3932. param avgformat :: "%.2f"
  3933. param unittype :: "Not time based"
  3934. param operation :: "Nothing"
  3935. param iA :: 1
  3936. param iB :: 0
  3937. param iC :: 1
  3938. param prevhigh :: 0
  3939. param prevlow :: 0
  3940. }
  3941. object HWI_RESET :: HWI {
  3942. param iComment :: "defines function for the RESET ISR"
  3943. param iIsUsed :: 1
  3944. param iId :: 0
  3945. param iDelUser :: "HWI"
  3946. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  3947. param iSource :: Reset
  3948. param iReMappable :: 0
  3949. param iIntrEnableMask :: 1
  3950. param function :: @_c_int00
  3951. param iSTSObj :: HWI_RESET_STS
  3952. param monitor :: "Nothing"
  3953. param saveAddr :: 0
  3954. param saveType :: "signed"
  3955. param addr :: 0
  3956. param dataType :: "signed"
  3957. param operation :: "STS_add(*addr)"
  3958. param client :: "USER"
  3959. param iUseDispatcher :: 0
  3960. param iArg :: 0
  3961. param iIntrMask :: "self"
  3962. param IntrMask :: 1
  3963. param iCacheControl :: 1
  3964. param iPCCMask :: "cache enable"
  3965. param iPCCBitMask :: 0
  3966. param iDCCMask :: "cache enable"
  3967. param iDCCBitMask :: 0
  3968. param iCCBitMask :: 1
  3969. param iLoadTrack :: 0
  3970. }
  3971. object HWI_NMI_STS :: STS {
  3972. param iComment :: "provides statistics for the NMI ISR"
  3973. param iIsUsed :: 0
  3974. param iId :: 0
  3975. param iDelUser :: "HWI"
  3976. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  3977. param prev :: 0
  3978. param format :: "%g"
  3979. param filter :: 1
  3980. param maxformat :: "%g"
  3981. param sumformat :: "%g"
  3982. param avgformat :: "%.2f"
  3983. param unittype :: "Not time based"
  3984. param operation :: "Nothing"
  3985. param iA :: 1
  3986. param iB :: 0
  3987. param iC :: 1
  3988. param prevhigh :: 0
  3989. param prevlow :: 0
  3990. }
  3991. object HWI_NMI :: HWI {
  3992. param iComment :: "defines function for the NMI ISR"
  3993. param iIsUsed :: 1
  3994. param iId :: 1
  3995. param iDelUser :: "HWI"
  3996. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  3997. param iSource :: Non_Maskable
  3998. param iReMappable :: 0
  3999. param iIntrEnableMask :: 2
  4000. param function :: @HWI_unused
  4001. param iSTSObj :: HWI_NMI_STS
  4002. param monitor :: "Nothing"
  4003. param saveAddr :: 0
  4004. param saveType :: "signed"
  4005. param addr :: 0
  4006. param dataType :: "signed"
  4007. param operation :: "STS_add(*addr)"
  4008. param client :: "USER"
  4009. param iUseDispatcher :: 0
  4010. param iArg :: 0
  4011. param iIntrMask :: "self"
  4012. param IntrMask :: 2
  4013. param iCacheControl :: 1
  4014. param iPCCMask :: "cache enable"
  4015. param iPCCBitMask :: 0
  4016. param iDCCMask :: "cache enable"
  4017. param iDCCBitMask :: 0
  4018. param iCCBitMask :: 1
  4019. param iLoadTrack :: 0
  4020. }
  4021. object HWI_RESERVED0_STS :: STS {
  4022. param iComment :: "This STS object is being used by a HWI object and cannot be deleted"
  4023. param iIsUsed :: 0
  4024. param iId :: 0
  4025. param iDelUser :: "HWI"
  4026. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4027. param prev :: 0
  4028. param format :: "%g"
  4029. param filter :: 1
  4030. param maxformat :: "%g"
  4031. param sumformat :: "%g"
  4032. param avgformat :: "%.2f"
  4033. param unittype :: "Not time based"
  4034. param operation :: "Nothing"
  4035. param iA :: 1
  4036. param iB :: 0
  4037. param iC :: 1
  4038. param prevhigh :: 0
  4039. param prevlow :: 0
  4040. }
  4041. object HWI_RESERVED0 :: HWI {
  4042. param iComment :: "RESERVED for RTDX"
  4043. param iIsUsed :: 1
  4044. param iId :: 2
  4045. param iDelUser :: "HWI"
  4046. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4047. param iSource :: Reserved
  4048. param iReMappable :: 0
  4049. param iIntrEnableMask :: 4
  4050. param function :: @RESERVED
  4051. param iSTSObj :: HWI_RESERVED0_STS
  4052. param monitor :: "Nothing"
  4053. param saveAddr :: 0
  4054. param saveType :: "signed"
  4055. param addr :: 0
  4056. param dataType :: "signed"
  4057. param operation :: "STS_add(*addr)"
  4058. param client :: "RTDX"
  4059. param iUseDispatcher :: 0
  4060. param iArg :: 0
  4061. param iIntrMask :: "self"
  4062. param IntrMask :: 4
  4063. param iCacheControl :: 1
  4064. param iPCCMask :: "cache enable"
  4065. param iPCCBitMask :: 0
  4066. param iDCCMask :: "cache enable"
  4067. param iDCCBitMask :: 0
  4068. param iCCBitMask :: 1
  4069. param iLoadTrack :: 0
  4070. }
  4071. object HWI_RESERVED1_STS :: STS {
  4072. param iComment :: "This STS object is being used by a HWI object and cannot be deleted"
  4073. param iIsUsed :: 0
  4074. param iId :: 0
  4075. param iDelUser :: "HWI"
  4076. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4077. param prev :: 0
  4078. param format :: "%g"
  4079. param filter :: 1
  4080. param maxformat :: "%g"
  4081. param sumformat :: "%g"
  4082. param avgformat :: "%.2f"
  4083. param unittype :: "Not time based"
  4084. param operation :: "Nothing"
  4085. param iA :: 1
  4086. param iB :: 0
  4087. param iC :: 1
  4088. param prevhigh :: 0
  4089. param prevlow :: 0
  4090. }
  4091. object HWI_RESERVED1 :: HWI {
  4092. param iComment :: "RESERVED for RTDX"
  4093. param iIsUsed :: 1
  4094. param iId :: 3
  4095. param iDelUser :: "HWI"
  4096. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4097. param iSource :: Reserved
  4098. param iReMappable :: 0
  4099. param iIntrEnableMask :: 8
  4100. param function :: @_RTDX_Poll
  4101. param iSTSObj :: HWI_RESERVED1_STS
  4102. param monitor :: "Nothing"
  4103. param saveAddr :: 0
  4104. param saveType :: "signed"
  4105. param addr :: 0
  4106. param dataType :: "signed"
  4107. param operation :: "STS_add(*addr)"
  4108. param client :: "RTDX"
  4109. param iUseDispatcher :: 1
  4110. param iArg :: 0
  4111. param iIntrMask :: "self"
  4112. param IntrMask :: 8
  4113. param iCacheControl :: 1
  4114. param iPCCMask :: "cache enable"
  4115. param iPCCBitMask :: 0
  4116. param iDCCMask :: "cache enable"
  4117. param iDCCBitMask :: 0
  4118. param iCCBitMask :: 1
  4119. param iLoadTrack :: 0
  4120. }
  4121. object HWI_INT4_STS :: STS {
  4122. param iComment :: "provides statistics for the INT4 ISR"
  4123. param iIsUsed :: 0
  4124. param iId :: 0
  4125. param iDelUser :: "HWI"
  4126. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4127. param prev :: 0
  4128. param format :: "%g"
  4129. param filter :: 1
  4130. param maxformat :: "%g"
  4131. param sumformat :: "%g"
  4132. param avgformat :: "%.2f"
  4133. param unittype :: "Not time based"
  4134. param operation :: "Nothing"
  4135. param iA :: 1
  4136. param iB :: 0
  4137. param iC :: 1
  4138. param prevhigh :: 0
  4139. param prevlow :: 0
  4140. }
  4141. object HWI_INT4 :: HWI {
  4142. param iComment :: "defines the INT4 Interrupt"
  4143. param iIsUsed :: 1
  4144. param iId :: 4
  4145. param iDelUser :: "HWI"
  4146. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4147. param iSource :: External_Pin_4
  4148. param iReMappable :: 1
  4149. param iIntrEnableMask :: 16
  4150. param function :: @HWI_unused
  4151. param iSTSObj :: HWI_INT4_STS
  4152. param monitor :: "Nothing"
  4153. param saveAddr :: 0
  4154. param saveType :: "signed"
  4155. param addr :: 0
  4156. param dataType :: "signed"
  4157. param operation :: "STS_add(*addr)"
  4158. param client :: "USER"
  4159. param iUseDispatcher :: 0
  4160. param iArg :: 0
  4161. param iIntrMask :: "self"
  4162. param IntrMask :: 16
  4163. param iCacheControl :: 1
  4164. param iPCCMask :: "cache enable"
  4165. param iPCCBitMask :: 0
  4166. param iDCCMask :: "cache enable"
  4167. param iDCCBitMask :: 0
  4168. param iCCBitMask :: 1
  4169. param iLoadTrack :: 0
  4170. }
  4171. object HWI_INT5_STS :: STS {
  4172. param iComment :: "provides statistics for the INT5 ISR"
  4173. param iIsUsed :: 0
  4174. param iId :: 0
  4175. param iDelUser :: "HWI"
  4176. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4177. param prev :: 0
  4178. param format :: "%g"
  4179. param filter :: 1
  4180. param maxformat :: "%g"
  4181. param sumformat :: "%g"
  4182. param avgformat :: "%.2f"
  4183. param unittype :: "Not time based"
  4184. param operation :: "Nothing"
  4185. param iA :: 1
  4186. param iB :: 0
  4187. param iC :: 1
  4188. param prevhigh :: 0
  4189. param prevlow :: 0
  4190. }
  4191. object HWI_INT5 :: HWI {
  4192. param iComment :: "defines the INT5 Interrupt"
  4193. param iIsUsed :: 1
  4194. param iId :: 5
  4195. param iDelUser :: "HWI"
  4196. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4197. param iSource :: External_Pin_5
  4198. param iReMappable :: 1
  4199. param iIntrEnableMask :: 32
  4200. param function :: @HWI_unused
  4201. param iSTSObj :: HWI_INT5_STS
  4202. param monitor :: "Nothing"
  4203. param saveAddr :: 0
  4204. param saveType :: "signed"
  4205. param addr :: 0
  4206. param dataType :: "signed"
  4207. param operation :: "STS_add(*addr)"
  4208. param client :: "USER"
  4209. param iUseDispatcher :: 0
  4210. param iArg :: 0
  4211. param iIntrMask :: "self"
  4212. param IntrMask :: 32
  4213. param iCacheControl :: 1
  4214. param iPCCMask :: "cache enable"
  4215. param iPCCBitMask :: 0
  4216. param iDCCMask :: "cache enable"
  4217. param iDCCBitMask :: 0
  4218. param iCCBitMask :: 1
  4219. param iLoadTrack :: 0
  4220. }
  4221. object HWI_INT6_STS :: STS {
  4222. param iComment :: "provides statistics for the INT6 ISR"
  4223. param iIsUsed :: 0
  4224. param iId :: 0
  4225. param iDelUser :: "HWI"
  4226. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4227. param prev :: 0
  4228. param format :: "%g"
  4229. param filter :: 1
  4230. param maxformat :: "%g"
  4231. param sumformat :: "%g"
  4232. param avgformat :: "%.2f"
  4233. param unittype :: "Not time based"
  4234. param operation :: "Nothing"
  4235. param iA :: 1
  4236. param iB :: 0
  4237. param iC :: 1
  4238. param prevhigh :: 0
  4239. param prevlow :: 0
  4240. }
  4241. object HWI_INT6 :: HWI {
  4242. param iComment :: "defines the INT6 Interrupt"
  4243. param iIsUsed :: 1
  4244. param iId :: 6
  4245. param iDelUser :: "HWI"
  4246. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4247. param iSource :: External_Pin_6
  4248. param iReMappable :: 1
  4249. param iIntrEnableMask :: 64
  4250. param function :: @HWI_unused
  4251. param iSTSObj :: HWI_INT6_STS
  4252. param monitor :: "Nothing"
  4253. param saveAddr :: 0
  4254. param saveType :: "signed"
  4255. param addr :: 0
  4256. param dataType :: "signed"
  4257. param operation :: "STS_add(*addr)"
  4258. param client :: "USER"
  4259. param iUseDispatcher :: 0
  4260. param iArg :: 0
  4261. param iIntrMask :: "self"
  4262. param IntrMask :: 64
  4263. param iCacheControl :: 1
  4264. param iPCCMask :: "cache enable"
  4265. param iPCCBitMask :: 0
  4266. param iDCCMask :: "cache enable"
  4267. param iDCCBitMask :: 0
  4268. param iCCBitMask :: 1
  4269. param iLoadTrack :: 0
  4270. }
  4271. object HWI_INT7_STS :: STS {
  4272. param iComment :: "provides statistics for the INT7 ISR"
  4273. param iIsUsed :: 0
  4274. param iId :: 0
  4275. param iDelUser :: "HWI"
  4276. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4277. param prev :: 0
  4278. param format :: "%g"
  4279. param filter :: 1
  4280. param maxformat :: "%g"
  4281. param sumformat :: "%g"
  4282. param avgformat :: "%.2f"
  4283. param unittype :: "Not time based"
  4284. param operation :: "Nothing"
  4285. param iA :: 1
  4286. param iB :: 0
  4287. param iC :: 1
  4288. param prevhigh :: 0
  4289. param prevlow :: 0
  4290. }
  4291. object HWI_INT7 :: HWI {
  4292. param iComment :: "defines the INT7 Interrupt"
  4293. param iIsUsed :: 1
  4294. param iId :: 7
  4295. param iDelUser :: "HWI"
  4296. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4297. param iSource :: External_Pin_7
  4298. param iReMappable :: 1
  4299. param iIntrEnableMask :: 128
  4300. param function :: @HWI_unused
  4301. param iSTSObj :: HWI_INT7_STS
  4302. param monitor :: "Nothing"
  4303. param saveAddr :: 0
  4304. param saveType :: "signed"
  4305. param addr :: 0
  4306. param dataType :: "signed"
  4307. param operation :: "STS_add(*addr)"
  4308. param client :: "USER"
  4309. param iUseDispatcher :: 0
  4310. param iArg :: 0
  4311. param iIntrMask :: "self"
  4312. param IntrMask :: 128
  4313. param iCacheControl :: 1
  4314. param iPCCMask :: "cache enable"
  4315. param iPCCBitMask :: 0
  4316. param iDCCMask :: "cache enable"
  4317. param iDCCBitMask :: 0
  4318. param iCCBitMask :: 1
  4319. param iLoadTrack :: 0
  4320. }
  4321. object HWI_INT8_STS :: STS {
  4322. param iComment :: "provides statistics for the INT8 ISR"
  4323. param iIsUsed :: 0
  4324. param iId :: 0
  4325. param iDelUser :: "HWI"
  4326. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4327. param prev :: 0
  4328. param format :: "%g"
  4329. param filter :: 1
  4330. param maxformat :: "%g"
  4331. param sumformat :: "%g"
  4332. param avgformat :: "%.2f"
  4333. param unittype :: "Not time based"
  4334. param operation :: "Nothing"
  4335. param iA :: 1
  4336. param iB :: 0
  4337. param iC :: 1
  4338. param prevhigh :: 0
  4339. param prevlow :: 0
  4340. }
  4341. object HWI_INT8 :: HWI {
  4342. param iComment :: "defines the INT8 Interrupt"
  4343. param iIsUsed :: 1
  4344. param iId :: 8
  4345. param iDelUser :: "HWI"
  4346. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4347. param iSource :: EDMA_Controller
  4348. param iReMappable :: 1
  4349. param iIntrEnableMask :: 256
  4350. param function :: @HWI_unused
  4351. param iSTSObj :: HWI_INT8_STS
  4352. param monitor :: "Nothing"
  4353. param saveAddr :: 0
  4354. param saveType :: "signed"
  4355. param addr :: 0
  4356. param dataType :: "signed"
  4357. param operation :: "STS_add(*addr)"
  4358. param client :: "USER"
  4359. param iUseDispatcher :: 0
  4360. param iArg :: 0
  4361. param iIntrMask :: "self"
  4362. param IntrMask :: 256
  4363. param iCacheControl :: 1
  4364. param iPCCMask :: "cache enable"
  4365. param iPCCBitMask :: 0
  4366. param iDCCMask :: "cache enable"
  4367. param iDCCBitMask :: 0
  4368. param iCCBitMask :: 1
  4369. param iLoadTrack :: 0
  4370. }
  4371. object HWI_INT9_STS :: STS {
  4372. param iComment :: "provides statistics for the INT9 ISR"
  4373. param iIsUsed :: 0
  4374. param iId :: 0
  4375. param iDelUser :: "HWI"
  4376. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4377. param prev :: 0
  4378. param format :: "%g"
  4379. param filter :: 1
  4380. param maxformat :: "%g"
  4381. param sumformat :: "%g"
  4382. param avgformat :: "%.2f"
  4383. param unittype :: "Not time based"
  4384. param operation :: "Nothing"
  4385. param iA :: 1
  4386. param iB :: 0
  4387. param iC :: 1
  4388. param prevhigh :: 0
  4389. param prevlow :: 0
  4390. }
  4391. object HWI_INT9 :: HWI {
  4392. param iComment :: "defines the INT9 Interrupt"
  4393. param iIsUsed :: 1
  4394. param iId :: 9
  4395. param iDelUser :: "HWI"
  4396. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4397. param iSource :: JTAGRTDX9
  4398. param iReMappable :: 0
  4399. param iIntrEnableMask :: 520
  4400. param function :: @_RTDX_Poll
  4401. param iSTSObj :: HWI_INT9_STS
  4402. param monitor :: "Nothing"
  4403. param saveAddr :: 0
  4404. param saveType :: "signed"
  4405. param addr :: 0
  4406. param dataType :: "signed"
  4407. param operation :: "STS_add(*addr)"
  4408. param client :: "RTDX"
  4409. param iUseDispatcher :: 1
  4410. param iArg :: 0
  4411. param iIntrMask :: "bitmask"
  4412. param IntrMask :: 520
  4413. param iCacheControl :: 1
  4414. param iPCCMask :: "cache enable"
  4415. param iPCCBitMask :: 0
  4416. param iDCCMask :: "cache enable"
  4417. param iDCCBitMask :: 0
  4418. param iCCBitMask :: 1
  4419. param iLoadTrack :: 0
  4420. }
  4421. object HWI_INT10_STS :: STS {
  4422. param iComment :: "provides statistics for the INT10 ISR"
  4423. param iIsUsed :: 0
  4424. param iId :: 0
  4425. param iDelUser :: "HWI"
  4426. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4427. param prev :: 0
  4428. param format :: "%g"
  4429. param filter :: 1
  4430. param maxformat :: "%g"
  4431. param sumformat :: "%g"
  4432. param avgformat :: "%.2f"
  4433. param unittype :: "Not time based"
  4434. param operation :: "Nothing"
  4435. param iA :: 1
  4436. param iB :: 0
  4437. param iC :: 1
  4438. param prevhigh :: 0
  4439. param prevlow :: 0
  4440. }
  4441. object HWI_INT10 :: HWI {
  4442. param iComment :: "defines the INT10 Interrupt"
  4443. param iIsUsed :: 1
  4444. param iId :: 10
  4445. param iDelUser :: "HWI"
  4446. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4447. param iSource :: Timer_2
  4448. param iReMappable :: 1
  4449. param iIntrEnableMask :: 1024
  4450. param function :: @HWI_unused
  4451. param iSTSObj :: HWI_INT10_STS
  4452. param monitor :: "Nothing"
  4453. param saveAddr :: 0
  4454. param saveType :: "signed"
  4455. param addr :: 0
  4456. param dataType :: "signed"
  4457. param operation :: "STS_add(*addr)"
  4458. param client :: "USER"
  4459. param iUseDispatcher :: 0
  4460. param iArg :: 0
  4461. param iIntrMask :: "self"
  4462. param IntrMask :: 1024
  4463. param iCacheControl :: 1
  4464. param iPCCMask :: "cache enable"
  4465. param iPCCBitMask :: 0
  4466. param iDCCMask :: "cache enable"
  4467. param iDCCBitMask :: 0
  4468. param iCCBitMask :: 1
  4469. param iLoadTrack :: 0
  4470. }
  4471. object HWI_INT11_STS :: STS {
  4472. param iComment :: "provides statistics for the INT11 ISR"
  4473. param iIsUsed :: 0
  4474. param iId :: 0
  4475. param iDelUser :: "HWI"
  4476. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4477. param prev :: 0
  4478. param format :: "%g"
  4479. param filter :: 1
  4480. param maxformat :: "%g"
  4481. param sumformat :: "%g"
  4482. param avgformat :: "%.2f"
  4483. param unittype :: "Not time based"
  4484. param operation :: "Nothing"
  4485. param iA :: 1
  4486. param iB :: 0
  4487. param iC :: 1
  4488. param prevhigh :: 0
  4489. param prevlow :: 0
  4490. }
  4491. object HWI_INT11 :: HWI {
  4492. param iComment :: "defines the INT11 Interrupt"
  4493. param iIsUsed :: 1
  4494. param iId :: 11
  4495. param iDelUser :: "HWI"
  4496. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4497. param iSource :: MCSP_0_Receive
  4498. param iReMappable :: 1
  4499. param iIntrEnableMask :: 2048
  4500. param function :: @HWI_unused
  4501. param iSTSObj :: HWI_INT11_STS
  4502. param monitor :: "Nothing"
  4503. param saveAddr :: 0
  4504. param saveType :: "signed"
  4505. param addr :: 0
  4506. param dataType :: "signed"
  4507. param operation :: "STS_add(*addr)"
  4508. param client :: "USER"
  4509. param iUseDispatcher :: 0
  4510. param iArg :: 0
  4511. param iIntrMask :: "self"
  4512. param IntrMask :: 2048
  4513. param iCacheControl :: 1
  4514. param iPCCMask :: "cache enable"
  4515. param iPCCBitMask :: 0
  4516. param iDCCMask :: "cache enable"
  4517. param iDCCBitMask :: 0
  4518. param iCCBitMask :: 1
  4519. param iLoadTrack :: 0
  4520. }
  4521. object HWI_INT12_STS :: STS {
  4522. param iComment :: "provides statistics for the INT12 ISR"
  4523. param iIsUsed :: 0
  4524. param iId :: 0
  4525. param iDelUser :: "HWI"
  4526. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4527. param prev :: 0
  4528. param format :: "%g"
  4529. param filter :: 1
  4530. param maxformat :: "%g"
  4531. param sumformat :: "%g"
  4532. param avgformat :: "%.2f"
  4533. param unittype :: "Not time based"
  4534. param operation :: "Nothing"
  4535. param iA :: 1
  4536. param iB :: 0
  4537. param iC :: 1
  4538. param prevhigh :: 0
  4539. param prevlow :: 0
  4540. }
  4541. object HWI_INT12 :: HWI {
  4542. param iComment :: "defines the INT12 Interrupt"
  4543. param iIsUsed :: 1
  4544. param iId :: 12
  4545. param iDelUser :: "HWI"
  4546. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4547. param iSource :: MCSP_1_Transmit
  4548. param iReMappable :: 1
  4549. param iIntrEnableMask :: 4096
  4550. param function :: @HWI_unused
  4551. param iSTSObj :: HWI_INT12_STS
  4552. param monitor :: "Nothing"
  4553. param saveAddr :: 0
  4554. param saveType :: "signed"
  4555. param addr :: 0
  4556. param dataType :: "signed"
  4557. param operation :: "STS_add(*addr)"
  4558. param client :: "USER"
  4559. param iUseDispatcher :: 0
  4560. param iArg :: 0
  4561. param iIntrMask :: "self"
  4562. param IntrMask :: 4096
  4563. param iCacheControl :: 1
  4564. param iPCCMask :: "cache enable"
  4565. param iPCCBitMask :: 0
  4566. param iDCCMask :: "cache enable"
  4567. param iDCCBitMask :: 0
  4568. param iCCBitMask :: 1
  4569. param iLoadTrack :: 0
  4570. }
  4571. object HWI_INT13_STS :: STS {
  4572. param iComment :: "provides statistics for the INT13 ISR"
  4573. param iIsUsed :: 0
  4574. param iId :: 0
  4575. param iDelUser :: "HWI"
  4576. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4577. param prev :: 0
  4578. param format :: "%g"
  4579. param filter :: 1
  4580. param maxformat :: "%g"
  4581. param sumformat :: "%g"
  4582. param avgformat :: "%.2f"
  4583. param unittype :: "Not time based"
  4584. param operation :: "Nothing"
  4585. param iA :: 1
  4586. param iB :: 0
  4587. param iC :: 1
  4588. param prevhigh :: 0
  4589. param prevlow :: 0
  4590. }
  4591. object HWI_INT13 :: HWI {
  4592. param iComment :: "defines the INT13 Interrupt"
  4593. param iIsUsed :: 1
  4594. param iId :: 13
  4595. param iDelUser :: "HWI"
  4596. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4597. param iSource :: Host_Port_Host_to_DSP
  4598. param iReMappable :: 1
  4599. param iIntrEnableMask :: 8192
  4600. param function :: @HWI_unused
  4601. param iSTSObj :: HWI_INT13_STS
  4602. param monitor :: "Nothing"
  4603. param saveAddr :: 0
  4604. param saveType :: "signed"
  4605. param addr :: 0
  4606. param dataType :: "signed"
  4607. param operation :: "STS_add(*addr)"
  4608. param client :: "USER"
  4609. param iUseDispatcher :: 0
  4610. param iArg :: 0
  4611. param iIntrMask :: "self"
  4612. param IntrMask :: 8192
  4613. param iCacheControl :: 1
  4614. param iPCCMask :: "cache enable"
  4615. param iPCCBitMask :: 0
  4616. param iDCCMask :: "cache enable"
  4617. param iDCCBitMask :: 0
  4618. param iCCBitMask :: 1
  4619. param iLoadTrack :: 0
  4620. }
  4621. object HWI_INT14_STS :: STS {
  4622. param iComment :: "provides statistics for the INT14 ISR"
  4623. param iIsUsed :: 0
  4624. param iId :: 0
  4625. param iDelUser :: "HWI"
  4626. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4627. param prev :: 0
  4628. param format :: "%g"
  4629. param filter :: 1
  4630. param maxformat :: "%g"
  4631. param sumformat :: "%g"
  4632. param avgformat :: "%.2f"
  4633. param unittype :: "Not time based"
  4634. param operation :: "Nothing"
  4635. param iA :: 1
  4636. param iB :: 0
  4637. param iC :: 1
  4638. param prevhigh :: 0
  4639. param prevlow :: 0
  4640. }
  4641. object HWI_INT14 :: HWI {
  4642. param iComment :: "defines the INT14 Interrupt"
  4643. param iIsUsed :: 1
  4644. param iId :: 14
  4645. param iDelUser :: "HWI"
  4646. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4647. param iSource :: Timer_0
  4648. param iEventId :: 1
  4649. param iReMappable :: 1
  4650. param iIntrEnableMask :: 16384
  4651. param function :: @CLK_F_isr
  4652. param iSTSObj :: HWI_INT14_STS
  4653. param monitor :: "Nothing"
  4654. param saveAddr :: 0
  4655. param saveType :: "signed"
  4656. param addr :: 0
  4657. param dataType :: "signed"
  4658. param operation :: "STS_add(*addr)"
  4659. param client :: "CLK"
  4660. param iUseDispatcher :: 1
  4661. param iArg :: @CLK_A_TABBEG
  4662. param iIntrMask :: "self"
  4663. param IntrMask :: 16384
  4664. param iCacheControl :: 1
  4665. param iPCCMask :: "cache enable"
  4666. param iPCCBitMask :: 0
  4667. param iDCCMask :: "cache enable"
  4668. param iDCCBitMask :: 0
  4669. param iCCBitMask :: 1
  4670. param iLoadTrack :: 0
  4671. }
  4672. object HWI_INT15_STS :: STS {
  4673. param iComment :: "provides statistics for the INT15 ISR"
  4674. param iIsUsed :: 0
  4675. param iId :: 0
  4676. param iDelUser :: "HWI"
  4677. param iDelMsg :: "This STS object is being used by a HWI object and cannot be deleted"
  4678. param prev :: 0
  4679. param format :: "%g"
  4680. param filter :: 1
  4681. param maxformat :: "%g"
  4682. param sumformat :: "%g"
  4683. param avgformat :: "%.2f"
  4684. param unittype :: "Not time based"
  4685. param operation :: "Nothing"
  4686. param iA :: 1
  4687. param iB :: 0
  4688. param iC :: 1
  4689. param prevhigh :: 0
  4690. param prevlow :: 0
  4691. }
  4692. object HWI_INT15 :: HWI {
  4693. param iComment :: "defines the INT15 Interrupt"
  4694. param iIsUsed :: 1
  4695. param iId :: 15
  4696. param iDelUser :: "HWI"
  4697. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4698. param iSource :: Timer_1
  4699. param iEventId :: 2
  4700. param iReMappable :: 1
  4701. param iIntrEnableMask :: 32768
  4702. param function :: @HWI_unused
  4703. param iSTSObj :: HWI_INT15_STS
  4704. param monitor :: "Nothing"
  4705. param saveAddr :: 0
  4706. param saveType :: "signed"
  4707. param addr :: 0
  4708. param dataType :: "signed"
  4709. param operation :: "STS_add(*addr)"
  4710. param client :: "USER"
  4711. param iUseDispatcher :: 0
  4712. param iArg :: 0
  4713. param iIntrMask :: "self"
  4714. param IntrMask :: 32768
  4715. param iCacheControl :: 1
  4716. param iPCCMask :: "cache enable"
  4717. param iPCCBitMask :: 0
  4718. param iDCCMask :: "cache enable"
  4719. param iDCCBitMask :: 0
  4720. param iCCBitMask :: 1
  4721. param iLoadTrack :: 0
  4722. }
  4723. object HWI_UNUSED :: HWI {
  4724. param iComment :: "a dummy DSP interrupt for unused sources"
  4725. param iIsUsed :: 0
  4726. param iId :: 16
  4727. param iDelUser :: "HWI"
  4728. param iDelMsg :: "Hardware interrupt objects cannot be deleted"
  4729. param iSource :: Reset
  4730. param iReMappable :: 1
  4731. param iIntrEnableMask :: 0
  4732. param function :: @HWI_unused
  4733. param iSTSObj :: HWI_INT15_STS
  4734. param monitor :: "Nothing"
  4735. param saveAddr :: 0
  4736. param saveType :: "signed"
  4737. param addr :: 0
  4738. param dataType :: "signed"
  4739. param operation :: "STS_add(*addr)"
  4740. param client :: "USER"
  4741. param iUseDispatcher :: 0
  4742. param iArg :: 0
  4743. param iIntrMask :: "self"
  4744. param IntrMask :: 65536
  4745. param iCacheControl :: 1
  4746. param iPCCMask :: "cache enable"
  4747. param iPCCBitMask :: 0
  4748. param iDCCMask :: "cache enable"
  4749. param iDCCBitMask :: 0
  4750. param iCCBitMask :: 1
  4751. param iLoadTrack :: 0
  4752. }
  4753. type SWI {
  4754. isa ObjectMgr
  4755. prop name :: "SWI"
  4756. prop Label :: "SWI - Software Interrupt Manager"
  4757. prop IsContainedIn :: SCH
  4758. prop DependsOn :: "HWI,SIO,HST,MSGQ"
  4759. prop GlobalIcon :: 123
  4760. prop InstanceIcon :: 124
  4761. prop InstanceHelpTopic :: (211)
  4762. prop GlobalHelpTopic :: (111)
  4763. prop HighTimeBased :: (if CLK.HIRES == 1 {1} else {0})
  4764. prop LowTimeBased :: (if CLK.HIRES == 1 {0} else {1})
  4765. prop uType :: (if (self.HighTimeBased()) {$a = 0} else {if (self.LowTimeBased()) {$a = 1} else {$a = 2}}, $a)
  4766. prop STSGetMaxFmt :: (if (SWI.STSUNITS == "raw") {if CLK.HIRES {"%g inst"} else {"%g ints"}} else {if SWI.STSUNITS == "microseconds" {"%.1f us"} else {"%.2f ms"}})
  4767. prop STSGetSumFmt :: (SWI.STSGetMaxFmt())
  4768. prop STSGetAvgFmt :: (if (SWI.STSUNITS == "raw") {if CLK.HIRES {"%.2f inst"} else {"%.2f ints"}} else {if SWI.STSUNITS == "microseconds" {"%.1f us"} else {"%.2f ms"}})
  4769. prop STSFilterMaxMult :: ($a = 1)
  4770. prop STSFilterSumMult :: (SWI.STSFilterMaxMult($1))
  4771. prop GetPriority :: (self.pri)
  4772. prop objectSize :: (if ((GBL.DSPTYPE == 54 && GBL.FARMODE == 0) || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL")) {$a = (12 * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (14 * 4)} , if (GBL.DSPTYPE == 28 || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE")) {$a = (20 * 4)} , if (GBL.DSPTYPE == 62) {$a = (11 * 4)} , $a)
  4773. prop GenLinkPrologue :: ("SECTIONS {%4t\n.%1L: {%8t\n %1U_A_TABBEG = .;\n %4S\n %1U_A_TABEND = .;\n %1U_A_TABLEN = (. - %1U_A_TABBEG) / %2d;%4t\n} > %3s%5s\0, name, objSize, memSeg, linkString, pageString")
  4774. prop GenLinkEpilogue :: ("%0t}\n\0")
  4775. prop linkString :: if self.gNumOf > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  4776. prop pageString :: if GBL.DSPTYPE == 62 {""} else {if GBL.DSPTYPE == 55 {(if SWI.OBJMEMSEG.space() == "code" {" PAGE 0"} else {if SWI.OBJMEMSEG.space() == "data" {" PAGE 1"} else {if SWI.OBJMEMSEG.space() == "io" {" PAGE 2"} else {" PAGE 0"}}})} else {" PAGE 1"}}
  4777. prop memSeg :: SWI.OBJMEMSEG
  4778. prop objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  4779. prop maxObjs :: (32767)
  4780. prop dataSize :: (self.objectSize() * SWI.gNumOf)
  4781. prop localCanCreate :: (if (GlobalStatus.MinStackSize >= MEM.STACKSIZE) {self.error("System stack size (see MEM) is too small to support a new SWI priority level.")} else {"ok"})
  4782. prop localCreate :: (STS.gNumEmbed += 1, SWI.EXECFXN = @SWI_F_exec, SWI.RUNFXN = @SWI_F_run, "ok")
  4783. prop localDelete :: (STS.gNumEmbed -= 1, if (self.gNumOf == 1) {SWI.EXECFXN = @FXN_F_nop, SWI.RUNFXN = @FXN_F_nop} , "ok")
  4784. prop SortByField :: "pri"
  4785. prop SortGroups :: 15
  4786. prop InstancePropertyPage :: ("{B7240DEC-AA51-11cf-9BFE-0000C0AC14C7}")
  4787. prop GlobalPropertyPage :: ("{B7240DED-AA51-11cf-9BFE-0000C0AC14C7}")
  4788. prop cGen :: 1
  4789. prop cHeaderName :: if self.gNumOf > 0 {"swi.h"} else {""}
  4790. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far SWI_Obj %0r;\n\0"} else {"extern SWI_Obj %0r;\n\0"})
  4791. global gUser :: "USER" {
  4792. prop Visible :: 0
  4793. prop Writable :: 0
  4794. prop NoGen :: 1
  4795. }
  4796. global gSetOf :: 0 {
  4797. prop Visible :: 0
  4798. prop Writable :: 0
  4799. prop NoGen :: 1
  4800. }
  4801. global gNumOf :: 1 {
  4802. prop Visible :: 0
  4803. prop Writable :: 0
  4804. prop NoGen :: 1
  4805. }
  4806. global gDirty :: 1 {
  4807. prop Visible :: 0
  4808. prop Writable :: 0
  4809. prop NoGen :: 1
  4810. }
  4811. global gInitFlag :: 1 {
  4812. prop Visible :: 0
  4813. prop Writable :: 0
  4814. prop NoGen :: 1
  4815. }
  4816. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  4817. prop Visible :: 0
  4818. prop Writable :: 0
  4819. prop NoGen :: 1
  4820. }
  4821. global EHOOKFXN :: @GBL_NULL {
  4822. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  4823. prop Label :: "Enable Scheduler and Return to Idle Function"
  4824. prop Visible :: 0
  4825. prop Writable :: 1
  4826. prop NoGen :: 0
  4827. }
  4828. global IHOOKFXN :: @GBL_NULL {
  4829. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  4830. prop Label :: "Exit Scheduler and Return to Idle Function"
  4831. prop Visible :: 0
  4832. prop Writable :: 1
  4833. prop NoGen :: 0
  4834. }
  4835. global EXECFXN :: @SWI_F_exec {
  4836. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  4837. prop Label :: "Configured SWI executive"
  4838. prop Visible :: 0
  4839. prop Writable :: 0
  4840. prop NoGen :: 0
  4841. }
  4842. global RUNFXN :: @SWI_F_run {
  4843. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  4844. prop Label :: "Configured SWI executive body"
  4845. prop Visible :: 0
  4846. prop Writable :: 0
  4847. prop NoGen :: 0
  4848. }
  4849. global OBJMEMSEG :: IRAM {
  4850. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  4851. prop MemberType :: MEM
  4852. prop MemberTest :: MEM.dataMember($1)
  4853. prop Label :: "Object Memory"
  4854. prop JSName :: "OBJMEMSEG"
  4855. prop Visible :: 1
  4856. prop Writable :: 1
  4857. prop NoGen :: 1
  4858. }
  4859. global STSUNITS :: "raw" {
  4860. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  4861. prop Enum :: "raw,milliseconds,microseconds"
  4862. prop Label :: "Statistics Units"
  4863. prop Visible :: 0
  4864. prop Writable :: 1
  4865. prop NoGen :: 1
  4866. }
  4867. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  4868. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  4869. prop Label :: "comment"
  4870. prop JSName :: "comment"
  4871. prop Visible :: 1
  4872. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  4873. prop NoGen :: 1
  4874. }
  4875. inst iIsUsed :: 0 {
  4876. prop Visible :: 0
  4877. prop Writable :: 0
  4878. prop NoGen :: 1
  4879. }
  4880. inst iId :: 0 {
  4881. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4882. prop Style :: 0x01
  4883. prop Visible :: 0
  4884. prop Writable :: 1
  4885. prop NoGen :: 1
  4886. }
  4887. inst iDelUser :: "USER" {
  4888. prop Visible :: 0
  4889. prop Writable :: 0
  4890. prop NoGen :: 1
  4891. }
  4892. inst iDelMsg :: "ok" {
  4893. prop Visible :: 0
  4894. prop Writable :: 0
  4895. prop NoGen :: 1
  4896. }
  4897. inst priority :: = (self.pri + 1) {
  4898. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4899. prop Label :: "priority"
  4900. prop JSName :: ""
  4901. prop Visible :: 0
  4902. prop Writable :: 0
  4903. prop NoGen :: 1
  4904. }
  4905. inst function :: @_FXN_F_nop {
  4906. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  4907. prop JSName :: "fxn"
  4908. prop Visible :: 1
  4909. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  4910. prop NoGen :: 0
  4911. }
  4912. inst pri :: 1 {
  4913. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  4914. prop Enum :: "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14"
  4915. prop Label :: "priority"
  4916. prop JSName :: "priority"
  4917. prop Visible :: 1
  4918. prop Writable :: 1
  4919. prop NoGen :: 0
  4920. prop Set :: ($a = self.pri, self.pri = $1, if (self == KNL_swi) {if ($1 != 0) {self.pri = $a, self.error("KNL_swi must remain at Priority 0.")} else {"ok"}} else {if ($1 == 0 && KNL_swi.iIsUsed == 1) {self.pri = $a, self.error("Priority 0 reserved for KNL_swi only.")} else {GlobalStatus.gDirty = 1, if (GlobalStatus.MinStackSize >= MEM.STACKSIZE) {self.pri = $a, self.error("System stack size (see MEM) is too small to support a new SWI priority level.")} else {if ($1 > 14) {self.pri = $a, self.error("SWI can only support 15 priority levels.")} else {"ok"}}}})
  4921. }
  4922. inst mailbox :: 0 {
  4923. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4924. prop Style :: 0x01 | 0x02
  4925. prop JSName :: "mailbox"
  4926. prop Visible :: 1
  4927. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  4928. prop NoGen :: 0
  4929. }
  4930. inst arg0 :: 0 {
  4931. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  4932. prop JSName :: "arg0"
  4933. prop Visible :: 1
  4934. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  4935. prop NoGen :: 0
  4936. }
  4937. inst arg1 :: 0 {
  4938. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  4939. prop JSName :: "arg1"
  4940. prop Visible :: 1
  4941. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  4942. prop NoGen :: 0
  4943. }
  4944. inst dorta :: 1 {
  4945. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  4946. prop Visible :: 0
  4947. prop Writable :: 0
  4948. prop NoGen :: 0
  4949. }
  4950. inst Order :: 0 {
  4951. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4952. prop JSName :: "order"
  4953. prop NoGen :: 0
  4954. prop Writable :: 1
  4955. }
  4956. inst filter :: 2 {
  4957. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4958. prop Visible :: 0
  4959. prop Writable :: 1
  4960. prop Label :: "filter"
  4961. prop NoGen :: 0
  4962. }
  4963. inst maxformat :: self.STSGetMaxFmt() {
  4964. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  4965. prop Visible :: 0
  4966. prop Writable :: 1
  4967. prop Label :: "maxformat"
  4968. prop NoGen :: 0
  4969. }
  4970. inst sumformat :: self.STSGetSumFmt() {
  4971. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  4972. prop Visible :: 0
  4973. prop Writable :: 1
  4974. prop Label :: "sumformat"
  4975. prop NoGen :: 0
  4976. }
  4977. inst avgformat :: self.STSGetAvgFmt() {
  4978. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  4979. prop Visible :: 0
  4980. prop Writable :: 1
  4981. prop Label :: "avgformat"
  4982. prop NoGen :: 0
  4983. }
  4984. inst filtmaxmult :: 1 {
  4985. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4986. prop Visible :: 0
  4987. prop Writable :: 1
  4988. prop Label :: "filtmaxmult"
  4989. prop NoGen :: 0
  4990. }
  4991. inst filtsummult :: 1 {
  4992. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  4993. prop Visible :: 0
  4994. prop Writable :: 1
  4995. prop Label :: "filtsummult"
  4996. prop NoGen :: 0
  4997. }
  4998. inst unittype :: self.uType() {
  4999. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5000. prop Visible :: 0
  5001. prop Writable :: 1
  5002. prop Label :: "unittype"
  5003. prop NoGen :: 0
  5004. }
  5005. }
  5006. type TSK {
  5007. isa ObjectMgr
  5008. prop name :: "TSK"
  5009. prop Label :: "TSK - Task Manager"
  5010. prop IsConfMod :: self.USETSK
  5011. prop IsContainedIn :: SCH
  5012. prop DependsOn :: "SWI,HOOK"
  5013. prop GlobalIcon :: 143
  5014. prop InstanceIcon :: 144
  5015. prop GlobalHelpTopic :: (314)
  5016. prop InstanceHelpTopic :: (414)
  5017. prop InstancePropertyPage :: ("{473C4A64-B1A8-11d0-9885-0020AFEE33C6}")
  5018. prop GlobalPropertyPage :: ("{473C4A65-B1A8-11d0-9885-0020AFEE33C6}")
  5019. prop SortByField :: "iPRI"
  5020. prop SortGroups :: 17
  5021. prop objectSize :: (if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (27 * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (44 * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (44 * 4)} , if (GBL.DSPTYPE == 28) {$a = (40 * 4)} , if (GBL.DSPTYPE == 62 || (GBL.DSPTYPE == 54 && GBL.FARMODE == 0)) {$a = (24 * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (25 * 4)} , $a)
  5022. prop GenLinkPrologue :: (if (self.USETSK != 0) {"SECTIONS {%4t\n.%1L: {%8t\n %1U_A_TABBEG = .;\n %4S\n %1U_A_TABEND = .;\n %1U_A_TABLEN = (. - %1U_A_TABBEG) / %2d;%4t\n} > %3s%5s\0, name, objSize, _bssmemSeg, linkString, pageString"} else {"_KNL_swi = 0;"})
  5023. prop linkString :: if self.gNumOf > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  5024. prop pageString :: if GBL.DSPTYPE == 62 {""} else {if GBL.DSPTYPE == 55 {(if TSK.OBJMEMSEG.space() == "code" {" PAGE 0"} else {if TSK.OBJMEMSEG.space() == "data" {" PAGE 1"} else {if TSK.OBJMEMSEG.space() == "io" {" PAGE 2"} else {" PAGE 0"}}})} else {" PAGE 1"}}
  5025. prop GenLinkEpilogue :: (if (self.USETSK != 0) {"%0t}\n\0"} else {""})
  5026. prop _objAllocDesc :: ("%8t .TSK$obj: {}")
  5027. prop _bssmemSeg :: self.OBJMEMSEG
  5028. prop _objmemSeg :: MEM.CFGOBJSEG
  5029. prop AllocInst :: (if self.iAUTOSTK {"1\0, _instStackDesc, _instStackSeg, _placement"} else {"0\0"})
  5030. prop _instStackDesc :: (if (GBL.DSPTYPE == 40) {"%8t .%0s$stk: {%12t\n %0s$stack = .;\n . += %1d;%8t\n }\0, _instStackSize"} else {"%8t .%0s$stk: {%12t\n *(.%0s$stk)%8t\n }\0"})
  5031. prop _self :: self
  5032. prop _instStackSize :: self.iSTKSZ * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)
  5033. prop _instStackSeg :: self.iSTKSEG
  5034. prop _placement :: (0x7fffffff / 2)
  5035. prop localInit :: (KNL_swi.Create("SWI"), if (self.STACKSEG.iAllocHeap == 1) {self.STACKSEG.iReqHeapCount++, "ok"} else {self.error("TSK default stack segment must be a memory segment with a heap")})
  5036. prop HighTimeBased :: (if CLK.HIRES == 1 {1} else {0})
  5037. prop LowTimeBased :: (if CLK.HIRES == 1 {0} else {1})
  5038. prop uType :: (if (self.HighTimeBased()) {$a = 0} else {if (self.LowTimeBased()) {$a = 1} else {$a = 2}}, $a)
  5039. prop STSGetMaxFmt :: (if (TSK.STSUNITS == "raw") {if CLK.HIRES {"%g inst"} else {"%g ints"}} else {if TSK.STSUNITS == "microseconds" {"%.1f us"} else {"%.2f ms"}})
  5040. prop STSGetSumFmt :: (TSK.STSGetMaxFmt())
  5041. prop STSGetAvgFmt :: (if (TSK.STSUNITS == "raw") {if CLK.HIRES {"%.2f inst"} else {"%.2f ints"}} else {if TSK.STSUNITS == "microseconds" {"%.1f us"} else {"%.2f ms"}})
  5042. prop STSFilterMaxMult :: ($a = 1)
  5043. prop STSFilterSumMult :: (TSK.STSFilterMaxMult($1))
  5044. prop localCreate :: (STS.gNumEmbed += 1, "ok")
  5045. prop localCanCreate :: ($e = "ok", if (TSK.USETSK != 1) {$e = self.error("TSK manager not enabled")} , $e)
  5046. prop localDelete :: (STS.gNumEmbed -= 1, "ok")
  5047. prop cGen :: 1
  5048. prop cHeaderName :: if self.gNumOf > 0 {"tsk.h"} else {""}
  5049. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far TSK_Obj %0r;\n\0"} else {"extern TSK_Obj %0r;\n\0"})
  5050. prop NOPFXN :: @FXN_F_nop
  5051. prop _objId :: self.iId
  5052. prop objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  5053. prop dataSize :: ($d = 0, scan ($i; TSK) {$d += ($i.iSTKSZ + self.objectSize() * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE))}, $d)
  5054. prop minStackSize :: ($a = self.STACKSIZE, scan ($i; TSK) {if ($i.STACKSIZE < $a) {$a = $i.STACKSIZE} }, $a)
  5055. prop maxObjs :: (32767)
  5056. prop GetPriority :: (self.iPRI)
  5057. global gUser :: "USER" {
  5058. prop Visible :: 0
  5059. prop Writable :: 0
  5060. prop NoGen :: 1
  5061. }
  5062. global gSetOf :: 0 {
  5063. prop Visible :: 0
  5064. prop Writable :: 0
  5065. prop NoGen :: 1
  5066. }
  5067. global gNumOf :: 1 {
  5068. prop Visible :: 0
  5069. prop Writable :: 0
  5070. prop NoGen :: 1
  5071. }
  5072. global gDirty :: 1 {
  5073. prop Visible :: 0
  5074. prop Writable :: 0
  5075. prop NoGen :: 1
  5076. }
  5077. global gInitFlag :: 1 {
  5078. prop Visible :: 0
  5079. prop Writable :: 0
  5080. prop NoGen :: 1
  5081. }
  5082. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  5083. prop Visible :: 0
  5084. prop Writable :: 0
  5085. prop NoGen :: 1
  5086. }
  5087. global USETSK :: 1 {
  5088. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5089. prop Label :: "Enable TSK Manager"
  5090. prop JSName :: "ENABLETSK"
  5091. prop Visible :: 1
  5092. prop Writable :: if GBL.DSPSUBTYPE == 0x55DA200 {0} else {1}
  5093. prop NoGen :: 1
  5094. prop Set :: (if ($1 == 0) {if (self.gNumOf > 1) {self.error("Cannot disable TSK until all TSK objects are deleted.")} else {self.STACKSEG.iReqHeapCount--, TSK.STACKSEG = MEM_NULL, TSK.OBJMEMSEG = MEM_NULL, TSK_idle.iSTKSEG = MEM_NULL, TSK_idle.Delete("TSK"), KNL_swi.Delete("TSK"), PRD.THOOKFXN = self.NOPFXN, if (PRD.gNumOf == 0) {if (PRD_clock.iIsUsed == 1) {PRD_clock.function = @FXN_F_nop} } , self.USETSK = $1, "ok"}} else {$e = "ok", GlobalStatus.gDirty = 1, if (GlobalStatus.MinStackSize >= MEM.STACKSIZE) {$e = self.error("Current stack size inadequate to enable TSK"), break} , scan ($a; SWI) {if ($a != KNL_swi && $a.pri == 0 && $a.iIsUsed == 1) {$e = self.error("Cannot enable TSK when there are SWI objects at Priority 0."), break} }, if ($e == "ok") {TSK.STACKSEG = MEM_NULL, scan ($b; MEM) {if ($b.iAllocHeap && $b != MEM_NULL) {TSK.STACKSEG = $b, break} }, self.STACKSEG.iReqHeapCount++, self.USETSK = $1, TSK.OBJMEMSEG = SWI.OBJMEMSEG, TSK_idle.iSTKSEG = self.OBJMEMSEG, TSK_idle.Create("TSK"), KNL_swi.Create("TSK"), PRD.THOOKFXN = PRD.DEFAULT_THOOKFXN, if (TSK.TSKTICK == "PRD") {if (PRD_clock.iIsUsed == 1) {PRD_clock.function = @PRD_F_tick} } , if (MEM.NOHEAPS) {self.STACKSEG.iReqHeapCount++} , $e} else {$e}})
  5095. }
  5096. global OBJMEMSEG :: IRAM {
  5097. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  5098. prop JSName :: "OBJMEMSEG"
  5099. prop MemberType :: MEM
  5100. prop MemberTest :: MEM.dataNullMember($1)
  5101. prop Label :: "Object Memory"
  5102. prop Visible :: 1
  5103. prop Writable :: self.USETSK
  5104. prop NoGen :: 1
  5105. }
  5106. global CALLBACKOBJ :: nil {
  5107. prop Visible :: 0
  5108. prop Writable :: 0
  5109. prop NoGen :: 1
  5110. }
  5111. global STACKSIZE :: 1024 {
  5112. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5113. prop Style :: if GBL.DSPTYPE == 54 {0x01} else {0x02}
  5114. prop Label :: "Default stack size (MAUs)"
  5115. prop JSName :: "STACKSIZE"
  5116. prop Visible :: 1
  5117. prop Writable :: self.USETSK
  5118. }
  5119. global STACKSEG :: IRAM {
  5120. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  5121. prop MemberType :: MEM
  5122. prop MemberTest :: MEM.dataNullMember($1) && $1.iAllocHeap
  5123. prop Label :: "Stack segment for dynamic tasks"
  5124. prop JSName :: "STACKSEG"
  5125. prop Visible :: 1
  5126. prop Writable :: self.USETSK && (MEM.NOHEAPS == 0)
  5127. prop Set :: (if (self.STACKSEG.iReqHeapCount > 0) {self.STACKSEG.iReqHeapCount--} , self.STACKSEG = $1, self.STACKSEG.iReqHeapCount++, "ok")
  5128. }
  5129. global PRIORITY :: 1 {
  5130. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  5131. prop JSName :: "PRIORITY"
  5132. prop Enum :: "1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
  5133. prop Label :: "Default task priority"
  5134. prop Visible :: 1
  5135. prop Writable :: self.USETSK
  5136. }
  5137. global CREATEFXN :: @_FXN_F_nop {
  5138. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5139. prop Label :: "Create function"
  5140. prop JSName :: "CREATEFXN"
  5141. prop Visible :: 1
  5142. prop Writable :: self.USETSK
  5143. prop TabName :: "Function Hooks"
  5144. prop Set :: (self.CREATEFXN = $1, HOOK_KNL.createFxn = self.CREATEFXN, "ok")
  5145. prop NoGen :: 1
  5146. }
  5147. global VCREATEFXN :: = if HOOK_KNL.iIsUsed == 1 {@__HOOK_doCreate} else {self.CREATEFXN} {
  5148. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5149. prop Visible :: 0
  5150. }
  5151. global DELETEFXN :: @_FXN_F_nop {
  5152. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5153. prop Label :: "Delete function"
  5154. prop JSName :: "DELETEFXN"
  5155. prop Visible :: 1
  5156. prop Writable :: self.USETSK
  5157. prop TabName :: "Function Hooks"
  5158. prop Set :: (self.DELETEFXN = $1, HOOK_KNL.deleteFxn = self.DELETEFXN, "ok")
  5159. prop NoGen :: 1
  5160. }
  5161. global VDELETEFXN :: = if HOOK_KNL.iIsUsed == 1 {@__HOOK_doDelete} else {self.DELETEFXN} {
  5162. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5163. prop Visible :: 0
  5164. }
  5165. global EXITFXN :: @_FXN_F_nop {
  5166. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5167. prop Label :: "Exit function"
  5168. prop JSName :: "EXITFXN"
  5169. prop Visible :: 1
  5170. prop Writable :: self.USETSK
  5171. prop TabName :: "Function Hooks"
  5172. prop Set :: (self.EXITFXN = $1, HOOK_KNL.exitFxn = self.EXITFXN, "ok")
  5173. prop NoGen :: 1
  5174. }
  5175. global VEXITFXN :: = if HOOK_KNL.iIsUsed == 1 {@__HOOK_doExit} else {self.EXITFXN} {
  5176. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5177. prop Visible :: 0
  5178. }
  5179. global DOSWITCH :: 0 {
  5180. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5181. prop Label :: "Call switch function"
  5182. prop JSName :: "CALLSWITCHFXN"
  5183. prop Writable :: self.USETSK
  5184. prop Visible :: 1
  5185. prop NoGen :: 1
  5186. prop Set :: (self.DOSWITCH = $1, HOOK_KNL.callSwitchFxn = self.DOSWITCH, "ok")
  5187. prop TabName :: "Function Hooks"
  5188. }
  5189. global VSWFXN :: @_FXN_F_nop {
  5190. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5191. prop Label :: "Switch function"
  5192. prop JSName :: "SWITCHFXN"
  5193. prop Visible :: 1
  5194. prop NoGen :: 1
  5195. prop Writable :: self.DOSWITCH && self.USETSK
  5196. prop Set :: (self.VSWFXN = $1, HOOK_KNL.switchFxn = self.VSWFXN, "ok")
  5197. prop TabName :: "Function Hooks"
  5198. }
  5199. global SWITCHFXN :: = (if (HOOK_KNL.iIsUsed) {$i = 0, scan ($a; HOOK) {if ($a.callSwitchFxn) {$i = 1} }, if ($i) {@__HOOK_doSwitch} else {0}} else {if (self.DOSWITCH) {self.VSWFXN} else {0}}) {
  5200. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  5201. prop JSName :: ""
  5202. prop TabName :: "Function Hooks"
  5203. }
  5204. global DOREADY :: 0 {
  5205. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5206. prop Label :: "Call ready function"
  5207. prop JSName :: "CALLREADYFXN"
  5208. prop Writable :: self.USETSK
  5209. prop Visible :: 1
  5210. prop NoGen :: 1
  5211. prop Set :: (self.DOREADY = $1, HOOK_KNL.callReadyFxn = self.DOREADY, "ok")
  5212. prop TabName :: "Function Hooks"
  5213. }
  5214. global VRDYFXN :: @_FXN_F_nop {
  5215. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5216. prop Label :: "Ready function"
  5217. prop JSName :: "READYFXN"
  5218. prop Visible :: 1
  5219. prop Writable :: self.DOREADY && self.USETSK
  5220. prop NoGen :: 1
  5221. prop Set :: (self.VRDYFXN = $1, HOOK_KNL.readyFxn = self.VRDYFXN, "ok")
  5222. prop TabName :: "Function Hooks"
  5223. }
  5224. global READYFXN :: = (if (HOOK_KNL.iIsUsed) {$i = 0, scan ($a; HOOK) {if ($a.callReadyFxn) {$i = 1} }, if ($i) {@__HOOK_doReady} else {0}} else {if (self.DOREADY) {self.VRDYFXN} else {0}}) {
  5225. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  5226. prop JSName :: ""
  5227. prop TabName :: "Function Hooks"
  5228. }
  5229. global NUM_HOOKS :: = HOOK.gNumOf {
  5230. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5231. prop Visible :: 0
  5232. }
  5233. global STSUNITS :: "raw" {
  5234. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  5235. prop Enum :: "raw,milliseconds,microseconds"
  5236. prop Label :: "Statistics Units"
  5237. prop Visible :: 0
  5238. prop Writable :: self.USETSK
  5239. prop NoGen :: 1
  5240. }
  5241. global TSKTICK :: "PRD" {
  5242. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  5243. prop Enum :: "PRD,User"
  5244. prop Label :: "TSK tick driven by"
  5245. prop JSName :: "DRIVETSKTICK"
  5246. prop Visible :: 1
  5247. prop Writable :: self.USETSK
  5248. prop NoGen :: 1
  5249. prop Set :: (if ($1 != self.TSKTICK) {if ($1 == "PRD") {PRD.THOOKFXN = PRD.DEFAULT_THOOKFXN, if (TSK.USETSK == 1) {if (PRD_clock.iIsUsed == 1) {PRD_clock.function = @PRD_F_tick} } } , if ($1 == "User") {PRD.THOOKFXN = self.NOPFXN, if (PRD.gNumOf == 0) {if (PRD_clock.iIsUsed == 1) {PRD_clock.function = @FXN_F_nop} } } , if ($1 != "PRD" && $1 != "User") {self.error("Invalid TSK tick driver selection")} } , self.TSKTICK = $1, "ok")
  5250. }
  5251. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  5252. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  5253. prop Label :: "comment"
  5254. prop JSName :: "comment"
  5255. prop Visible :: 1
  5256. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  5257. prop NoGen :: 1
  5258. }
  5259. inst iIsUsed :: 0 {
  5260. prop Visible :: 0
  5261. prop Writable :: 0
  5262. prop NoGen :: 1
  5263. }
  5264. inst iId :: 0 {
  5265. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5266. prop Style :: 0x01
  5267. prop Visible :: 0
  5268. prop Writable :: 1
  5269. prop NoGen :: 1
  5270. }
  5271. inst iDelUser :: "USER" {
  5272. prop Visible :: 0
  5273. prop Writable :: 0
  5274. prop NoGen :: 1
  5275. }
  5276. inst iDelMsg :: "ok" {
  5277. prop Visible :: 0
  5278. prop Writable :: 0
  5279. prop NoGen :: 1
  5280. }
  5281. inst iFXN :: @_FXN_F_nop {
  5282. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5283. prop Label :: "Task function"
  5284. prop JSName :: "fxn"
  5285. prop Visible :: 1
  5286. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5287. prop TabName :: "Function"
  5288. }
  5289. inst iARG0 :: 0 {
  5290. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5291. prop Label :: "Task function argument 0"
  5292. prop JSName :: "arg0"
  5293. prop Visible :: 1
  5294. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5295. prop TabName :: "Function"
  5296. }
  5297. inst iARG1 :: 0 {
  5298. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5299. prop Label :: "Task function argument 1"
  5300. prop JSName :: "arg1"
  5301. prop Visible :: 1
  5302. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5303. prop TabName :: "Function"
  5304. }
  5305. inst iARG2 :: 0 {
  5306. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5307. prop Label :: "Task function argument 2"
  5308. prop JSName :: "arg2"
  5309. prop Visible :: 1
  5310. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5311. prop TabName :: "Function"
  5312. }
  5313. inst iARG3 :: 0 {
  5314. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5315. prop Label :: "Task function argument 3"
  5316. prop JSName :: "arg3"
  5317. prop Visible :: 1
  5318. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5319. prop TabName :: "Function"
  5320. }
  5321. inst iARG4 :: 0 {
  5322. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5323. prop Label :: "Task function argument 4"
  5324. prop JSName :: "arg4"
  5325. prop Visible :: 1
  5326. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5327. prop TabName :: "Function"
  5328. }
  5329. inst iARG5 :: 0 {
  5330. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5331. prop Label :: "Task function argument 5"
  5332. prop JSName :: "arg5"
  5333. prop Visible :: 1
  5334. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5335. prop TabName :: "Function"
  5336. }
  5337. inst iARG6 :: 0 {
  5338. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5339. prop Label :: "Task function argument 6"
  5340. prop JSName :: "arg6"
  5341. prop Visible :: 1
  5342. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5343. prop TabName :: "Function"
  5344. }
  5345. inst iARG7 :: 0 {
  5346. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  5347. prop Label :: "Task function argument 7"
  5348. prop JSName :: "arg7"
  5349. prop Visible :: 1
  5350. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5351. prop TabName :: "Function"
  5352. }
  5353. inst iAUTOSTK :: 1 {
  5354. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5355. prop Label :: "Automatically allocate stack"
  5356. prop JSName :: "autoAllocateStack"
  5357. prop Set :: (if (($1 == 1) && (self.iAUTOSTK == 0)) {self.iSTKSZ = TSK.STACKSIZE} , self.iAUTOSTK = $1, "ok")
  5358. prop Visible :: 1
  5359. prop Writable :: if self.iDelUser == "TSK" {0} else {1}
  5360. }
  5361. inst iMANSTK :: @null {
  5362. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5363. prop Label :: "Manually allocated stack"
  5364. prop JSName :: "manualStack"
  5365. prop Visible :: 1
  5366. prop Writable :: self.iAUTOSTK == 0
  5367. }
  5368. inst iSTKSZ :: TSK.STACKSIZE {
  5369. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5370. prop Style :: if GBL.DSPTYPE == 54 {0x01} else {0x02}
  5371. prop Label :: "Stack size (MAUs)"
  5372. prop JSName :: "stackSize"
  5373. prop Visible :: 1
  5374. prop Writable :: 1
  5375. prop Set :: ($a = $1, if ($a < 32) {if (GBL.DSPSUBTYPE == 62) {self.error("Task stack size is too small.")} else {if ($a < 32) {self.error("Task stack size is too small.")} else {self.iSTKSZ = ($1 - ($1 - 1) % 8 + 7), GlobalStatus.gDirty = 1, "ok"}}} else {self.iSTKSZ = ($1 - ($1 - 1) % 8 + 7), GlobalStatus.gDirty = 1, "ok"})
  5376. }
  5377. inst iSTKSEG :: = self.OBJMEMSEG {
  5378. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  5379. prop MemberType :: MEM
  5380. prop MemberTest :: $1 == MEM_NULL || MEM.dataMember($1)
  5381. prop Label :: "Stack Memory Segment"
  5382. prop JSName :: "stackMemSeg"
  5383. prop Visible :: 1
  5384. prop Writable :: 1
  5385. }
  5386. inst iPRI :: TSK.PRIORITY {
  5387. prop Label :: "Priority"
  5388. prop JSName :: "priority"
  5389. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  5390. prop Enum :: "-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15"
  5391. prop Visible :: 1
  5392. prop Writable :: 1
  5393. prop Set :: (if (self == TSK_idle) {if ($1 == 0) {"ok"} else {self.error("Cannot change the priority of the idle task.")}} else {if ($1 == 0) {self.error("Priority 0 is reserved for the system idle task")} else {self.iPRI = $1, "ok"}})
  5394. }
  5395. inst iENV :: 0 {
  5396. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  5397. prop Label :: "Environment pointer"
  5398. prop JSName :: "envPointer"
  5399. prop Visible :: 1
  5400. prop Writable :: self.iDelUser != "TSK"
  5401. prop TabName :: "Advanced"
  5402. }
  5403. inst iEXITFLAG :: 1 {
  5404. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5405. prop Label :: "Don't shut down system while this task is still running"
  5406. prop JSName :: "exitFlag"
  5407. prop Visible :: 1
  5408. prop Writable :: 1
  5409. prop TabName :: "Advanced"
  5410. }
  5411. inst iUSETSKNAME :: 0 {
  5412. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5413. prop Label :: "Allocate Task Name on Target"
  5414. prop JSName :: "allocateTaskName"
  5415. prop Visible :: 1
  5416. prop Writable :: 1
  5417. prop TabName :: "Advanced"
  5418. }
  5419. inst iSTATREG :: = GBL.CACHE {
  5420. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  5421. prop Format :: "0x%08x"
  5422. prop Label :: "Initial Status Register value"
  5423. prop Visible :: 0
  5424. prop Writable :: 1
  5425. }
  5426. inst Order :: 0 {
  5427. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5428. prop JSName :: "order"
  5429. prop NoGen :: 0
  5430. prop Writable :: 1
  5431. }
  5432. inst filter :: 2 {
  5433. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5434. prop Visible :: 0
  5435. prop Writable :: 1
  5436. prop Label :: "filter"
  5437. prop NoGen :: 0
  5438. }
  5439. inst maxformat :: self.STSGetMaxFmt() {
  5440. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  5441. prop Visible :: 0
  5442. prop Writable :: 1
  5443. prop Label :: "maxformat"
  5444. prop NoGen :: 0
  5445. }
  5446. inst sumformat :: self.STSGetSumFmt() {
  5447. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  5448. prop Visible :: 0
  5449. prop Writable :: 1
  5450. prop Label :: "sumformat"
  5451. prop NoGen :: 0
  5452. }
  5453. inst avgformat :: self.STSGetAvgFmt() {
  5454. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  5455. prop Visible :: 0
  5456. prop Writable :: 1
  5457. prop Label :: "avgformat"
  5458. prop NoGen :: 0
  5459. }
  5460. inst filtmaxmult :: 1 {
  5461. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5462. prop Visible :: 0
  5463. prop Writable :: 1
  5464. prop Label :: "filtmaxmult"
  5465. prop NoGen :: 0
  5466. }
  5467. inst filtsummult :: 1 {
  5468. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5469. prop Visible :: 0
  5470. prop Writable :: 1
  5471. prop Label :: "filtsummult"
  5472. prop NoGen :: 0
  5473. }
  5474. inst unittype :: self.uType() {
  5475. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5476. prop Visible :: 0
  5477. prop Writable :: 1
  5478. prop Label :: "unittype"
  5479. prop NoGen :: 0
  5480. }
  5481. }
  5482. object TSK_idle :: TSK {
  5483. param iComment :: "This is the idle task; it only runs when no other task is ready"
  5484. param iIsUsed :: 1
  5485. param iId :: 0
  5486. param iDelUser :: "TSK"
  5487. param iDelMsg :: "This task executes all IDL functions and cannot be deleted"
  5488. param iFXN :: @IDL_F_loop
  5489. param iARG0 :: 0
  5490. param iARG1 :: 0
  5491. param iARG2 :: 0
  5492. param iARG3 :: 0
  5493. param iARG4 :: 0
  5494. param iARG5 :: 0
  5495. param iARG6 :: 0
  5496. param iARG7 :: 0
  5497. param iAUTOSTK :: 1
  5498. param iMANSTK :: @null
  5499. param iSTKSZ :: 1024
  5500. param iSTKSEG :: IRAM
  5501. param iPRI :: 0
  5502. param iENV :: 0
  5503. param iEXITFLAG :: 1
  5504. param iUSETSKNAME :: 0
  5505. param Order :: 0
  5506. param filter :: 2
  5507. param maxformat :: "%g inst"
  5508. param sumformat :: "%g inst"
  5509. param avgformat :: "%.2f inst"
  5510. param filtmaxmult :: 1
  5511. param filtsummult :: 1
  5512. param unittype :: 0
  5513. }
  5514. object KNL_swi :: SWI {
  5515. param iComment :: "This Software Interrupt calls the TSK scheduler"
  5516. param iIsUsed :: 1
  5517. param iId :: 0
  5518. param iDelUser :: "TSK"
  5519. param iDelMsg :: "This object cannot be deleted in DSP/BIOS."
  5520. param function :: @_KNL_run
  5521. param pri :: 0
  5522. param mailbox :: 0
  5523. param arg0 :: 0
  5524. param arg1 :: 0
  5525. param dorta :: 1
  5526. param Order :: 0
  5527. param filter :: 2
  5528. param maxformat :: "%g inst"
  5529. param sumformat :: "%g inst"
  5530. param avgformat :: "%.2f inst"
  5531. param filtmaxmult :: 1
  5532. param filtsummult :: 1
  5533. param unittype :: 0
  5534. }
  5535. type IDL {
  5536. isa ObjectMgr
  5537. prop Label :: "IDL - Idle Function Manager"
  5538. prop name :: "IDL"
  5539. prop IsContainedIn :: SCH
  5540. prop GlobalIcon :: 111
  5541. prop InstanceIcon :: 112
  5542. prop GlobalHelpTopic :: (106)
  5543. prop InstanceHelpTopic :: (206)
  5544. prop InstancePropertyPage :: ("{586735F1-770B-11d0-A61F-0000C070F3E9}")
  5545. prop GlobalPropertyPage :: ("{586735F0-770B-11d0-A61F-0000C070F3E9}")
  5546. prop objectSize :: (if (GBL.DSPTYPE == 55 || GBL.DSPTYPE == 28) {$a = (2 * 4)} else {$a = (1 * 4)}, $a)
  5547. prop GenLinkPrologue :: ("SECTIONS {%4t\n.%1L: {%8t\n %1U_A_TABBEG = .;\n %3S\n %1U_A_TABEND = .;\n %1U_A_TABLEN = (. - %1U_A_TABBEG) / %2d;\0, name, _objSize, _linkString")
  5548. prop GenLinkEpilogue :: ("%8t %1U_A_CALBEG = .;\n %4S\n %1U_A_CALEND = .;\n %1U_A_CALLEN = (. - %1U_A_CALBEG) / %2d;%4t\n} > %3s%5s%0t\n}\n%6S\n\0, name, _objSize, _memSeg, _linkCalString, _pageString, _nilBusyObj")
  5549. prop _linkString :: "*(.%1L)"
  5550. prop _linkCalString :: "*(.%1Lcal)"
  5551. prop _pageString :: if GBL.DSPTYPE == 62 {""} else {if GBL.DSPTYPE == 55 {(if IDL.OBJMEMSEG.space() == "code" {" PAGE 0"} else {if IDL.OBJMEMSEG.space() == "data" {" PAGE 1"} else {if IDL.OBJMEMSEG.space() == "io" {" PAGE 2"} else {" PAGE 0"}}})} else {" PAGE 1"}}
  5552. prop _nilBusyObj :: (if ((IDL.USEIDLBUSYOBJ == 0) && (GBL.ROM == 1)) {"IDL_busyObj = 0;\n"} else {""})
  5553. prop _memSeg :: IDL.OBJMEMSEG
  5554. prop _objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  5555. prop dataSize :: (self.objectSize() * (IDL.gNumOf + 1))
  5556. prop maxObjs :: (32767)
  5557. prop SortByField :: "iPri"
  5558. prop SortGroups :: 1
  5559. prop idlFxnSum :: ($a = 0, scan ($i; IDL) {$a += $i.cycles}, $a)
  5560. global gUser :: "USER" {
  5561. prop Visible :: 0
  5562. prop Writable :: 0
  5563. prop NoGen :: 1
  5564. }
  5565. global gSetOf :: 0 {
  5566. prop Visible :: 0
  5567. prop Writable :: 0
  5568. prop NoGen :: 1
  5569. }
  5570. global gNumOf :: 3 {
  5571. prop Visible :: 0
  5572. prop Writable :: 0
  5573. prop NoGen :: 1
  5574. }
  5575. global gDirty :: 1 {
  5576. prop Visible :: 0
  5577. prop Writable :: 0
  5578. prop NoGen :: 1
  5579. }
  5580. global gInitFlag :: 1 {
  5581. prop Visible :: 0
  5582. prop Writable :: 0
  5583. prop NoGen :: 1
  5584. }
  5585. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  5586. prop Visible :: 0
  5587. prop Writable :: 0
  5588. prop NoGen :: 1
  5589. }
  5590. global OBJMEMSEG :: IRAM {
  5591. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  5592. prop MemberType :: MEM
  5593. prop MemberTest :: MEM.dataMember($1)
  5594. prop Label :: "Object Memory"
  5595. prop JSName :: "OBJMEMSEG"
  5596. prop Visible :: 1
  5597. prop Writable :: 1
  5598. prop NoGen :: 1
  5599. }
  5600. global AUTOCALCULATE :: 1 {
  5601. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5602. prop Label :: "Auto calculate idle loop instruction count"
  5603. prop JSName :: "AUTOCALCULATE"
  5604. prop Visible :: 1
  5605. prop Writable :: CLK.USETIMER
  5606. prop Set :: (if ($1 == 1 && CLK.USETIMER == 0) {self.error("CLK must be enabled to do idle loop intruction count")} else {if ($1 == 1 && GBL.ENABLEINST == 0) {self.error("Real Time Analysis must be enabled to do idle loop instruction count")} else {self.AUTOCALCULATE = $1, "ok"}})
  5607. prop NoGen :: 1
  5608. }
  5609. global USECLKIDLTIME :: = IDL.AUTOCALCULATE {
  5610. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5611. prop Visible :: 0
  5612. prop Writable :: 0
  5613. prop NoGen :: 0
  5614. }
  5615. global USEIDLBUSYOBJ :: 1 {
  5616. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5617. prop Visible :: 0
  5618. prop Writable :: 0
  5619. prop NoGen :: 1
  5620. }
  5621. global CALIBRFXN :: = (if (IDL.AUTOCALCULATE == 1) {if TSK.USETSK {@IDL_F_stub} else {@IDL_F_calibrate}} else {@GBL_NULL}) {
  5622. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5623. prop Label :: "Idle Loop Auto-Calibrate Function"
  5624. prop Visible :: 0
  5625. prop Writable :: 1
  5626. prop NoGen :: 0
  5627. }
  5628. global CALIBRERROR :: = (if (GBL.DSPTYPE == 62 && IDL.CALIBRFXN == @IDL_F_stub) {6} else {0}) {
  5629. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5630. prop Label :: "Idle Loop Auto-Calibrate Error"
  5631. prop Visible :: 0
  5632. prop Writable :: 1
  5633. prop NoGen :: 0
  5634. }
  5635. global LOOPOVERHEAD :: 0 {
  5636. prop Label :: "Idle Loop Instruction Count"
  5637. prop JSName :: "LOOPINSTCOUNT"
  5638. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5639. prop Visible :: 1
  5640. prop Writable :: self.AUTOCALCULATE == 0
  5641. prop NoGen :: 1
  5642. }
  5643. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  5644. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  5645. prop Label :: "comment"
  5646. prop JSName :: "comment"
  5647. prop Visible :: 1
  5648. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  5649. prop NoGen :: 1
  5650. }
  5651. inst iIsUsed :: 0 {
  5652. prop Visible :: 0
  5653. prop Writable :: 0
  5654. prop NoGen :: 1
  5655. }
  5656. inst iId :: 0 {
  5657. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5658. prop Style :: 0x01
  5659. prop Visible :: 0
  5660. prop Writable :: 1
  5661. prop NoGen :: 1
  5662. }
  5663. inst iDelUser :: "USER" {
  5664. prop Visible :: 0
  5665. prop Writable :: 0
  5666. prop NoGen :: 1
  5667. }
  5668. inst iDelMsg :: "ok" {
  5669. prop Visible :: 0
  5670. prop Writable :: 0
  5671. prop NoGen :: 1
  5672. }
  5673. inst function :: @_FXN_F_nop {
  5674. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  5675. prop JSName :: "fxn"
  5676. prop Visible :: 1
  5677. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  5678. prop NoGen :: 0
  5679. }
  5680. inst cycles :: 0 {
  5681. prop Label :: "CPU cycles"
  5682. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5683. prop Visible :: 0
  5684. prop Writable :: if (self.iDelUser == "USER") {1} else {0}
  5685. prop NoGen :: 1
  5686. }
  5687. inst calibration :: 1 {
  5688. prop Label :: "Include in CPU load calibration"
  5689. prop JSName :: "calibration"
  5690. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  5691. prop Visible :: 1
  5692. prop Writable :: if (self.iDelUser == "USER") {1} else {0}
  5693. prop NoGen :: 0
  5694. }
  5695. inst Order :: 0 {
  5696. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5697. prop JSName :: "order"
  5698. prop NoGen :: 1
  5699. prop Writable :: 1
  5700. }
  5701. inst iPri :: 0 {
  5702. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  5703. prop Visible :: 0
  5704. prop NoGen :: 1
  5705. }
  5706. }
  5707. object IDL_cpuLoad :: IDL {
  5708. param iComment :: "This object is required by the system to acquire CPU load data"
  5709. param iIsUsed :: 1
  5710. param iId :: 0
  5711. param iDelUser :: "IDL"
  5712. param iDelMsg :: "This object is required to compute CPU load and can't be deleted"
  5713. param function :: @IDL_F_busy
  5714. param cycles :: 0
  5715. param calibration :: 1
  5716. param Order :: 0
  5717. param iPri :: 0
  5718. }
  5719. object IDL_busyObj :: STS {
  5720. param iComment :: "This object is required by the system to accumulate CPU load statistics"
  5721. param iIsUsed :: 1
  5722. param iId :: 0
  5723. param iDelUser :: "IDL"
  5724. param iDelMsg :: "This object is required to accumulate CPU load data and can't be deleted"
  5725. param prev :: 0
  5726. param format :: "%g"
  5727. param filter :: 1
  5728. param maxformat :: "%g"
  5729. param sumformat :: "%g"
  5730. param avgformat :: "%.2f"
  5731. param unittype :: "Not time based"
  5732. param operation :: "Nothing"
  5733. param iA :: 1
  5734. param iB :: 0
  5735. param iC :: 1
  5736. param prevhigh :: 0
  5737. param prevlow :: 0
  5738. }
  5739. type ISRC {
  5740. isa ObjectMgr
  5741. prop name :: "ISRC"
  5742. prop Label :: "ISRC - Interrupt Sources"
  5743. prop IsConfMod :: 1
  5744. prop Visible :: 0
  5745. prop InstancePropertyPage :: ("{91BA37C0-98C3-11d1-988B-0020AFEE33C6}")
  5746. prop GlobalPropertyPage :: ("{91BA37C1-98C3-11d1-988B-0020AFEE33C6}")
  5747. global gUser :: "USER" {
  5748. prop Visible :: 0
  5749. prop Writable :: 0
  5750. prop NoGen :: 1
  5751. }
  5752. global gSetOf :: 0 {
  5753. prop Visible :: 0
  5754. prop Writable :: 0
  5755. prop NoGen :: 1
  5756. }
  5757. global gNumOf :: 0 {
  5758. prop Visible :: 0
  5759. prop Writable :: 0
  5760. prop NoGen :: 1
  5761. }
  5762. global gDirty :: 0 {
  5763. prop Visible :: 0
  5764. prop Writable :: 0
  5765. prop NoGen :: 1
  5766. }
  5767. global gInitFlag :: 1 {
  5768. prop Visible :: 0
  5769. prop Writable :: 0
  5770. prop NoGen :: 1
  5771. }
  5772. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  5773. prop Visible :: 0
  5774. prop Writable :: 0
  5775. prop NoGen :: 1
  5776. }
  5777. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  5778. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  5779. prop Label :: "comment"
  5780. prop JSName :: "comment"
  5781. prop Visible :: 1
  5782. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  5783. prop NoGen :: 1
  5784. }
  5785. inst iIsUsed :: 0 {
  5786. prop Visible :: 0
  5787. prop Writable :: 0
  5788. prop NoGen :: 1
  5789. }
  5790. inst iId :: 0 {
  5791. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5792. prop Style :: 0x01
  5793. prop Visible :: 0
  5794. prop Writable :: 1
  5795. prop NoGen :: 1
  5796. }
  5797. inst iDelUser :: "USER" {
  5798. prop Visible :: 0
  5799. prop Writable :: 0
  5800. prop NoGen :: 1
  5801. }
  5802. inst iDelMsg :: "ok" {
  5803. prop Visible :: 0
  5804. prop Writable :: 0
  5805. prop NoGen :: 1
  5806. }
  5807. inst iHwi :: HWI_UNUSED {
  5808. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  5809. prop MemberType :: HWI
  5810. prop MemberTest :: 1
  5811. prop Visible :: 1
  5812. prop Writable :: 1
  5813. prop NoGen :: 1
  5814. }
  5815. inst iIntrSelectNum :: 0 {
  5816. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  5817. prop Visible :: 0
  5818. prop Writable :: 1
  5819. prop NoGen :: 1
  5820. }
  5821. }
  5822. object Reset :: ISRC {
  5823. param iComment :: "<add comments here>"
  5824. param iIsUsed :: 0
  5825. param iId :: 0
  5826. param iDelUser :: "USER"
  5827. param iDelMsg :: "ok"
  5828. param iHwi :: HWI_RESET
  5829. param iIntrSelectNum :: -1
  5830. }
  5831. object Non_Maskable :: ISRC {
  5832. param iComment :: "<add comments here>"
  5833. param iIsUsed :: 0
  5834. param iId :: 0
  5835. param iDelUser :: "USER"
  5836. param iDelMsg :: "ok"
  5837. param iHwi :: HWI_NMI
  5838. param iIntrSelectNum :: -1
  5839. }
  5840. object Reserved :: ISRC {
  5841. param iComment :: "<add comments here>"
  5842. param iIsUsed :: 0
  5843. param iId :: 0
  5844. param iDelUser :: "USER"
  5845. param iDelMsg :: "ok"
  5846. param iHwi :: HWI_RESERVED0
  5847. param iIntrSelectNum :: -1
  5848. }
  5849. object Host_Port_Host_to_DSP :: ISRC {
  5850. param iComment :: "<add comments here>"
  5851. param iIsUsed :: 0
  5852. param iId :: 0
  5853. param iDelUser :: "USER"
  5854. param iDelMsg :: "ok"
  5855. param iHwi :: HWI_INT13
  5856. param iIntrSelectNum :: 0
  5857. }
  5858. object DSPINT :: ISRC {
  5859. param iComment :: "<add comments here>"
  5860. param iIsUsed :: 0
  5861. param iId :: 0
  5862. param iDelUser :: "USER"
  5863. param iDelMsg :: "ok"
  5864. param iHwi :: HWI_UNUSED
  5865. param iIntrSelectNum :: 0
  5866. }
  5867. object Timer_0 :: ISRC {
  5868. param iComment :: "<add comments here>"
  5869. param iIsUsed :: 0
  5870. param iId :: 0
  5871. param iDelUser :: "USER"
  5872. param iDelMsg :: "ok"
  5873. param iHwi :: HWI_INT14
  5874. param iIntrSelectNum :: 1
  5875. }
  5876. object Timer_1 :: ISRC {
  5877. param iComment :: "<add comments here>"
  5878. param iIsUsed :: 0
  5879. param iId :: 0
  5880. param iDelUser :: "USER"
  5881. param iDelMsg :: "ok"
  5882. param iHwi :: HWI_INT15
  5883. param iIntrSelectNum :: 2
  5884. }
  5885. object EMIF_SDRAM_Timer :: ISRC {
  5886. param iComment :: "<add comments here>"
  5887. param iIsUsed :: 0
  5888. param iId :: 0
  5889. param iDelUser :: "USER"
  5890. param iDelMsg :: "ok"
  5891. param iHwi :: HWI_INT10
  5892. param iIntrSelectNum :: 3
  5893. }
  5894. object External_Pin_4 :: ISRC {
  5895. param iComment :: "<add comments here>"
  5896. param iIsUsed :: 0
  5897. param iId :: 0
  5898. param iDelUser :: "USER"
  5899. param iDelMsg :: "ok"
  5900. param iHwi :: HWI_INT4
  5901. param iIntrSelectNum :: 4
  5902. }
  5903. object External_Pin_5 :: ISRC {
  5904. param iComment :: "<add comments here>"
  5905. param iIsUsed :: 0
  5906. param iId :: 0
  5907. param iDelUser :: "USER"
  5908. param iDelMsg :: "ok"
  5909. param iHwi :: HWI_INT5
  5910. param iIntrSelectNum :: 5
  5911. }
  5912. object External_Pin_6 :: ISRC {
  5913. param iComment :: "<add comments here>"
  5914. param iIsUsed :: 0
  5915. param iId :: 0
  5916. param iDelUser :: "USER"
  5917. param iDelMsg :: "ok"
  5918. param iHwi :: HWI_INT6
  5919. param iIntrSelectNum :: 6
  5920. }
  5921. object External_Pin_7 :: ISRC {
  5922. param iComment :: "<add comments here>"
  5923. param iIsUsed :: 0
  5924. param iId :: 0
  5925. param iDelUser :: "USER"
  5926. param iDelMsg :: "ok"
  5927. param iHwi :: HWI_INT7
  5928. param iIntrSelectNum :: 7
  5929. }
  5930. object EDMA_Controller :: ISRC {
  5931. param iComment :: "<add comments here>"
  5932. param iIsUsed :: 0
  5933. param iId :: 0
  5934. param iDelUser :: "USER"
  5935. param iDelMsg :: "ok"
  5936. param iHwi :: HWI_INT8
  5937. param iIntrSelectNum :: 8
  5938. }
  5939. object HSRTDX11 :: ISRC {
  5940. param iComment :: "<add comments here>"
  5941. param iIsUsed :: 0
  5942. param iId :: 0
  5943. param iDelUser :: "USER"
  5944. param iDelMsg :: "ok"
  5945. param iHwi :: HWI_INT11
  5946. param iIntrSelectNum :: 10
  5947. }
  5948. object HSRTDX12 :: ISRC {
  5949. param iComment :: "<add comments here>"
  5950. param iIsUsed :: 0
  5951. param iId :: 0
  5952. param iDelUser :: "USER"
  5953. param iDelMsg :: "ok"
  5954. param iHwi :: HWI_INT12
  5955. param iIntrSelectNum :: 11
  5956. }
  5957. object MCSP_0_Transmit :: ISRC {
  5958. param iComment :: "<add comments here>"
  5959. param iIsUsed :: 0
  5960. param iId :: 0
  5961. param iDelUser :: "USER"
  5962. param iDelMsg :: "ok"
  5963. param iHwi :: HWI_UNUSED
  5964. param iIntrSelectNum :: 12
  5965. }
  5966. object MCSP_0_Receive :: ISRC {
  5967. param iComment :: "<add comments here>"
  5968. param iIsUsed :: 0
  5969. param iId :: 0
  5970. param iDelUser :: "USER"
  5971. param iDelMsg :: "ok"
  5972. param iHwi :: HWI_UNUSED
  5973. param iIntrSelectNum :: 13
  5974. }
  5975. object MCSP_1_Transmit :: ISRC {
  5976. param iComment :: "<add comments here>"
  5977. param iIsUsed :: 0
  5978. param iId :: 0
  5979. param iDelUser :: "USER"
  5980. param iDelMsg :: "ok"
  5981. param iHwi :: HWI_UNUSED
  5982. param iIntrSelectNum :: 14
  5983. }
  5984. object MCSP_1_Receive :: ISRC {
  5985. param iComment :: "<add comments here>"
  5986. param iIsUsed :: 0
  5987. param iId :: 0
  5988. param iDelUser :: "USER"
  5989. param iDelMsg :: "ok"
  5990. param iHwi :: HWI_UNUSED
  5991. param iIntrSelectNum :: 15
  5992. }
  5993. object HPI_PCI_to_DSP :: ISRC {
  5994. param iComment :: "<add comments here>"
  5995. param iIsUsed :: 0
  5996. param iId :: 0
  5997. param iDelUser :: "USER"
  5998. param iDelMsg :: "ok"
  5999. param iHwi :: HWI_UNUSED
  6000. param iIntrSelectNum :: 0
  6001. }
  6002. object EMIFA_SDRAM_Timer :: ISRC {
  6003. param iComment :: "<add comments here>"
  6004. param iIsUsed :: 0
  6005. param iId :: 0
  6006. param iDelUser :: "USER"
  6007. param iDelMsg :: "ok"
  6008. param iIntrSelectNum :: 3
  6009. }
  6010. object GPIO_Interrupt_4 :: ISRC {
  6011. param iComment :: "<add comments here>"
  6012. param iIsUsed :: 0
  6013. param iId :: 0
  6014. param iDelUser :: "USER"
  6015. param iDelMsg :: "ok"
  6016. param iHwi :: HWI_INT4
  6017. param iIntrSelectNum :: 4
  6018. }
  6019. object GPIO_Interrupt_5 :: ISRC {
  6020. param iComment :: "<add comments here>"
  6021. param iIsUsed :: 0
  6022. param iId :: 0
  6023. param iDelUser :: "USER"
  6024. param iDelMsg :: "ok"
  6025. param iHwi :: HWI_INT5
  6026. param iIntrSelectNum :: 5
  6027. }
  6028. object GPIO_Interrupt_6 :: ISRC {
  6029. param iComment :: "<add comments here>"
  6030. param iIsUsed :: 0
  6031. param iId :: 0
  6032. param iDelUser :: "USER"
  6033. param iDelMsg :: "ok"
  6034. param iHwi :: HWI_INT6
  6035. param iIntrSelectNum :: 6
  6036. }
  6037. object GPIO_Interrupt_7 :: ISRC {
  6038. param iComment :: "<add comments here>"
  6039. param iIsUsed :: 0
  6040. param iId :: 0
  6041. param iDelUser :: "USER"
  6042. param iDelMsg :: "ok"
  6043. param iHwi :: HWI_INT7
  6044. param iIntrSelectNum :: 7
  6045. }
  6046. object EDMA_Interrupt :: ISRC {
  6047. param iComment :: "<add comments here>"
  6048. param iIsUsed :: 0
  6049. param iId :: 0
  6050. param iDelUser :: "USER"
  6051. param iDelMsg :: "ok"
  6052. param iHwi :: HWI_INT8
  6053. param iIntrSelectNum :: 8
  6054. }
  6055. object JTAGRTDX9 :: ISRC {
  6056. param iComment :: "<add comments here>"
  6057. param iIsUsed :: 0
  6058. param iId :: 0
  6059. param iDelUser :: "USER"
  6060. param iDelMsg :: "ok"
  6061. param iHwi :: HWI_UNUSED
  6062. param iIntrSelectNum :: 9
  6063. }
  6064. object EMU_DTDMA :: ISRC {
  6065. param iComment :: "<add comments here>"
  6066. param iIsUsed :: 0
  6067. param iId :: 0
  6068. param iDelUser :: "USER"
  6069. param iDelMsg :: "ok"
  6070. param iHwi :: HWI_INT9
  6071. param iIntrSelectNum :: 9
  6072. }
  6073. object EMU_RTDX_RX :: ISRC {
  6074. param iComment :: "<add comments here>"
  6075. param iIsUsed :: 0
  6076. param iId :: 0
  6077. param iDelUser :: "USER"
  6078. param iDelMsg :: "ok"
  6079. param iHwi :: HWI_INT10
  6080. param iIntrSelectNum :: 10
  6081. }
  6082. object EMU_RTDX_TX :: ISRC {
  6083. param iComment :: "<add comments here>"
  6084. param iIsUsed :: 0
  6085. param iId :: 0
  6086. param iDelUser :: "USER"
  6087. param iDelMsg :: "ok"
  6088. param iHwi :: HWI_INT11
  6089. param iIntrSelectNum :: 11
  6090. }
  6091. object GPIO_Interrupt_0 :: ISRC {
  6092. param iComment :: "<add comments here>"
  6093. param iIsUsed :: 0
  6094. param iId :: 0
  6095. param iDelUser :: "USER"
  6096. param iDelMsg :: "ok"
  6097. param iHwi :: HWI_UNUSED
  6098. param iIntrSelectNum :: 16
  6099. }
  6100. object MCSP_2_Transmit :: ISRC {
  6101. param iComment :: "<add comments here>"
  6102. param iIsUsed :: 0
  6103. param iId :: 0
  6104. param iDelUser :: "USER"
  6105. param iDelMsg :: "ok"
  6106. param iHwi :: HWI_UNUSED
  6107. param iIntrSelectNum :: 17
  6108. }
  6109. object MCSP_2_Receive :: ISRC {
  6110. param iComment :: "<add comments here>"
  6111. param iIsUsed :: 0
  6112. param iId :: 0
  6113. param iDelUser :: "USER"
  6114. param iDelMsg :: "ok"
  6115. param iHwi :: HWI_UNUSED
  6116. param iIntrSelectNum :: 18
  6117. }
  6118. object Timer_2 :: ISRC {
  6119. param iComment :: "<add comments here>"
  6120. param iIsUsed :: 0
  6121. param iId :: 0
  6122. param iDelUser :: "USER"
  6123. param iDelMsg :: "ok"
  6124. param iHwi :: HWI_INT10
  6125. param iIntrSelectNum :: 19
  6126. }
  6127. object EMIFB_SDRAM_Timer :: ISRC {
  6128. param iComment :: "<add comments here>"
  6129. param iIsUsed :: 0
  6130. param iId :: 0
  6131. param iDelUser :: "USER"
  6132. param iDelMsg :: "ok"
  6133. param iHwi :: HWI_UNUSED
  6134. param iIntrSelectNum :: 20
  6135. }
  6136. object PCI_WAKEUP :: ISRC {
  6137. param iComment :: "<add comments here>"
  6138. param iIsUsed :: 0
  6139. param iId :: 0
  6140. param iDelUser :: "USER"
  6141. param iDelMsg :: "ok"
  6142. param iHwi :: HWI_UNUSED
  6143. param iIntrSelectNum :: 21
  6144. }
  6145. object ICINT0 :: ISRC {
  6146. param iComment :: "<add comments here>"
  6147. param iIsUsed :: 0
  6148. param iId :: 0
  6149. param iDelUser :: "USER"
  6150. param iDelMsg :: "ok"
  6151. param iHwi :: HWI_UNUSED
  6152. param iIntrSelectNum :: 22
  6153. }
  6154. object ICINT1 :: ISRC {
  6155. param iComment :: "<add comments here>"
  6156. param iIsUsed :: 0
  6157. param iId :: 0
  6158. param iDelUser :: "USER"
  6159. param iDelMsg :: "ok"
  6160. param iHwi :: HWI_UNUSED
  6161. param iIntrSelectNum :: 23
  6162. }
  6163. object UTOPIA_Interrupt :: ISRC {
  6164. param iComment :: "<add comments here>"
  6165. param iIsUsed :: 0
  6166. param iId :: 0
  6167. param iDelUser :: "USER"
  6168. param iDelMsg :: "ok"
  6169. param iHwi :: HWI_UNUSED
  6170. param iIntrSelectNum :: 23
  6171. }
  6172. object EMAC_MDIO_INT :: ISRC {
  6173. param iComment :: "<add comments here>"
  6174. param iIsUsed :: 0
  6175. param iId :: 0
  6176. param iDelUser :: "USER"
  6177. param iDelMsg :: "ok"
  6178. param iHwi :: HWI_UNUSED
  6179. param iIntrSelectNum :: 24
  6180. }
  6181. object AXINT1 :: ISRC {
  6182. param iComment :: "<add comments here>"
  6183. param iIsUsed :: 0
  6184. param iId :: 0
  6185. param iDelUser :: "USER"
  6186. param iDelMsg :: "ok"
  6187. param iHwi :: HWI_UNUSED
  6188. param iIntrSelectNum :: 24
  6189. }
  6190. object ARINT1 :: ISRC {
  6191. param iComment :: "<add comments here>"
  6192. param iIsUsed :: 0
  6193. param iId :: 0
  6194. param iDelUser :: "USER"
  6195. param iDelMsg :: "ok"
  6196. param iHwi :: HWI_UNUSED
  6197. param iIntrSelectNum :: 25
  6198. }
  6199. object VPINT0 :: ISRC {
  6200. param iComment :: "<add comments here>"
  6201. param iIsUsed :: 0
  6202. param iId :: 0
  6203. param iDelUser :: "USER"
  6204. param iDelMsg :: "ok"
  6205. param iHwi :: HWI_UNUSED
  6206. param iIntrSelectNum :: 25
  6207. }
  6208. object VPINT1 :: ISRC {
  6209. param iComment :: "<add comments here>"
  6210. param iIsUsed :: 0
  6211. param iId :: 0
  6212. param iDelUser :: "USER"
  6213. param iDelMsg :: "ok"
  6214. param iHwi :: HWI_UNUSED
  6215. param iIntrSelectNum :: 26
  6216. }
  6217. object VPINT2 :: ISRC {
  6218. param iComment :: "<add comments here>"
  6219. param iIsUsed :: 0
  6220. param iId :: 0
  6221. param iDelUser :: "USER"
  6222. param iDelMsg :: "ok"
  6223. param iHwi :: HWI_UNUSED
  6224. param iIntrSelectNum :: 27
  6225. }
  6226. object AXINT0 :: ISRC {
  6227. param iComment :: "<add comments here>"
  6228. param iIsUsed :: 0
  6229. param iId :: 0
  6230. param iDelUser :: "USER"
  6231. param iDelMsg :: "ok"
  6232. param iHwi :: HWI_UNUSED
  6233. param iIntrSelectNum :: 28
  6234. }
  6235. object ARINT0 :: ISRC {
  6236. param iComment :: "<add comments here>"
  6237. param iIsUsed :: 0
  6238. param iId :: 0
  6239. param iDelUser :: "USER"
  6240. param iDelMsg :: "ok"
  6241. param iHwi :: HWI_UNUSED
  6242. param iIntrSelectNum :: 29
  6243. }
  6244. type LOG {
  6245. isa ObjectMgr
  6246. prop name :: "LOG"
  6247. prop Label :: "LOG - Event Log Manager"
  6248. prop IsContainedIn :: INS
  6249. prop GlobalIcon :: 113
  6250. prop InstanceIcon :: 114
  6251. prop InstanceHelpTopic :: (207)
  6252. prop GlobalHelpTopic :: (107)
  6253. prop InstancePropertyPage :: ("{B7240DE8-AA51-11cf-9BFE-0000C0AC14C7}")
  6254. prop GlobalPropertyPage :: ("{B7240DE9-AA51-11cf-9BFE-0000C0AC14C7}")
  6255. prop maxObjs :: (32767)
  6256. prop AllocType :: ("1\0, _globalAllocDesc, _memSeg, _placement")
  6257. prop _globalAllocDesc :: ("%8t .%1L: {%12t\n %1U_A_TABBEG = .;\n _%1U_A_TABBEG = .;\n %2S\n %1U_A_TABEND = .;\n _%1U_A_TABEND = .;\n %1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;\n _%1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;%8t\n }\0, name, _linkString, _objSize")
  6258. prop objectSize :: (if (GBL.DSPTYPE == 28 || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE")) {$a = (10 * 4)} , if (GBL.DSPTYPE == 62 || GBL.DSPTYPE == 54 || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL")) {$a = (6 * 4)} , $a)
  6259. prop _placement :: (0x7fffffff / 2)
  6260. prop AllocInst :: ("1\0, _instAllocDesc, _objMemSeg, _placement")
  6261. prop _instAllocDesc :: ("%8t /* %0s buffer */\n .%0s$buf: align = 0x%1x {}\0, _objAlign")
  6262. prop _objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  6263. prop _memSeg :: LOG.OBJMEMSEG
  6264. prop _linkString :: if self.gNumOf > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  6265. prop _objAlign :: if GBL.DSPTYPE == 55 {self.buflen * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE) * 2} else {self.buflen * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE)}
  6266. prop _objMemSeg :: self.bufseg
  6267. prop LogType :: self.iType
  6268. prop LogFormat :: self.iFormat
  6269. prop cGen :: 1
  6270. prop cHeaderName :: if self.gNumOf > 0 {"log.h"} else {""}
  6271. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far LOG_Obj %0r;\n\0"} else {"extern LOG_Obj %0r;\n\0"})
  6272. prop dataSize :: ($d = 0, scan ($i; LOG) {if ($i.IsConfObj()) {$d += $i.buflen} , $d += self.objectSize()}, $d)
  6273. global gUser :: "USER" {
  6274. prop Visible :: 0
  6275. prop Writable :: 0
  6276. prop NoGen :: 1
  6277. }
  6278. global gSetOf :: 0 {
  6279. prop Visible :: 0
  6280. prop Writable :: 0
  6281. prop NoGen :: 1
  6282. }
  6283. global gNumOf :: 1 {
  6284. prop Visible :: 0
  6285. prop Writable :: 0
  6286. prop NoGen :: 1
  6287. }
  6288. global gDirty :: 0 {
  6289. prop Visible :: 0
  6290. prop Writable :: 0
  6291. prop NoGen :: 1
  6292. }
  6293. global gInitFlag :: 1 {
  6294. prop Visible :: 0
  6295. prop Writable :: 0
  6296. prop NoGen :: 1
  6297. }
  6298. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  6299. prop Visible :: 0
  6300. prop Writable :: 0
  6301. prop NoGen :: 1
  6302. }
  6303. global OBJMEMSEG :: IRAM {
  6304. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6305. prop MemberType :: MEM
  6306. prop MemberTest :: MEM.dataMember($1)
  6307. prop Label :: "Object Memory"
  6308. prop JSName :: "OBJMEMSEG"
  6309. prop Visible :: 1
  6310. prop Writable :: 1
  6311. prop NoGen :: 1
  6312. }
  6313. global ENABLED :: 1 {
  6314. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  6315. prop Label :: "Compile in logging"
  6316. prop Visible :: 0
  6317. prop Writable :: 0
  6318. prop NoGen :: 0
  6319. }
  6320. global TS :: 0 {
  6321. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  6322. prop Label :: "timestamped LOGs"
  6323. prop JSName :: "TS"
  6324. prop Visible :: 0
  6325. prop Writable :: 1
  6326. prop NoGen :: 1
  6327. }
  6328. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  6329. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  6330. prop Label :: "comment"
  6331. prop JSName :: "comment"
  6332. prop Visible :: 1
  6333. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  6334. prop NoGen :: 1
  6335. }
  6336. inst iIsUsed :: 0 {
  6337. prop Visible :: 0
  6338. prop Writable :: 0
  6339. prop NoGen :: 1
  6340. }
  6341. inst iId :: 0 {
  6342. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6343. prop Style :: 0x01
  6344. prop Visible :: 0
  6345. prop Writable :: 1
  6346. prop NoGen :: 1
  6347. }
  6348. inst iDelUser :: "USER" {
  6349. prop Visible :: 0
  6350. prop Writable :: 0
  6351. prop NoGen :: 1
  6352. }
  6353. inst iDelMsg :: "ok" {
  6354. prop Visible :: 0
  6355. prop Writable :: 0
  6356. prop NoGen :: 1
  6357. }
  6358. inst bufseg :: = self.OBJMEMSEG {
  6359. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6360. prop MemberType :: MEM
  6361. prop MemberTest :: MEM.dataMember($1)
  6362. prop Label :: "bufseg"
  6363. prop JSName :: "bufSeg"
  6364. prop Visible :: 1
  6365. prop Writable :: 1
  6366. prop NoGen :: 0
  6367. }
  6368. inst buflen :: 64 {
  6369. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  6370. prop Enum :: "0,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576,2097152,4194304,8388608,16777216,33554432"
  6371. prop Label :: "buflen (words)"
  6372. prop JSName :: "bufLen"
  6373. prop Visible :: 1
  6374. prop Writable :: 1
  6375. prop NoGen :: 0
  6376. prop Set :: (GlobalStatus.gDirty = 1, self.buflen = $1, "ok")
  6377. }
  6378. inst logtype :: "circular" {
  6379. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  6380. prop Enum :: "circular,fixed"
  6381. prop Label :: "logtype"
  6382. prop JSName :: "logType"
  6383. prop Visible :: 1
  6384. prop Writable :: 1
  6385. prop NoGen :: 0
  6386. }
  6387. inst iType :: "printf" {
  6388. prop Label :: "datatype"
  6389. prop JSName :: "dataType"
  6390. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  6391. prop Enum :: "printf,raw data"
  6392. prop Visible :: 1
  6393. prop Writable :: if self.iType == "system" {0} else {1}
  6394. prop NoGen :: 0
  6395. }
  6396. inst iFormat :: "0x%x, 0x%x, 0x%x" {
  6397. prop Label :: "format"
  6398. prop JSName :: "format"
  6399. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  6400. prop Visible :: 1
  6401. prop Writable :: if self.iType == "raw data" {1} else {0}
  6402. prop NoGen :: 0
  6403. }
  6404. }
  6405. object LOG_system :: LOG {
  6406. param iComment :: "This object is required by the system to accumulate execution trace information"
  6407. param iIsUsed :: 1
  6408. param iId :: 0
  6409. param iDelUser :: "LOG"
  6410. param iDelMsg :: "LOG_system is a system log and cannot be deleted."
  6411. param bufseg :: IRAM
  6412. param buflen :: 64
  6413. param logtype :: "circular"
  6414. param iType :: "system"
  6415. param iFormat :: "0x%x, 0x%x, 0x%x"
  6416. }
  6417. type PIP {
  6418. isa ObjectMgr
  6419. prop Label :: "PIP - Buffered Pipe Manager"
  6420. prop IsContainedIn :: IOF
  6421. prop GlobalIcon :: 117
  6422. prop InstanceIcon :: 118
  6423. prop GlobalHelpTopic :: (109)
  6424. prop InstanceHelpTopic :: (209)
  6425. prop name :: "PIP"
  6426. prop maxObjs :: (32767)
  6427. prop objectSize :: (if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (27 * 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (34 * 4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (30 * 4)} , if (GBL.DSPTYPE == 28 || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") || (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE")) {$a = (50 * 4)} , if (GBL.DSPTYPE == 62) {$a = (25 * 4)} , $a)
  6428. prop dataSize :: ($b = 0, scan ($i; PIP) {if ($i.IsConfObj()) {$b += (12 + $i.framesize) * $i.numframes + self.objectSize()} }, $b)
  6429. prop InstancePropertyPage :: ("{B7240DF0-AA51-11cf-9BFE-0000C0AC14C8}")
  6430. prop GlobalPropertyPage :: ("{B7240DF1-AA51-11cf-9BFE-0000C0AC14C8}")
  6431. prop localCreate :: ("ok")
  6432. prop AllocType :: ("1\0, _globalAllocDesc, _memSeg, _placement")
  6433. prop _globalAllocDesc :: ("%8t .%1L: {%12t\n %1U_A_TABBEG = .;\n _%1U_A_TABBEG = .;\n %2S\n %1U_A_TABEND = .;\n _%1U_A_TABEND = .;\n %1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;\n _%1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;%8t\n }\0, name, _linkString, _objSize")
  6434. prop AllocInst :: ("1\0, _instAllocDesc, _objMemSeg, _placement")
  6435. prop _instAllocDesc :: (if self.bufalign > 0 {"%8t /* %0s buffer */\n .pip%1d: align = 0x%2x {}\0, _objId, _objAlign"} else {"%8t /* %0s buffer */\n .pip%1d: {}\0, _objId"})
  6436. prop _placement :: (0x7fffffff / 2)
  6437. prop _objId :: self.iId
  6438. prop _objAlign :: self.bufalign * 4
  6439. prop _objMemSeg :: self.bufseg
  6440. prop _linkString :: if (self.gNumOf + self.gNumEmbed) > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  6441. prop _memSeg :: PIP.OBJMEMSEG
  6442. prop _objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  6443. prop mkId :: (self.iId = self.gNextId++, self.gNumOf++, self.iId)
  6444. prop cGen :: 1
  6445. prop cHeaderName :: if self.gNumOf > 0 {"pip.h"} else {""}
  6446. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far PIP_Obj %0r;\n\0"} else {"extern PIP_Obj %0r;\n\0"})
  6447. global gUser :: "USER" {
  6448. prop Visible :: 0
  6449. prop Writable :: 0
  6450. prop NoGen :: 1
  6451. }
  6452. global gSetOf :: 0 {
  6453. prop Visible :: 0
  6454. prop Writable :: 0
  6455. prop NoGen :: 1
  6456. }
  6457. global gNumOf :: 0 {
  6458. prop Visible :: 0
  6459. prop Writable :: 0
  6460. prop NoGen :: 1
  6461. }
  6462. global gDirty :: 0 {
  6463. prop Visible :: 0
  6464. prop Writable :: 0
  6465. prop NoGen :: 1
  6466. }
  6467. global gInitFlag :: 1 {
  6468. prop Visible :: 0
  6469. prop Writable :: 0
  6470. prop NoGen :: 1
  6471. }
  6472. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  6473. prop Visible :: 0
  6474. prop Writable :: 0
  6475. prop NoGen :: 1
  6476. }
  6477. global OBJMEMSEG :: IRAM {
  6478. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6479. prop MemberType :: MEM
  6480. prop MemberTest :: MEM.dataMember($1)
  6481. prop Label :: "Object Memory"
  6482. prop JSName :: "OBJMEMSEG"
  6483. prop Visible :: 1
  6484. prop Writable :: 1
  6485. prop NoGen :: 1
  6486. }
  6487. global gNumEmbed :: 2 {
  6488. prop NoGen :: 0
  6489. }
  6490. global gNextId :: 0
  6491. global OBJSIZE :: = self._objSize
  6492. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  6493. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  6494. prop Label :: "comment"
  6495. prop JSName :: "comment"
  6496. prop Visible :: 1
  6497. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  6498. prop NoGen :: 1
  6499. }
  6500. inst iIsUsed :: 0 {
  6501. prop Visible :: 0
  6502. prop Writable :: 0
  6503. prop NoGen :: 1
  6504. }
  6505. inst iId :: 0 {
  6506. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6507. prop Style :: 0x01
  6508. prop Visible :: 0
  6509. prop Writable :: 1
  6510. prop NoGen :: 1
  6511. }
  6512. inst iDelUser :: "USER" {
  6513. prop Visible :: 0
  6514. prop Writable :: 0
  6515. prop NoGen :: 1
  6516. }
  6517. inst iDelMsg :: "ok" {
  6518. prop Visible :: 0
  6519. prop Writable :: 0
  6520. prop NoGen :: 1
  6521. }
  6522. inst bufseg :: = self.OBJMEMSEG {
  6523. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6524. prop JSName :: "bufSeg"
  6525. prop MemberType :: MEM
  6526. prop MemberTest :: MEM.dataMember($1)
  6527. prop Visible :: 1
  6528. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6529. prop NoGen :: 1
  6530. }
  6531. inst bufalign :: 1 {
  6532. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6533. prop JSName :: "bufAlign"
  6534. prop Style :: 0x01 | 0x02
  6535. prop Visible :: 1
  6536. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6537. prop NoGen :: 1
  6538. prop Set :: ($e = "ok", if ($1 == 0) {$e = self.error("Cannot set align value to 0")} else {self.bufalign = $1}, $e)
  6539. }
  6540. inst buf :: "<NULL>" {
  6541. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  6542. prop Visible :: 0
  6543. prop Writable :: 0
  6544. prop NoGen :: 0
  6545. }
  6546. inst framesize :: 8 {
  6547. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6548. prop Label :: "framesize (words)"
  6549. prop JSName :: "frameSize"
  6550. prop Style :: if GBL.DSPTYPE == 62 {0x02} else {0x01 | 0x02}
  6551. prop Visible :: 1
  6552. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6553. prop NoGen :: 0
  6554. prop Set :: (if ($1 < 1) {self.error("framesize must be >= 1.")} else {GlobalStatus.gDirty = 1, self.framesize = $1, "ok"})
  6555. }
  6556. inst numframes :: 2 {
  6557. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6558. prop Style :: 0x01
  6559. prop JSName :: "numFrames"
  6560. prop Visible :: 1
  6561. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6562. prop NoGen :: 0
  6563. prop Set :: (if ($1 < 1) {self.error("Pipes must contain at least 1 frame.")} else {GlobalStatus.gDirty = 1, self.numframes = $1, "ok"})
  6564. }
  6565. inst monitor :: "reader" {
  6566. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  6567. prop JSName :: "monitor"
  6568. prop Enum :: "reader,writer,none"
  6569. prop Visible :: 1
  6570. prop Writable :: 1
  6571. prop NoGen :: 0
  6572. }
  6573. inst notifyWriter :: @_FXN_F_nop {
  6574. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  6575. prop JSName :: "notifyWriterFxn"
  6576. prop Visible :: 1
  6577. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6578. prop NoGen :: 0
  6579. prop TabName :: "Notify Functions"
  6580. }
  6581. inst nwarg0 :: 0 {
  6582. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  6583. prop JSName :: "notifyWriterArg0"
  6584. prop Visible :: 1
  6585. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6586. prop NoGen :: 0
  6587. prop TabName :: "Notify Functions"
  6588. }
  6589. inst nwarg1 :: 0 {
  6590. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  6591. prop JSName :: "notifyWriterArg1"
  6592. prop Visible :: 1
  6593. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6594. prop NoGen :: 0
  6595. prop TabName :: "Notify Functions"
  6596. }
  6597. inst notifyReader :: @_FXN_F_nop {
  6598. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  6599. prop JSName :: "notifyReaderFxn"
  6600. prop Visible :: 1
  6601. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6602. prop NoGen :: 0
  6603. prop TabName :: "Notify Functions"
  6604. }
  6605. inst nrarg0 :: 0 {
  6606. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  6607. prop JSName :: "notifyReaderArg0"
  6608. prop Visible :: 1
  6609. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6610. prop NoGen :: 0
  6611. prop TabName :: "Notify Functions"
  6612. }
  6613. inst nrarg1 :: 0 {
  6614. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  6615. prop JSName :: "notifyReaderArg1"
  6616. prop Visible :: 1
  6617. prop Writable :: (if self.iDelUser == "USER" {1} else {0})
  6618. prop NoGen :: 0
  6619. prop TabName :: "Notify Functions"
  6620. }
  6621. inst bufFrameAlign :: = self._objAlign {
  6622. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6623. prop Visible :: 0
  6624. prop Writable :: 0
  6625. prop NoGen :: 0
  6626. }
  6627. }
  6628. type SEM {
  6629. isa ObjectMgr
  6630. prop name :: "SEM"
  6631. prop Label :: "SEM - Semaphore Manager"
  6632. prop IsContainedIn :: SYN
  6633. prop GlobalIcon :: 137
  6634. prop InstanceIcon :: 138
  6635. prop GlobalHelpTopic :: (310)
  6636. prop InstanceHelpTopic :: (410)
  6637. prop InstancePropertyPage :: ("{D01ACC04-38DD-11d1-988B-0020AFEE33C6}")
  6638. prop GlobalPropertyPage :: ("{D01ACC05-38DD-11d1-988B-0020AFEE33C6}")
  6639. prop maxObjs :: (32767)
  6640. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  6641. prop _globalAllocDesc :: ("%8t .sem: {}")
  6642. prop _placement :: (0x7fffffff / 2)
  6643. prop _memSeg :: self.OBJMEMSEG
  6644. prop objectSize :: (if (GBL.DSPTYPE == 62) {$a = (8 + 3)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (10 + 4)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (8 + 3)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (16 + 6)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (16 + 6)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (10 + 4)} , if (GBL.DSPTYPE == 28) {$a = (16 + 6)} , $a)
  6645. prop dataSize :: (SEM.objectSize * SEM.gNumOf * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE))
  6646. prop cGen :: 1
  6647. prop cHeaderName :: if self.gNumOf > 0 {"sem.h"} else {""}
  6648. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far SEM_Obj %0r;\n\0"} else {"extern SEM_Obj %0r;\n\0"})
  6649. global gUser :: "USER" {
  6650. prop Visible :: 0
  6651. prop Writable :: 0
  6652. prop NoGen :: 1
  6653. }
  6654. global gSetOf :: 0 {
  6655. prop Visible :: 0
  6656. prop Writable :: 0
  6657. prop NoGen :: 1
  6658. }
  6659. global gNumOf :: 0 {
  6660. prop Visible :: 0
  6661. prop Writable :: 0
  6662. prop NoGen :: 1
  6663. }
  6664. global gDirty :: 0 {
  6665. prop Visible :: 0
  6666. prop Writable :: 0
  6667. prop NoGen :: 1
  6668. }
  6669. global gInitFlag :: 1 {
  6670. prop Visible :: 0
  6671. prop Writable :: 0
  6672. prop NoGen :: 1
  6673. }
  6674. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  6675. prop Visible :: 0
  6676. prop Writable :: 0
  6677. prop NoGen :: 1
  6678. }
  6679. global CALLBACKOBJ :: nil {
  6680. prop Visible :: 0
  6681. prop Writable :: 0
  6682. prop NoGen :: 1
  6683. }
  6684. global OBJMEMSEG :: IRAM {
  6685. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6686. prop MemberType :: MEM
  6687. prop MemberTest :: MEM.dataMember($1)
  6688. prop Label :: "Object Memory"
  6689. prop JSName :: "OBJMEMSEG"
  6690. prop Visible :: 1
  6691. prop Writable :: 1
  6692. prop NoGen :: 1
  6693. }
  6694. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  6695. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  6696. prop Label :: "comment"
  6697. prop JSName :: "comment"
  6698. prop Visible :: 1
  6699. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  6700. prop NoGen :: 1
  6701. }
  6702. inst iIsUsed :: 0 {
  6703. prop Visible :: 0
  6704. prop Writable :: 0
  6705. prop NoGen :: 1
  6706. }
  6707. inst iId :: 0 {
  6708. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6709. prop Style :: 0x01
  6710. prop Visible :: 0
  6711. prop Writable :: 1
  6712. prop NoGen :: 1
  6713. }
  6714. inst iDelUser :: "USER" {
  6715. prop Visible :: 0
  6716. prop Writable :: 0
  6717. prop NoGen :: 1
  6718. }
  6719. inst iDelMsg :: "ok" {
  6720. prop Visible :: 0
  6721. prop Writable :: 0
  6722. prop NoGen :: 1
  6723. }
  6724. inst iCount :: 0 {
  6725. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6726. prop Style :: 0x02
  6727. prop Label :: "Initial semaphore count"
  6728. prop JSName :: "count"
  6729. prop Visible :: 1
  6730. prop Writable :: 1
  6731. }
  6732. }
  6733. type MBX {
  6734. isa ObjectMgr
  6735. prop name :: "MBX"
  6736. prop Label :: "MBX - Mailbox Manager"
  6737. prop IsContainedIn :: SYN
  6738. prop GlobalIcon :: 131
  6739. prop InstanceIcon :: 132
  6740. prop GlobalHelpTopic :: (307)
  6741. prop InstanceHelpTopic :: (407)
  6742. prop InstancePropertyPage :: ("{0EB45D44-38C1-11d1-988B-0020AFEE33C6}")
  6743. prop GlobalPropertyPage :: ("{0EB45D45-38C1-11d1-988B-0020AFEE33C6}")
  6744. prop maxObjs :: (32767)
  6745. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _bssAllocDesc, _memSeg, _placement"} )
  6746. prop _bssAllocDesc :: ("%8t .mbx: {}")
  6747. prop _placement :: (0x7fffffff / 2)
  6748. prop _memSeg :: self.OBJMEMSEG
  6749. prop AllocInst :: ("1\0 _instAllocDesc, _instMemSeg, _placement")
  6750. prop _instAllocDesc :: ("%8t .%0s$que: align = 0x4 {%12t\n %0s$queElems = .;\n . += %1d;%8t\n }\0, _qElemSize")
  6751. prop _instMemSeg :: self.iMbxSeg
  6752. prop _qElemSize :: (if ((GBL.DSPTYPE == 55) && (GBL.DSPSUBTYPE != 5599)) {$a = self.iMsgSize, if ($a & 0x1) {$a += 1} , (8 + $a) * self.iMbxLength * 2} else {if (GBL.DSPTYPE == 28) {$a = self.iMsgSize, if ($a & 0x1) {$a += 1} , (8 + $a) * self.iMbxLength} else {$a = self.iMsgSize, $b = GBL.DSPWORDSIZE / GBL.DSPCHARSIZE, $c = $a & ($b - 1), if ($c != 0) {$a = $a + ($b - $c)} , (8 + $a) * self.iMbxLength}})
  6753. prop objectSize :: (if (GBL.DSPTYPE == 62) {$a = (29)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (28)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (24)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (46)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (46)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (28)} , if (GBL.DSPTYPE == 28) {$a = (46)} , $a)
  6754. prop dataSize :: ($d = 0, scan ($i; MBX) {$d += (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE) * (($i.iMsgSize + 2) * $i.iMbxLength + self.objectSize())}, $d)
  6755. prop cGen :: 1
  6756. prop cHeaderName :: if self.gNumOf > 0 {"mbx.h"} else {""}
  6757. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far MBX_Obj %0r;\n\0"} else {"extern MBX_Obj %0r;\n\0"})
  6758. global gUser :: "USER" {
  6759. prop Visible :: 0
  6760. prop Writable :: 0
  6761. prop NoGen :: 1
  6762. }
  6763. global gSetOf :: 0 {
  6764. prop Visible :: 0
  6765. prop Writable :: 0
  6766. prop NoGen :: 1
  6767. }
  6768. global gNumOf :: 0 {
  6769. prop Visible :: 0
  6770. prop Writable :: 0
  6771. prop NoGen :: 1
  6772. }
  6773. global gDirty :: 0 {
  6774. prop Visible :: 0
  6775. prop Writable :: 0
  6776. prop NoGen :: 1
  6777. }
  6778. global gInitFlag :: 1 {
  6779. prop Visible :: 0
  6780. prop Writable :: 0
  6781. prop NoGen :: 1
  6782. }
  6783. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  6784. prop Visible :: 0
  6785. prop Writable :: 0
  6786. prop NoGen :: 1
  6787. }
  6788. global CALLBACKOBJ :: nil {
  6789. prop Visible :: 0
  6790. prop Writable :: 0
  6791. prop NoGen :: 1
  6792. }
  6793. global OBJMEMSEG :: IRAM {
  6794. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6795. prop MemberType :: MEM
  6796. prop MemberTest :: MEM.dataMember($1)
  6797. prop Label :: "Object Memory"
  6798. prop JSName :: "OBJMEMSEG"
  6799. prop Visible :: 1
  6800. prop Writable :: 1
  6801. prop NoGen :: 1
  6802. }
  6803. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  6804. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  6805. prop Label :: "comment"
  6806. prop JSName :: "comment"
  6807. prop Visible :: 1
  6808. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  6809. prop NoGen :: 1
  6810. }
  6811. inst iIsUsed :: 0 {
  6812. prop Visible :: 0
  6813. prop Writable :: 0
  6814. prop NoGen :: 1
  6815. }
  6816. inst iId :: 0 {
  6817. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6818. prop Style :: 0x01
  6819. prop Visible :: 0
  6820. prop Writable :: 1
  6821. prop NoGen :: 1
  6822. }
  6823. inst iDelUser :: "USER" {
  6824. prop Visible :: 0
  6825. prop Writable :: 0
  6826. prop NoGen :: 1
  6827. }
  6828. inst iDelMsg :: "ok" {
  6829. prop Visible :: 0
  6830. prop Writable :: 0
  6831. prop NoGen :: 1
  6832. }
  6833. inst iMsgSize :: 1 {
  6834. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6835. prop Style :: 0x02
  6836. prop Label :: "Message Size"
  6837. prop JSName :: "messageSize"
  6838. prop Visible :: 1
  6839. prop Writable :: 1
  6840. prop Set :: (if ($1 == 0) {self.error("Message size cannot be zero")} else {GlobalStatus.gDirty = 1, self.iMsgSize = $1, "ok"})
  6841. }
  6842. inst iMbxLength :: 1 {
  6843. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6844. prop Style :: 0x02
  6845. prop Label :: "Mailbox Length"
  6846. prop JSName :: "length"
  6847. prop Visible :: 1
  6848. prop Writable :: 1
  6849. prop Set :: (if ($1 == 0) {self.error("Mailbox length cannot be zero")} else {GlobalStatus.gDirty = 1, self.iMbxLength = $1, "ok"})
  6850. }
  6851. inst iMbxSeg :: MBX.OBJMEMSEG {
  6852. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6853. prop MemberType :: MEM
  6854. prop MemberTest :: MEM.dataMember($1)
  6855. prop Label :: "Element memory segment"
  6856. prop JSName :: "elementSeg"
  6857. prop Visible :: 1
  6858. prop Writable :: 1
  6859. }
  6860. }
  6861. type QUE {
  6862. isa ObjectMgr
  6863. prop name :: "QUE"
  6864. prop Label :: "QUE - Atomic Queue Manager"
  6865. prop IsContainedIn :: SYN
  6866. prop GlobalIcon :: 133
  6867. prop InstanceIcon :: 134
  6868. prop IsConfMod :: 1
  6869. prop GlobalHelpTopic :: (309)
  6870. prop InstanceHelpTopic :: (409)
  6871. prop InstancePropertyPage :: ("{D01ACC01-38DD-11d1-988B-0020AFEE33C6}")
  6872. prop GlobalPropertyPage :: ("{D01ACC02-38DD-11d1-988B-0020AFEE33C6}")
  6873. prop maxObjs :: (32767)
  6874. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  6875. prop _globalAllocDesc :: ("%8t .que: {}")
  6876. prop _placement :: (0x7fffffff / 2)
  6877. prop _memSeg :: self.OBJMEMSEG
  6878. prop objectSize :: (if (GBL.DSPTYPE == 62) {$a = (2)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (2)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (2)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (4)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (2)} , if (GBL.DSPTYPE == 28) {$a = (4)} , $a)
  6879. prop dataSize :: (QUE.objectSize * QUE.gNumOf * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE))
  6880. prop cGen :: 1
  6881. prop cHeaderName :: if self.gNumOf > 0 {"que.h"} else {""}
  6882. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far QUE_Obj %0r;\n\0"} else {"extern QUE_Obj %0r;\n\0"})
  6883. global gUser :: "USER" {
  6884. prop Visible :: 0
  6885. prop Writable :: 0
  6886. prop NoGen :: 1
  6887. }
  6888. global gSetOf :: 0 {
  6889. prop Visible :: 0
  6890. prop Writable :: 0
  6891. prop NoGen :: 1
  6892. }
  6893. global gNumOf :: 0 {
  6894. prop Visible :: 0
  6895. prop Writable :: 0
  6896. prop NoGen :: 1
  6897. }
  6898. global gDirty :: 0 {
  6899. prop Visible :: 0
  6900. prop Writable :: 0
  6901. prop NoGen :: 1
  6902. }
  6903. global gInitFlag :: 1 {
  6904. prop Visible :: 0
  6905. prop Writable :: 0
  6906. prop NoGen :: 1
  6907. }
  6908. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  6909. prop Visible :: 0
  6910. prop Writable :: 0
  6911. prop NoGen :: 1
  6912. }
  6913. global CALLBACKOBJ :: nil {
  6914. prop Visible :: 0
  6915. prop Writable :: 0
  6916. prop NoGen :: 1
  6917. }
  6918. global OBJMEMSEG :: IRAM {
  6919. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  6920. prop MemberType :: MEM
  6921. prop MemberTest :: MEM.dataMember($1)
  6922. prop Label :: "Object Memory"
  6923. prop JSName :: "OBJMEMSEG"
  6924. prop Visible :: 1
  6925. prop Writable :: 1
  6926. prop NoGen :: 1
  6927. }
  6928. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  6929. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  6930. prop Label :: "comment"
  6931. prop JSName :: "comment"
  6932. prop Visible :: 1
  6933. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  6934. prop NoGen :: 1
  6935. }
  6936. inst iIsUsed :: 0 {
  6937. prop Visible :: 0
  6938. prop Writable :: 0
  6939. prop NoGen :: 1
  6940. }
  6941. inst iId :: 0 {
  6942. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  6943. prop Style :: 0x01
  6944. prop Visible :: 0
  6945. prop Writable :: 1
  6946. prop NoGen :: 1
  6947. }
  6948. inst iDelUser :: "USER" {
  6949. prop Visible :: 0
  6950. prop Writable :: 0
  6951. prop NoGen :: 1
  6952. }
  6953. inst iDelMsg :: "ok" {
  6954. prop Visible :: 0
  6955. prop Writable :: 0
  6956. prop NoGen :: 1
  6957. }
  6958. }
  6959. type LCK {
  6960. isa ObjectMgr
  6961. prop name :: "LCK"
  6962. prop Label :: "LCK - Resource Lock Manager"
  6963. prop IsContainedIn :: SYN
  6964. prop GlobalIcon :: 129
  6965. prop InstanceIcon :: 130
  6966. prop IsConfMod :: 1
  6967. prop GlobalHelpTopic :: (306)
  6968. prop InstanceHelpTopic :: (406)
  6969. prop InstancePropertyPage :: ("{0EB45D40-38C1-11d1-988B-0020AFEE33C6}")
  6970. prop GlobalPropertyPage :: ("{0EB45D41-38C1-11d1-988B-0020AFEE33C6}")
  6971. prop maxObjs :: (32767)
  6972. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _bssAllocDesc, _memSeg, _placement"} )
  6973. prop _bssAllocDesc :: ("%8t .lck: {}")
  6974. prop _objAllocDesc :: ("%8t .LCK$obj: {}")
  6975. prop _placement :: (0x7fffffff / 2)
  6976. prop _memSeg :: self.OBJMEMSEG
  6977. prop objectSize :: (if (GBL.DSPTYPE == 62) {$a = (10)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (12)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (10)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (20)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (20)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (12)} , if (GBL.DSPTYPE == 28) {$a = (20)} , $a)
  6978. prop dataSize :: (LCK.objectSize * LCK.gNumOf * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE))
  6979. prop cGen :: 1
  6980. prop cHeaderName :: if self.gNumOf > 0 {"lck.h"} else {""}
  6981. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far LCK_Obj %0r;\n\0"} else {"extern LCK_Obj %0r;\n\0"})
  6982. global gUser :: "USER" {
  6983. prop Visible :: 0
  6984. prop Writable :: 0
  6985. prop NoGen :: 1
  6986. }
  6987. global gSetOf :: 0 {
  6988. prop Visible :: 0
  6989. prop Writable :: 0
  6990. prop NoGen :: 1
  6991. }
  6992. global gNumOf :: 0 {
  6993. prop Visible :: 0
  6994. prop Writable :: 0
  6995. prop NoGen :: 1
  6996. }
  6997. global gDirty :: 0 {
  6998. prop Visible :: 0
  6999. prop Writable :: 0
  7000. prop NoGen :: 1
  7001. }
  7002. global gInitFlag :: 1 {
  7003. prop Visible :: 0
  7004. prop Writable :: 0
  7005. prop NoGen :: 1
  7006. }
  7007. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7008. prop Visible :: 0
  7009. prop Writable :: 0
  7010. prop NoGen :: 1
  7011. }
  7012. global CALLBACKOBJ :: nil {
  7013. prop Visible :: 0
  7014. prop Writable :: 0
  7015. prop NoGen :: 1
  7016. }
  7017. global OBJMEMSEG :: IRAM {
  7018. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  7019. prop MemberType :: MEM
  7020. prop MemberTest :: MEM.dataMember($1)
  7021. prop Label :: "Object Memory"
  7022. prop JSName :: "OBJMEMSEG"
  7023. prop Visible :: 1
  7024. prop Writable :: 1
  7025. prop NoGen :: 1
  7026. }
  7027. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  7028. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7029. prop Label :: "comment"
  7030. prop JSName :: "comment"
  7031. prop Visible :: 1
  7032. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  7033. prop NoGen :: 1
  7034. }
  7035. inst iIsUsed :: 0 {
  7036. prop Visible :: 0
  7037. prop Writable :: 0
  7038. prop NoGen :: 1
  7039. }
  7040. inst iId :: 0 {
  7041. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7042. prop Style :: 0x01
  7043. prop Visible :: 0
  7044. prop Writable :: 1
  7045. prop NoGen :: 1
  7046. }
  7047. inst iDelUser :: "USER" {
  7048. prop Visible :: 0
  7049. prop Writable :: 0
  7050. prop NoGen :: 1
  7051. }
  7052. inst iDelMsg :: "ok" {
  7053. prop Visible :: 0
  7054. prop Writable :: 0
  7055. prop NoGen :: 1
  7056. }
  7057. }
  7058. type STS {
  7059. isa ObjectMgr
  7060. prop name :: "STS"
  7061. prop Label :: "STS - Statistics Object Manager"
  7062. prop IsContainedIn :: INS
  7063. prop GlobalIcon :: 125
  7064. prop InstanceIcon :: 126
  7065. prop InstanceHelpTopic :: (212)
  7066. prop GlobalHelpTopic :: (112)
  7067. prop AllocType :: ("1\0, _globalAllocDesc, _memSeg, _placement")
  7068. prop _globalAllocDesc :: ("%8t .%1L: {%12t\n %1U_A_TABBEG = .;\n _%1U_A_TABBEG = .;\n %2S\n %1U_A_TABEND = .;\n _%1U_A_TABEND = .;\n %1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;\n _%1U_A_TABLEN = (. - _%1U_A_TABBEG) / %3d;%8t\n }\0, name, _linkString, _objSize")
  7069. prop localInit :: (if (PRD.CALLBACKOBJ != nil) {self.error("STS initialization failure")} , PRD.CALLBACKOBJ = STS)
  7070. prop objectSize :: ((4 * 4))
  7071. prop _placement :: (0x7fffffff / 2)
  7072. prop _linkString :: if self.gNumOf > 0 {"*(.%1L)"} else {"/* no %1U objects */"}
  7073. prop _memSeg :: STS.OBJMEMSEG
  7074. prop _objSize :: if GBL.DSPTYPE == 55 {(2 * self.objectSize())} else {self.objectSize()}
  7075. prop dataSize :: (self.objectSize() * (STS.gNumOf + STS.gNumEmbed))
  7076. prop maxObjs :: (32767)
  7077. prop InstancePropertyPage :: ("{B7240DEE-AA51-11cf-9BFE-0000C0AC14C7}")
  7078. prop GlobalPropertyPage :: ("{B7240DEF-AA51-11cf-9BFE-0000C0AC14C7}")
  7079. prop STSGetMaxFmt :: (self.format)
  7080. prop STSGetSumFmt :: (self.format)
  7081. prop STSGetAvgFmt :: ("%.2f")
  7082. prop STSFilterSum :: ((self.iA * $1 + self.iB * $2) / (1.0 * self.iC))
  7083. prop STSFilterMax :: ((self.iA * $1 + self.iB) / (1.0 * self.iC))
  7084. prop HighTimeBased :: (if self.unittype == "High resolution time based" {1} else {0})
  7085. prop LowTimeBased :: (if self.unittype == "Low resolution time based" {1} else {0})
  7086. prop cGen :: 1
  7087. prop cHeaderName :: if self.gNumOf > 0 {"sts.h"} else {""}
  7088. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far STS_Obj %0r;\n\0"} else {"extern STS_Obj %0r;\n\0"})
  7089. prop modifiable :: ((if (self.iDelUser == "USER" || self.iDelUser == "HWI") {1} else {0}))
  7090. prop untype :: (if (self.unittype == "Not time based") {$a = 2} , if (self.unittype == "High resolution time based") {$a = 0} , if (self.unittype == "Low resolution time based") {$a = 1} , $a)
  7091. prop optype :: (if (self.operation == "Nothing") {$a = 0} , if (self.operation == "A * x") {$a = 1} , if (self.operation == "A * x + B") {$a = 2} , if (self.operation == "(A * x + B) / C") {$a = 3} , $a)
  7092. global gUser :: "USER" {
  7093. prop Visible :: 0
  7094. prop Writable :: 0
  7095. prop NoGen :: 1
  7096. }
  7097. global gSetOf :: 0 {
  7098. prop Visible :: 0
  7099. prop Writable :: 0
  7100. prop NoGen :: 1
  7101. }
  7102. global gNumOf :: 1 {
  7103. prop Visible :: 0
  7104. prop Writable :: 0
  7105. prop NoGen :: 1
  7106. }
  7107. global gDirty :: 1 {
  7108. prop Visible :: 0
  7109. prop Writable :: 0
  7110. prop NoGen :: 1
  7111. }
  7112. global gInitFlag :: 1 {
  7113. prop Visible :: 0
  7114. prop Writable :: 0
  7115. prop NoGen :: 1
  7116. }
  7117. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7118. prop Visible :: 0
  7119. prop Writable :: 0
  7120. prop NoGen :: 1
  7121. }
  7122. global OBJMEMSEG :: IRAM {
  7123. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  7124. prop MemberType :: MEM
  7125. prop MemberTest :: MEM.dataMember($1)
  7126. prop Label :: "Object Memory"
  7127. prop Visible :: 1
  7128. prop Writable :: 1
  7129. prop NoGen :: 1
  7130. }
  7131. global gNumEmbed :: 1 {
  7132. prop Visible :: 0
  7133. prop Writable :: 0
  7134. prop NoGen :: 1
  7135. }
  7136. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  7137. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7138. prop Label :: "comment"
  7139. prop JSName :: "comment"
  7140. prop Visible :: 1
  7141. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  7142. prop NoGen :: 1
  7143. }
  7144. inst iIsUsed :: 0 {
  7145. prop Visible :: 0
  7146. prop Writable :: 0
  7147. prop NoGen :: 1
  7148. }
  7149. inst iId :: 0 {
  7150. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7151. prop Style :: 0x01
  7152. prop Visible :: 0
  7153. prop Writable :: 1
  7154. prop NoGen :: 1
  7155. }
  7156. inst iDelUser :: "USER" {
  7157. prop Visible :: 0
  7158. prop Writable :: 0
  7159. prop NoGen :: 1
  7160. }
  7161. inst iDelMsg :: "ok" {
  7162. prop Visible :: 0
  7163. prop Writable :: 0
  7164. prop NoGen :: 1
  7165. }
  7166. inst prev :: 0 {
  7167. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7168. prop Visible :: 1
  7169. prop Writable :: self.modifiable()
  7170. prop JSName :: "previousVal"
  7171. prop NoGen :: GBL.DSPTYPE != 40 && GBL.DSPTYPE != 62
  7172. prop Set :: (self.prev = $1, self.prevlow = $1 & 0xffff, self.prevhigh = ($1 >> 16) & 0xffff, "ok")
  7173. }
  7174. inst format :: "%g" {
  7175. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7176. prop Visible :: 0
  7177. prop Writable :: 1
  7178. prop Label :: "format"
  7179. prop NoGen :: 1
  7180. }
  7181. inst filter :: 1 {
  7182. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7183. prop Visible :: 0
  7184. prop Writable :: 1
  7185. prop Label :: "filter"
  7186. prop NoGen :: 0
  7187. }
  7188. inst maxformat :: "%g" {
  7189. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7190. prop Visible :: 0
  7191. prop Writable :: 1
  7192. prop Label :: "maxformat"
  7193. prop NoGen :: 0
  7194. }
  7195. inst sumformat :: "%g" {
  7196. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7197. prop Visible :: 0
  7198. prop Writable :: 1
  7199. prop Label :: "sumformat"
  7200. prop NoGen :: 0
  7201. }
  7202. inst avgformat :: "%.2f" {
  7203. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7204. prop Visible :: 0
  7205. prop Writable :: 1
  7206. prop Label :: "avgformat"
  7207. prop NoGen :: 0
  7208. }
  7209. inst unittype :: "Not time based" {
  7210. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7211. prop Enum :: "Not time based,High resolution time based,Low resolution time based"
  7212. prop Label :: "unit type"
  7213. prop JSName :: "unitType"
  7214. prop Visible :: 1
  7215. prop Writable :: self.modifiable()
  7216. prop NoGen :: 1
  7217. prop Set :: (self.unittype = $1, if ($1 == "High resolution time based") {self.iA = 1, self.iB = 0, self.iC = 1, self.operation = "A * x"} else {if ($1 == "Low resolution time based") {self.iA = 1, self.iB = 0, self.iC = 1, self.operation = "A * x"} else {self.iA = 1, self.iB = 0, self.iC = 1, self.operation = "Nothing"}}, "ok")
  7218. }
  7219. inst operation :: "Nothing" {
  7220. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7221. prop Enum :: "Nothing,A * x,A * x + B,(A * x + B) / C"
  7222. prop Label :: "host operation"
  7223. prop JSName :: "operation"
  7224. prop Visible :: 1
  7225. prop Writable :: ((self.unittype != "Low resolution time based") && self.modifiable())
  7226. prop NoGen :: 1
  7227. prop Set :: (self.operation = $1, if ($1 == "Nothing" && self.unittype != "High resolution time based") {self.iA = 1, self.iB = 0, self.iC = 1} else {if ($1 == "A * x") {self.iB = 0, self.iC = 1} else {if ($1 == "A * x + B") {self.iC = 1} }}, "ok")
  7228. }
  7229. inst op :: = self.optype() {
  7230. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7231. prop Visible :: 0
  7232. prop Writable :: 1
  7233. prop NoGen :: 0
  7234. }
  7235. inst uType :: = self.untype() {
  7236. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7237. prop Visible :: 0
  7238. prop Writable :: 1
  7239. prop NoGen :: 0
  7240. }
  7241. inst iA :: 1 {
  7242. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7243. prop Visible :: 1
  7244. prop Writable :: (self.modifiable() && !(self.unittype != "Not time based" || self.operation == "Nothing"))
  7245. prop Label :: "A"
  7246. prop JSName :: "numA"
  7247. prop NoGen :: 0
  7248. }
  7249. inst iB :: 0 {
  7250. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7251. prop Visible :: 1
  7252. prop Writable :: (self.modifiable() && !(self.unittype == "Low resolution time based" || self.operation == "Nothing" || self.operation == "A * x"))
  7253. prop Label :: "B"
  7254. prop JSName :: "numB"
  7255. prop NoGen :: 0
  7256. }
  7257. inst iC :: 1 {
  7258. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7259. prop Visible :: 1
  7260. prop Writable :: (self.modifiable() && (self.unittype == "Not time based" && self.operation == "(A * x + B) / C"))
  7261. prop Label :: "C"
  7262. prop JSName :: "numC"
  7263. prop NoGen :: 0
  7264. }
  7265. inst prevhigh :: 0 {
  7266. prop Visible :: 0
  7267. prop Writable :: 0
  7268. prop NoGen :: GBL.DSPTYPE == 40 || GBL.DSPTYPE == 62
  7269. }
  7270. inst prevlow :: 0 {
  7271. prop Visible :: 0
  7272. prop Writable :: 0
  7273. prop NoGen :: 0
  7274. }
  7275. }
  7276. type SYS {
  7277. isa Module
  7278. prop name :: "SYS"
  7279. prop Label :: "SYS - System Settings"
  7280. prop IsContainedIn :: SYSTEM
  7281. prop GlobalIcon :: 141
  7282. prop InstanceIcon :: 142
  7283. prop IsConfMod :: 1
  7284. prop GlobalHelpTopic :: (313)
  7285. prop InstanceHelpTopic :: (413)
  7286. prop InstancePropertyPage :: ("{473C4A62-B1A8-11d0-9885-0020AFEE33C6}")
  7287. prop GlobalPropertyPage :: ("{473C4A63-B1A8-11d0-9885-0020AFEE33C6}")
  7288. prop AllocType :: (if self.PUTCFXN == @_UTL_doPutc {"2\0, _globalAllocDesc, _memSeg, _midPlace, _traceString, _traceSeg, _midPlace"} else {"1\0, _globalAllocDesc, _memSeg, _midPlace"})
  7289. prop _globalAllocDesc :: ("%8t .sys: {}")
  7290. prop _traceString :: ("%8t .trace: fill = 0x0 align = 0x4 {%12t\n_SYS_PUTCBEG = .;\n. += 0x%1x;\n_SYS_PUTCEND = . - 1;%8t\n }\0, _traceSize")
  7291. prop _midPlace :: (0x7fffffff / 2)
  7292. prop _memSeg :: MEM.CFGOBJSEG
  7293. prop _traceSeg :: SYS.TRACESEG
  7294. prop _traceSize :: SYS.TRACESIZE
  7295. global gUser :: "USER" {
  7296. prop Visible :: 0
  7297. prop Writable :: 0
  7298. prop NoGen :: 1
  7299. }
  7300. global gSetOf :: 0 {
  7301. prop Visible :: 0
  7302. prop Writable :: 0
  7303. prop NoGen :: 1
  7304. }
  7305. global gNumOf :: 0 {
  7306. prop Visible :: 0
  7307. prop Writable :: 0
  7308. prop NoGen :: 1
  7309. }
  7310. global gDirty :: 0 {
  7311. prop Visible :: 0
  7312. prop Writable :: 0
  7313. prop NoGen :: 1
  7314. }
  7315. global gInitFlag :: 1 {
  7316. prop Visible :: 0
  7317. prop Writable :: 0
  7318. prop NoGen :: 1
  7319. }
  7320. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7321. prop Visible :: 0
  7322. prop Writable :: 0
  7323. prop NoGen :: 1
  7324. }
  7325. global CALLBACKOBJ :: nil {
  7326. prop Visible :: 0
  7327. prop Writable :: 0
  7328. prop NoGen :: 1
  7329. }
  7330. global TRACESIZE :: 512 {
  7331. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  7332. prop Format :: "%d"
  7333. prop Style :: 0x01 | 0x02
  7334. prop Label :: "Trace Buffer Size"
  7335. prop JSName :: "TRACESIZE"
  7336. prop Visible :: 1
  7337. prop Writable :: 1
  7338. prop NoGen :: 1
  7339. }
  7340. global TRACESEG :: IRAM {
  7341. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  7342. prop MemberType :: MEM
  7343. prop MemberTest :: MEM.dataMember($1)
  7344. prop Label :: "Trace Buffer Memory"
  7345. prop JSName :: "TRACESEG"
  7346. prop Visible :: 1
  7347. prop Writable :: 1
  7348. prop NoGen :: 1
  7349. }
  7350. global ABORTFXN :: @_UTL_doAbort {
  7351. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7352. prop Label :: "Abort Function"
  7353. prop JSName :: "ABORTFXN"
  7354. prop Visible :: 1
  7355. prop Writable :: 1
  7356. prop NoGen :: 0
  7357. }
  7358. global ERRORFXN :: @_UTL_doError {
  7359. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7360. prop Label :: "Error Function"
  7361. prop JSName :: "ERRORFXN"
  7362. prop Visible :: 1
  7363. prop Writable :: 1
  7364. prop NoGen :: 0
  7365. }
  7366. global EXITFXN :: @_UTL_halt {
  7367. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7368. prop Label :: "Exit Function"
  7369. prop JSName :: "EXITFXN"
  7370. prop Visible :: 1
  7371. prop Writable :: 1
  7372. prop NoGen :: 0
  7373. }
  7374. global PUTCFXN :: @_UTL_doPutc {
  7375. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7376. prop Label :: "Putc Function"
  7377. prop JSName :: "PUTCFXN"
  7378. prop Visible :: 1
  7379. prop Writable :: 1
  7380. prop NoGen :: 0
  7381. }
  7382. }
  7383. type SIO {
  7384. isa ObjectMgr
  7385. prop name :: "SIO"
  7386. prop Label :: "SIO - Stream Input and Output Manager"
  7387. prop IsContainedIn :: IOF
  7388. prop DependsOn :: "DIO,DGN,DHL,DPI"
  7389. prop GlobalIcon :: 139
  7390. prop InstanceIcon :: 140
  7391. prop GlobalHelpTopic :: (311)
  7392. prop InstanceHelpTopic :: (411)
  7393. prop InstancePropertyPage :: ("{7C4C9A60-763E-11d1-988B-0020AFEE33C6}")
  7394. prop GlobalPropertyPage :: ("{7C4C9A61-763E-11d1-988B-0020AFEE33C6}")
  7395. prop maxObjs :: (32767)
  7396. prop AllocType :: (if (self.gNumOf > 0) {"2\0, _bssAllocDesc, _memSeg, _placement,
  7397. _objAllocDesc, _memSeg, _placement"} )
  7398. prop _bssAllocDesc :: ("%8t .SIO$bss: {%12t\n *(.SIO$bss)%8t\n }")
  7399. prop _objAllocDesc :: ("%8t .SIO$obj: {%12t\n *(.SIO$obj)%8t\n }")
  7400. prop _placement :: (0x7fffffff / 2)
  7401. prop _memSeg :: self.OBJMEMSEG
  7402. prop AllocInst :: ("1\0, _instBufDesc, _instBufSeg, _placement")
  7403. prop _instBufDesc :: (if self.iAlign > 1 {"%8t .%0s$bufs: align = 0x%1x {}\0, _objAlign"} else {"%8t .%0s$bufs: {}"})
  7404. prop _objAlign :: self.iAlign
  7405. prop _instBufSeg :: self.iBufSegid
  7406. prop defDev :: ($h = nil, $i = nil, $j = nil, scan ($h; nil) {if ($h.isDriver == 1) {scan ($i; $h) {if ($j == nil && $i.iIsTerminal != 0 && $i.iIsVirtual == 0) {$j = $i, break} }} }, $j)
  7407. prop devList :: ($h = nil, $i = nil, $j = nil, scan ($h; nil) {if ($h.isDriver == 1) {scan ($i; $h) {if ($j == nil && $i.iIsTerminal != 0 && $i.iIsVirtual == 0) {$j = $i, scan ($a; DIO) {if ($a == $i) {$i.numTimeUse++} }, break} }} }, $j)
  7408. prop setDev :: ($h = nil, $i = nil, $j = nil, scan ($h; nil) {if ($h.isDriver == 1) {scan ($i; $h) {if ($i == $1) {$j = $i} }} }, $j)
  7409. prop localCanCreate :: (if (self.defDev == nil) {self.error("A driver device must be created before creating a stream.")} else {"ok"})
  7410. prop localDelete :: (scan ($a; DIO) {if ($a == self.iDevice) {self.iDevice.numTimeUse--} }, "ok")
  7411. prop cGen :: 1
  7412. prop cHeaderName :: if self.gNumOf > 0 {"sio.h"} else {""}
  7413. prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far SIO_Obj %0r;\n\0"} else {"extern SIO_Obj %0r;\n\0"})
  7414. global gUser :: "USER" {
  7415. prop Visible :: 0
  7416. prop Writable :: 0
  7417. prop NoGen :: 1
  7418. }
  7419. global gSetOf :: 0 {
  7420. prop Visible :: 0
  7421. prop Writable :: 0
  7422. prop NoGen :: 1
  7423. }
  7424. global gNumOf :: 0 {
  7425. prop Visible :: 0
  7426. prop Writable :: 0
  7427. prop NoGen :: 1
  7428. }
  7429. global gDirty :: 0 {
  7430. prop Visible :: 0
  7431. prop Writable :: 0
  7432. prop NoGen :: 1
  7433. }
  7434. global gInitFlag :: 1 {
  7435. prop Visible :: 0
  7436. prop Writable :: 0
  7437. prop NoGen :: 1
  7438. }
  7439. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7440. prop Visible :: 0
  7441. prop Writable :: 0
  7442. prop NoGen :: 1
  7443. }
  7444. global gNumEmbed :: 0 {
  7445. prop NoGen :: 1
  7446. }
  7447. global OBJMEMSEG :: IRAM {
  7448. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  7449. prop MemberType :: MEM
  7450. prop MemberTest :: MEM.dataMember($1)
  7451. prop Label :: "Object Memory"
  7452. prop JSName :: "OBJMEMSEG"
  7453. prop Visible :: 1
  7454. prop Writable :: 1
  7455. prop NoGen :: 1
  7456. }
  7457. global USEISSUERECLAIM :: 0 {
  7458. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7459. prop Label :: "Use Only Issue/Reclaim Model"
  7460. prop JSName :: "USEISSUERECLAIM"
  7461. prop Visible :: 1
  7462. prop Writable :: 1
  7463. prop NoGen :: 1
  7464. prop Set :: (self.USEISSUERECLAIM = $1, if ($1 == 1) {scan ($i; SIO) {$i.iModelName = "Issue/Reclaim"}} , "ok")
  7465. }
  7466. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  7467. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7468. prop Label :: "comment"
  7469. prop JSName :: "comment"
  7470. prop Visible :: 1
  7471. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  7472. prop NoGen :: 1
  7473. }
  7474. inst iIsUsed :: 0 {
  7475. prop Visible :: 0
  7476. prop Writable :: 0
  7477. prop NoGen :: 1
  7478. }
  7479. inst iId :: 0 {
  7480. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7481. prop Style :: 0x01
  7482. prop Visible :: 0
  7483. prop Writable :: 1
  7484. prop NoGen :: 1
  7485. }
  7486. inst iDelUser :: "USER" {
  7487. prop Visible :: 0
  7488. prop Writable :: 0
  7489. prop NoGen :: 1
  7490. }
  7491. inst iDelMsg :: "ok" {
  7492. prop Visible :: 0
  7493. prop Writable :: 0
  7494. prop NoGen :: 1
  7495. }
  7496. inst iDevice :: SIO.devList {
  7497. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  7498. prop TypeTest :: $1.isDriver == 1
  7499. prop MemberTest :: $1.driverType != "DEV_IOMTYPE"
  7500. prop Label :: "Device"
  7501. prop JSName :: "deviceName"
  7502. prop Set :: (if (($1.iIsTerminal == 0) && (self.iDevCtrlParam == "")) {self.error("To select a stacking device, enter first a terminal device in Device Control String")} else {if ($1.iIsVirtual == 1) {self.error("The device you have selected is a virtual instance, you must select a non-virtual device")} else {scan ($a; DIO) {if ($a == self.iDevice) {self.iDevice.numTimeUse--} }, scan ($b; DIO) {if ($b == $1) {$1.numTimeUse++} }, self.iDevice = self.setDev($1), "ok"}})
  7503. prop Visible :: 1
  7504. prop Writable :: 1
  7505. }
  7506. inst iDevCtrlParam :: "" {
  7507. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7508. prop Label :: "Device Control String"
  7509. prop JSName :: "controlParameter"
  7510. prop Visible :: 1
  7511. prop Writable :: 1
  7512. }
  7513. inst iDevId :: = self.iDevice.iDevId
  7514. inst iFxns :: = self.iDevice.iFxns
  7515. inst iMode :: "input" {
  7516. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7517. prop Enum :: "input,output"
  7518. prop Label :: "Mode"
  7519. prop JSName :: "mode"
  7520. prop Visible :: 1
  7521. prop Writable :: 1
  7522. }
  7523. inst iBufsize :: 0x80 {
  7524. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7525. prop Style :: 0x02
  7526. prop Label :: "Buffer size"
  7527. prop JSName :: "bufSize"
  7528. prop Visible :: 1
  7529. prop Writable :: 1
  7530. }
  7531. inst iNbufs :: 2 {
  7532. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7533. prop Style :: 0x01
  7534. prop Label :: "Number of buffers"
  7535. prop JSName :: "numBufs"
  7536. prop Visible :: 1
  7537. prop Writable :: 1
  7538. }
  7539. inst iBufSegid :: = self.OBJMEMSEG {
  7540. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  7541. prop MemberType :: MEM
  7542. prop MemberTest :: MEM.dataMember($1)
  7543. prop Label :: "Place buffers in memory segment"
  7544. prop JSName :: "bufSegId"
  7545. prop Visible :: 1
  7546. prop Writable :: self.iAllocBuf == 1
  7547. }
  7548. inst iAlign :: 1 {
  7549. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  7550. prop Enum :: "1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768"
  7551. prop Label :: "Buffer alignment"
  7552. prop JSName :: "bufAlign"
  7553. prop Visible :: 1
  7554. prop Writable :: self.iAllocBuf == 1
  7555. }
  7556. inst iFlush :: 0 {
  7557. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7558. prop Label :: "Flush"
  7559. prop JSName :: "flush"
  7560. prop Visible :: 1
  7561. prop Writable :: 1
  7562. }
  7563. inst iModelName :: "Standard" {
  7564. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7565. prop Enum :: "Standard,Issue/Reclaim"
  7566. prop Label :: "Model"
  7567. prop JSName :: "modelName"
  7568. prop Visible :: 1
  7569. prop Writable :: 1
  7570. prop NoGen :: 1
  7571. prop Set :: ($e = "ok", if (self.USEISSUERECLAIM == 1) {if ($1 == "Standard") {$e = self.error("SIO Issue/Reclaim model support selected")} else {self.iModel = if $1 == "Standard" {"SIO_STANDARD"} else {"SIO_ISSUERECLAIM"}, self.iModelName = $1}} else {self.iModel = if $1 == "Standard" {"SIO_STANDARD"} else {"SIO_ISSUERECLAIM"}, self.iModelName = $1}, $e)
  7572. }
  7573. inst iAllocBuf :: = self.iSaveAllocBuf {
  7574. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7575. prop Label :: "Allocate Static Buffer(s)"
  7576. prop JSName :: "allocStaticBuf"
  7577. prop Visible :: 1
  7578. prop Writable :: 1
  7579. prop Set :: (self.iSaveAllocBuf = $1, "ok")
  7580. }
  7581. inst iSaveAllocBuf :: 0 {
  7582. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7583. prop NoGen :: 1
  7584. }
  7585. inst iModel :: "SIO_STANDARD" {
  7586. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7587. prop Enum :: "SIO_STANDARD,SIO_ISSUERECLAIM"
  7588. prop Visible :: 0
  7589. prop Writable :: 0
  7590. }
  7591. inst iTimeout :: = if self.iModel == "SIO_ISSUERECLAIM" {self.iSaveTimeout} else {-1} {
  7592. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7593. prop Label :: "Timeout for I/O operation"
  7594. prop JSName :: "timeout"
  7595. prop Visible :: 1
  7596. prop Writable :: self.iModel == "SIO_ISSUERECLAIM"
  7597. prop Set :: (self.iSaveTimeout = $1, "ok")
  7598. }
  7599. inst iSaveTimeout :: -1 {
  7600. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7601. prop NoGen :: 1
  7602. }
  7603. inst useCallBackFxn :: 0 {
  7604. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7605. prop Label :: "use callback function"
  7606. prop JSName :: "useCallBackFxn"
  7607. prop Visible :: 1
  7608. prop Writable :: 1
  7609. prop NoGen :: 0
  7610. prop TabName :: "Callback"
  7611. }
  7612. inst callBackFxn :: @_FXN_F_nop {
  7613. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7614. prop Label :: "callback function"
  7615. prop JSName :: "callBackFxn"
  7616. prop Visible :: 1
  7617. prop Writable :: self.useCallBackFxn
  7618. prop NoGen :: 0
  7619. prop TabName :: "Callback"
  7620. }
  7621. inst arg0 :: 0 {
  7622. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  7623. prop Label :: "argument 0"
  7624. prop JSName :: "arg0"
  7625. prop Visible :: 1
  7626. prop Writable :: self.useCallBackFxn
  7627. prop NoGen :: 0
  7628. prop TabName :: "Callback"
  7629. }
  7630. inst arg1 :: 0 {
  7631. prop Type :: "{E91790E0-0456-11d2-B8D0-006008BDB66F}"
  7632. prop Label :: "argument 1"
  7633. prop JSName :: "arg1"
  7634. prop Visible :: 1
  7635. prop Writable :: self.useCallBackFxn
  7636. prop NoGen :: 0
  7637. prop TabName :: "Callback"
  7638. }
  7639. }
  7640. type GIO {
  7641. isa Module
  7642. prop Visible :: 1
  7643. prop name :: "GIO"
  7644. prop Label :: "GIO - General Input/Output Manager"
  7645. prop IsConfMod :: self.USEGIO
  7646. prop IsContainedIn :: IOF
  7647. prop DependsOn :: "UDEV"
  7648. prop GlobalIcon :: 141
  7649. prop InstanceIcon :: 142
  7650. prop GlobalHelpTopic :: (320)
  7651. prop InstanceHelpTopic :: (420)
  7652. prop InstancePropertyPage :: ("{473C4A62-B1A8-11d0-9885-0020AFEE33C6}")
  7653. prop GlobalPropertyPage :: ("{473C4A63-B1A8-11d0-9885-0020AFEE33C6}")
  7654. prop AllocType :: ("1\0, _globalAllocDesc, _memSeg, _midPlace")
  7655. prop _globalAllocDesc :: ("%8t .gio: {}")
  7656. prop _midPlace :: (0x7fffffff / 2)
  7657. prop _memSeg :: MEM.CFGOBJSEG
  7658. global gUser :: "USER" {
  7659. prop Visible :: 0
  7660. prop Writable :: 0
  7661. prop NoGen :: 1
  7662. }
  7663. global gSetOf :: 0 {
  7664. prop Visible :: 0
  7665. prop Writable :: 0
  7666. prop NoGen :: 1
  7667. }
  7668. global gNumOf :: 0 {
  7669. prop Visible :: 0
  7670. prop Writable :: 0
  7671. prop NoGen :: 1
  7672. }
  7673. global gDirty :: 0 {
  7674. prop Visible :: 0
  7675. prop Writable :: 0
  7676. prop NoGen :: 1
  7677. }
  7678. global gInitFlag :: 1 {
  7679. prop Visible :: 0
  7680. prop Writable :: 0
  7681. prop NoGen :: 1
  7682. }
  7683. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7684. prop Visible :: 0
  7685. prop Writable :: 0
  7686. prop NoGen :: 1
  7687. }
  7688. global CALLBACKOBJ :: nil {
  7689. prop Visible :: 0
  7690. prop Writable :: 0
  7691. prop NoGen :: 1
  7692. }
  7693. global USEGIO :: 0 {
  7694. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7695. prop Label :: "Enable General Input/Output Manager"
  7696. prop JSName :: "ENABLEGIO"
  7697. prop Visible :: 1
  7698. prop Writable :: 1
  7699. prop NoGen :: 1
  7700. }
  7701. global CREATEFXN :: = if self.USEGIO == 1 {@_SEM_create} else {@_FXN_F_nop} {
  7702. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7703. prop Label :: "Create Function"
  7704. prop JSName :: "CREATEFXN"
  7705. prop Visible :: 1
  7706. prop Writable :: self.USEGIO
  7707. prop NoGen :: 0
  7708. }
  7709. global DELETEFXN :: = if self.USEGIO == 1 {@_SEM_delete} else {@_FXN_F_nop} {
  7710. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7711. prop Label :: "Delete Function"
  7712. prop JSName :: "DELETEFXN"
  7713. prop Visible :: 1
  7714. prop Writable :: self.USEGIO
  7715. prop NoGen :: 0
  7716. }
  7717. global PENDFXN :: = if self.USEGIO == 1 {@_SEM_pend} else {@_FXN_F_nop} {
  7718. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7719. prop Label :: "Pend Function"
  7720. prop JSName :: "PENDFXN"
  7721. prop Visible :: 1
  7722. prop Writable :: self.USEGIO
  7723. prop NoGen :: 0
  7724. }
  7725. global POSTFXN :: = if self.USEGIO == 1 {@_SEM_post} else {@_FXN_F_nop} {
  7726. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  7727. prop Label :: "Post Function"
  7728. prop JSName :: "POSTFXN"
  7729. prop Visible :: 1
  7730. prop Writable :: self.USEGIO
  7731. prop NoGen :: 0
  7732. }
  7733. }
  7734. type DEV {
  7735. isa ObjectMgr
  7736. prop name :: "DEV"
  7737. prop Visible :: 0
  7738. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _bssAllocDesc, _memSeg, _placement"} , if (self.devCount() > 0) {"1\0, _devtableDesc, _memSeg, _placement"} )
  7739. prop _bssAllocDesc :: ("%8t .dev: {}")
  7740. prop _devtableDesc :: ("%8t .devtable: {}")
  7741. prop _memSeg :: MEM.CFGOBJSEG
  7742. prop _placement :: (0x7fffffff / 2)
  7743. prop DependsOn :: "HWI"
  7744. prop devCount :: ($i = nil, $a = 0, scan ($i; nil) {if ($i.isDriver == 1) {$a = $a + $i.gNumOf} }, $a)
  7745. global gUser :: "USER" {
  7746. prop Visible :: 0
  7747. prop Writable :: 0
  7748. prop NoGen :: 1
  7749. }
  7750. global gSetOf :: 0 {
  7751. prop Visible :: 0
  7752. prop Writable :: 0
  7753. prop NoGen :: 1
  7754. }
  7755. global gNumOf :: 0 {
  7756. prop Visible :: 0
  7757. prop Writable :: 0
  7758. prop NoGen :: 1
  7759. }
  7760. global gDirty :: 0 {
  7761. prop Visible :: 0
  7762. prop Writable :: 0
  7763. prop NoGen :: 1
  7764. }
  7765. global gInitFlag :: 1 {
  7766. prop Visible :: 0
  7767. prop Writable :: 0
  7768. prop NoGen :: 1
  7769. }
  7770. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7771. prop Visible :: 0
  7772. prop Writable :: 0
  7773. prop NoGen :: 1
  7774. }
  7775. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  7776. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7777. prop Label :: "comment"
  7778. prop JSName :: "comment"
  7779. prop Visible :: 1
  7780. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  7781. prop NoGen :: 1
  7782. }
  7783. inst iIsUsed :: 0 {
  7784. prop Visible :: 0
  7785. prop Writable :: 0
  7786. prop NoGen :: 1
  7787. }
  7788. inst iId :: 0 {
  7789. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7790. prop Style :: 0x01
  7791. prop Visible :: 0
  7792. prop Writable :: 1
  7793. prop NoGen :: 1
  7794. }
  7795. inst iDelUser :: "USER" {
  7796. prop Visible :: 0
  7797. prop Writable :: 0
  7798. prop NoGen :: 1
  7799. }
  7800. inst iDelMsg :: "ok" {
  7801. prop Visible :: 0
  7802. prop Writable :: 0
  7803. prop NoGen :: 1
  7804. }
  7805. }
  7806. type UDEV {
  7807. isa ObjectMgr
  7808. prop name :: "UDEV"
  7809. prop Label :: "User-Defined Devices"
  7810. prop IsContainedIn :: SIODRIVER
  7811. prop DependsOn :: "DEV"
  7812. prop GlobalIcon :: 127
  7813. prop InstanceIcon :: 128
  7814. prop GlobalHelpTopic :: (315)
  7815. prop InstanceHelpTopic :: (415)
  7816. prop InstancePropertyPage :: ("{7AE86AA0-35C0-11d1-988B-0020AFEE33C6}")
  7817. prop GlobalPropertyPage :: ("{7AE86AA1-35C0-11d1-988B-0020AFEE33C6}")
  7818. prop maxObjs :: (32767)
  7819. prop isDriver :: (1)
  7820. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  7821. prop _globalAllocDesc :: ("%8t .udev: {}")
  7822. prop _placement :: (0x7fffffff / 2)
  7823. prop _memSeg :: MEM.CFGOBJSEG
  7824. prop _driverType :: (if self.fxnTableType == "DEV_Fxns" {"DEV_SIOTYPE"} else {"DEV_IOMTYPE"})
  7825. global gUser :: "USER" {
  7826. prop Visible :: 0
  7827. prop Writable :: 0
  7828. prop NoGen :: 1
  7829. }
  7830. global gSetOf :: 0 {
  7831. prop Visible :: 0
  7832. prop Writable :: 0
  7833. prop NoGen :: 1
  7834. }
  7835. global gNumOf :: 0 {
  7836. prop Visible :: 0
  7837. prop Writable :: 0
  7838. prop NoGen :: 1
  7839. }
  7840. global gDirty :: 0 {
  7841. prop Visible :: 0
  7842. prop Writable :: 0
  7843. prop NoGen :: 1
  7844. }
  7845. global gInitFlag :: 1 {
  7846. prop Visible :: 0
  7847. prop Writable :: 0
  7848. prop NoGen :: 1
  7849. }
  7850. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  7851. prop Visible :: 0
  7852. prop Writable :: 0
  7853. prop NoGen :: 1
  7854. }
  7855. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  7856. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  7857. prop Label :: "comment"
  7858. prop JSName :: "comment"
  7859. prop Visible :: 1
  7860. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  7861. prop NoGen :: 1
  7862. }
  7863. inst iIsUsed :: 0 {
  7864. prop Visible :: 0
  7865. prop Writable :: 0
  7866. prop NoGen :: 1
  7867. }
  7868. inst iId :: 0 {
  7869. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  7870. prop Style :: 0x01
  7871. prop Visible :: 0
  7872. prop Writable :: 1
  7873. prop NoGen :: 1
  7874. }
  7875. inst iDelUser :: "USER" {
  7876. prop Visible :: 0
  7877. prop Writable :: 0
  7878. prop NoGen :: 1
  7879. }
  7880. inst iDelMsg :: "ok" {
  7881. prop Visible :: 0
  7882. prop Writable :: 0
  7883. prop NoGen :: 1
  7884. }
  7885. inst iInit :: 0 {
  7886. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7887. prop Label :: "init function"
  7888. prop JSName :: "initFxn"
  7889. prop Visible :: 1
  7890. prop Writable :: 1
  7891. prop NoGen :: 1
  7892. prop Set :: (self.iInit = $1, self.initFxn = self.iInit, "ok")
  7893. }
  7894. inst iFxns :: 0 {
  7895. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7896. prop Label :: "function table ptr"
  7897. prop JSName :: "fxnTable"
  7898. prop Visible :: 1
  7899. prop Writable :: 1
  7900. }
  7901. inst fxnTableType :: "DEV_Fxns" {
  7902. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7903. prop Enum :: "DEV_Fxns,IOM_Fxns"
  7904. prop Label :: "function table type"
  7905. prop JSName :: "fxnTableType"
  7906. prop Visible :: 1
  7907. prop Writable :: 1
  7908. prop NoGen :: 1
  7909. }
  7910. inst driverType :: = self._driverType {
  7911. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  7912. prop Enum :: "DEV_SIOTYPE,DEV_IOMTYPE"
  7913. prop Visible :: 0
  7914. }
  7915. inst iDevId :: 0 {
  7916. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7917. prop Label :: "device id"
  7918. prop JSName :: "deviceId"
  7919. prop Visible :: 1
  7920. prop Writable :: 1
  7921. prop NoGen :: 1
  7922. prop Set :: (self.iDevId = $1, self.deviceId = self.iDevId, "ok")
  7923. }
  7924. inst iParams :: 0 {
  7925. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7926. prop Label :: "device params ptr"
  7927. prop JSName :: "params"
  7928. prop Visible :: 1
  7929. prop Writable :: 1
  7930. }
  7931. inst deviceId :: 0 {
  7932. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7933. prop JSName :: ""
  7934. prop Visible :: 0
  7935. }
  7936. inst initFxn :: 0 {
  7937. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7938. prop JSName :: ""
  7939. prop Visible :: 0
  7940. }
  7941. inst iIsStacking :: 0 {
  7942. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7943. prop Label :: "Stacking Device"
  7944. prop JSName :: "stackingDevice"
  7945. prop Visible :: 0
  7946. prop Writable :: 1
  7947. prop NoGen :: 1
  7948. }
  7949. inst deviceGlobalDataPtr :: 0 {
  7950. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  7951. prop Label :: "device global data ptr"
  7952. prop JSName :: "deviceGlobalDataPtr"
  7953. prop Visible :: 1
  7954. prop Writable :: self.fxnTableType == "IOM_Fxns"
  7955. }
  7956. inst iIsTerminal :: = if self.fxnTableType == "DEV_Fxns" {1} else {0} {
  7957. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7958. prop NoGen :: 1
  7959. }
  7960. inst iIsVirtual :: 0 {
  7961. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  7962. prop NoGen :: 1
  7963. }
  7964. }
  7965. type DIO {
  7966. isa ObjectMgr
  7967. prop Visible :: 1
  7968. prop Label :: "DIO - Class Driver"
  7969. prop name :: "DIO"
  7970. prop IsContainedIn :: SIODRIVER
  7971. prop DependsOn :: "UDEV"
  7972. prop GlobalIcon :: 127
  7973. prop InstanceIcon :: 127
  7974. prop GlobalHelpTopic :: (319)
  7975. prop InstanceHelpTopic :: (419)
  7976. prop InstancePropertyPage :: ("{f80273c0-3838-11d2-a32c-006097656921}")
  7977. prop GlobalPropertyPage :: ("{050a0600-3839-11d2-a32c-006097656921}")
  7978. prop maxObjs :: (32767)
  7979. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  7980. prop _globalAllocDesc :: ("%8t .dio: {}")
  7981. prop _placement :: (0x7fffffff / 2)
  7982. prop _memSeg :: self.OBJMEMSEG
  7983. prop isDriver :: (1)
  7984. prop mdObject :: ($h = nil, $j = nil, scan ($h; UDEV) {if ($h.driverType == "DEV_IOMTYPE") {$j = $h, break} }, $j)
  7985. prop localCanCreate :: (if (self.mdObject == nil) {self.error("An IOM type device must be created first.")} else {"ok"})
  7986. prop numTsk :: ($a = 0, $h = nil, scan ($h; DIO) {if ($h.useCallBackFxn == 0) {$a = $a + $h.numTimeUse} }, $a)
  7987. prop numSwi :: ($a = 0, $h = nil, scan ($h; DIO) {if ($h.useCallBackFxn == 1) {$a = $a + $h.numTimeUse} }, $a)
  7988. prop functionTablePtr :: (if (self.STATIC) {if (self.useCallBackFxn) {@_DIO_cbStaticFxns} else {@_DIO_tskStaticFxns}} else {if (self.useCallBackFxn) {@_DIO_cbDynamicFxns} else {@_DIO_tskDynamicFxns}})
  7989. global gUser :: "USER" {
  7990. prop Visible :: 0
  7991. prop Writable :: 0
  7992. prop NoGen :: 1
  7993. }
  7994. global gSetOf :: 0 {
  7995. prop Visible :: 0
  7996. prop Writable :: 0
  7997. prop NoGen :: 1
  7998. }
  7999. global gNumOf :: 0 {
  8000. prop Visible :: 0
  8001. prop Writable :: 0
  8002. prop NoGen :: 1
  8003. }
  8004. global gDirty :: 0 {
  8005. prop Visible :: 0
  8006. prop Writable :: 0
  8007. prop NoGen :: 1
  8008. }
  8009. global gInitFlag :: 1 {
  8010. prop Visible :: 0
  8011. prop Writable :: 0
  8012. prop NoGen :: 1
  8013. }
  8014. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  8015. prop Visible :: 0
  8016. prop Writable :: 0
  8017. prop NoGen :: 1
  8018. }
  8019. global OBJMEMSEG :: IRAM {
  8020. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  8021. prop MemberType :: MEM
  8022. prop MemberTest :: MEM.dataMember($1)
  8023. prop Label :: "Object Memory"
  8024. prop JSName :: "OBJMEMSEG"
  8025. prop Visible :: 1
  8026. prop Writable :: 1
  8027. prop NoGen :: 1
  8028. }
  8029. global STATIC :: 0 {
  8030. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8031. prop Label :: "Create all DIO Objects Statically"
  8032. prop JSName :: "STATICCREATE"
  8033. prop Visible :: 1
  8034. prop Writable :: 1
  8035. prop NoGen :: 0
  8036. }
  8037. global NUMTSKBASE :: = self.numTsk {
  8038. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8039. prop Label :: "TSK based"
  8040. prop Visible :: 0
  8041. prop Writable :: 0
  8042. prop NoGen :: 0
  8043. }
  8044. global NUMSWIBASE :: = self.numSwi {
  8045. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8046. prop Label :: "SWI based"
  8047. prop Visible :: 0
  8048. prop Writable :: 0
  8049. prop NoGen :: 0
  8050. }
  8051. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  8052. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  8053. prop Label :: "comment"
  8054. prop JSName :: "comment"
  8055. prop Visible :: 1
  8056. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  8057. prop NoGen :: 1
  8058. }
  8059. inst iIsUsed :: 0 {
  8060. prop Visible :: 0
  8061. prop Writable :: 0
  8062. prop NoGen :: 1
  8063. }
  8064. inst iId :: 0 {
  8065. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8066. prop Style :: 0x01
  8067. prop Visible :: 0
  8068. prop Writable :: 1
  8069. prop NoGen :: 1
  8070. }
  8071. inst iDelUser :: "USER" {
  8072. prop Visible :: 0
  8073. prop Writable :: 0
  8074. prop NoGen :: 1
  8075. }
  8076. inst iDelMsg :: "ok" {
  8077. prop Visible :: 0
  8078. prop Writable :: 0
  8079. prop NoGen :: 1
  8080. }
  8081. inst useCallBackFxn :: 0 {
  8082. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8083. prop Label :: "use callback version of DIO function table (for SWI)"
  8084. prop JSName :: "useCallBackFxn"
  8085. prop Visible :: 1
  8086. prop Writable :: 1
  8087. prop NoGen :: 1
  8088. }
  8089. inst fxnsTable :: = self.functionTablePtr {
  8090. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8091. prop Visible :: 1
  8092. prop Writable :: 0
  8093. prop NoGen :: 0
  8094. }
  8095. inst initFxn :: @_DIO_init {
  8096. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8097. prop Visible :: 0
  8098. prop Writable :: 0
  8099. prop NoGen :: 0
  8100. }
  8101. inst deviceName :: self.mdObject {
  8102. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  8103. prop MemberType :: UDEV
  8104. prop MemberTest :: $1.driverType == "DEV_IOMTYPE"
  8105. prop Label :: "device name"
  8106. prop JSName :: "deviceName"
  8107. prop Visible :: 1
  8108. prop Writable :: 1
  8109. prop NoGen :: 0
  8110. }
  8111. inst chanParams :: 0 {
  8112. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8113. prop Label :: "channel parameters"
  8114. prop JSName :: "chanParams"
  8115. prop Visible :: 1
  8116. prop Writable :: 1
  8117. prop NoGen :: 0
  8118. }
  8119. inst numTimeUse :: 0 {
  8120. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8121. prop Visible :: 0
  8122. prop Writable :: 0
  8123. prop NoGen :: 1
  8124. }
  8125. inst iDevId :: 0 {
  8126. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8127. prop Visible :: 0
  8128. prop Writable :: 0
  8129. prop NoGen :: 1
  8130. }
  8131. inst iFxns :: = self.functionTablePtr {
  8132. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8133. prop Visible :: 0
  8134. prop Writable :: 0
  8135. prop NoGen :: 1
  8136. }
  8137. inst iIsTerminal :: 1 {
  8138. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8139. prop NoGen :: 1
  8140. }
  8141. inst iIsVirtual :: 0 {
  8142. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8143. prop NoGen :: 1
  8144. }
  8145. }
  8146. type DGN {
  8147. isa ObjectMgr
  8148. prop name :: "DGN"
  8149. prop Label :: "DGN - Software Generator Driver"
  8150. prop IsContainedIn :: SIODRIVER
  8151. prop GlobalIcon :: 127
  8152. prop InstanceIcon :: 128
  8153. prop GlobalHelpTopic :: (302)
  8154. prop InstanceHelpTopic :: (402)
  8155. prop InstancePropertyPage :: ("{054FE166-B014-11d0-9885-0020AFEE33C6}")
  8156. prop GlobalPropertyPage :: ("{054FE167-B014-11d0-9885-0020AFEE33C6}")
  8157. prop DependsOn :: "DEV"
  8158. prop maxObjs :: (32767)
  8159. prop isDriver :: (1)
  8160. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  8161. prop _globalAllocDesc :: ("%8t .dgn: {}")
  8162. prop _placement :: (0x7fffffff / 2)
  8163. prop _memSeg :: MEM.CFGOBJSEG
  8164. global gUser :: "USER" {
  8165. prop Visible :: 0
  8166. prop Writable :: 0
  8167. prop NoGen :: 1
  8168. }
  8169. global gSetOf :: 0 {
  8170. prop Visible :: 0
  8171. prop Writable :: 0
  8172. prop NoGen :: 1
  8173. }
  8174. global gNumOf :: 0 {
  8175. prop Visible :: 0
  8176. prop Writable :: 0
  8177. prop NoGen :: 1
  8178. }
  8179. global gDirty :: 0 {
  8180. prop Visible :: 0
  8181. prop Writable :: 0
  8182. prop NoGen :: 1
  8183. }
  8184. global gInitFlag :: 1 {
  8185. prop Visible :: 0
  8186. prop Writable :: 0
  8187. prop NoGen :: 1
  8188. }
  8189. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  8190. prop Visible :: 0
  8191. prop Writable :: 0
  8192. prop NoGen :: 1
  8193. }
  8194. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  8195. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  8196. prop Label :: "comment"
  8197. prop JSName :: "comment"
  8198. prop Visible :: 1
  8199. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  8200. prop NoGen :: 1
  8201. }
  8202. inst iIsUsed :: 0 {
  8203. prop Visible :: 0
  8204. prop Writable :: 0
  8205. prop NoGen :: 1
  8206. }
  8207. inst iId :: 0 {
  8208. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8209. prop Style :: 0x01
  8210. prop Visible :: 0
  8211. prop Writable :: 1
  8212. prop NoGen :: 1
  8213. }
  8214. inst iDelUser :: "USER" {
  8215. prop Visible :: 0
  8216. prop Writable :: 0
  8217. prop NoGen :: 1
  8218. }
  8219. inst iDelMsg :: "ok" {
  8220. prop Visible :: 0
  8221. prop Writable :: 0
  8222. prop NoGen :: 1
  8223. }
  8224. inst iDevice :: "user" {
  8225. prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
  8226. prop Enum :: if GBL.DSPARITHMETIC == "FLOAT" {"user,sine,random,constant,printFloat,printHex,printInt"} else {"user,sine,random,constant,printHex,printInt"}
  8227. prop Label :: "Device category"
  8228. prop JSName :: "device"
  8229. prop Visible :: 1
  8230. prop Writable :: 1
  8231. prop NoGen :: 1
  8232. prop Set :: ($a = $1, if ($a != self.iDevice) {self.iDevice = $a, self.iUserFxn = @_FXN_F_nop} , if ($a == "user") {self.iUserFxn = self.iSaveUserFxn} , if ($a == "printFloat") {self.iUserFxn = @_DGN_printFloat} , if ($a == "printHex") {self.iUserFxn = @_DGN_printHex} , if ($a == "printInt") {self.iUserFxn = @_DGN_printInt} , "ok")
  8233. }
  8234. inst iUseDefaults :: 0 {
  8235. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8236. prop Label :: "Use default parameters"
  8237. prop Visible :: 1
  8238. prop JSName :: "useDefaultParam"
  8239. prop Writable :: self.iDevice == "sine" || self.iDevice == "constant" || self.iDevice == "random" || self.iDevice == "user"
  8240. }
  8241. inst iDevId :: = if self.iDevice == "constant" {@DGN_CONST} else {if self.iDevice == "random" {@DGN_RAND} else {if self.iDevice == "sine" {@DGN_SINE} else {@DGN_USER}}} {
  8242. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8243. prop Label :: "Device ID"
  8244. prop JSName :: "deviceId"
  8245. prop Visible :: 1
  8246. prop Writable :: 0
  8247. }
  8248. inst iIsTerminal :: 1 {
  8249. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8250. prop NoGen :: 1
  8251. }
  8252. inst iIsVirtual :: 0 {
  8253. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8254. prop NoGen :: 1
  8255. }
  8256. inst iConstant :: if GBL.DSPARITHMETIC == "FIXED" {1} else {1.0} {
  8257. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  8258. prop Style :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0x04}
  8259. prop Format :: if GBL.DSPARITHMETIC == "FIXED" {"%d"} else {"%f"}
  8260. prop Label :: "Constant value"
  8261. prop JSName :: "constant"
  8262. prop Visible :: 1
  8263. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "constant" || self.iDevice == "user")
  8264. }
  8265. inst iRandSeed :: 1 {
  8266. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8267. prop Label :: "Seed value"
  8268. prop JSName :: "seedValue"
  8269. prop Visible :: 1
  8270. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "random" || self.iDevice == "user")
  8271. }
  8272. inst iRandLower :: if GBL.DSPARITHMETIC == "FIXED" {-32767} else {0.0} {
  8273. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  8274. prop Style :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0x04}
  8275. prop Format :: if GBL.DSPARITHMETIC == "FIXED" {"%d"} else {"%f"}
  8276. prop Label :: "Lower limit"
  8277. prop JSName :: "lowerLimit"
  8278. prop Visible :: 1
  8279. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "random" || self.iDevice == "user")
  8280. }
  8281. inst iRandUpper :: if GBL.DSPARITHMETIC == "FIXED" {32767} else {1.0} {
  8282. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  8283. prop Style :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0x04}
  8284. prop Format :: if GBL.DSPARITHMETIC == "FIXED" {"%d"} else {"%f"}
  8285. prop Label :: "Upper limit"
  8286. prop JSName :: "upperLimit"
  8287. prop Visible :: 1
  8288. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "random" || self.iDevice == "user")
  8289. }
  8290. inst iSineGain :: if GBL.DSPARITHMETIC == "FIXED" {32767} else {1.0} {
  8291. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  8292. prop Style :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0x04}
  8293. prop Format :: if GBL.DSPARITHMETIC == "FIXED" {"%d"} else {"%f"}
  8294. prop Label :: "Gain"
  8295. prop JSName :: "gain"
  8296. prop Visible :: 1
  8297. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "sine" || self.iDevice == "user")
  8298. }
  8299. inst iSineFreq :: if GBL.DSPARITHMETIC == "FIXED" {1} else {1000.0} {
  8300. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  8301. prop Style :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0x04}
  8302. prop Format :: if GBL.DSPARITHMETIC == "FIXED" {"%d"} else {"%f"}
  8303. prop Label :: "Frequency (Hz)"
  8304. prop JSName :: "frequency"
  8305. prop Visible :: 1
  8306. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "sine" || self.iDevice == "user")
  8307. }
  8308. inst iSinePhase :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0.0} {
  8309. prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
  8310. prop Style :: if GBL.DSPARITHMETIC == "FIXED" {0} else {0x04}
  8311. prop Format :: if GBL.DSPARITHMETIC == "FIXED" {"%d"} else {"%f"}
  8312. prop Label :: "Phase (radians)"
  8313. prop JSName :: "phase"
  8314. prop Visible :: 1
  8315. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "sine" || self.iDevice == "user")
  8316. }
  8317. inst iSineRate :: if GBL.DSPARITHMETIC == "FIXED" {256} else {44000} {
  8318. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8319. prop Label :: "Sample rate (samples/sec)"
  8320. prop JSName :: "rate"
  8321. prop Visible :: 1
  8322. prop Writable :: self.iUseDefaults == 0 && (self.iDevice == "sine" || self.iDevice == "user")
  8323. }
  8324. inst iUserFxn :: if self.iDevice == "printFloat" {@_DGN_printFloat} else {if self.iDevice == "printHex" {@_DGN_printHex} else {if self.iDevice == "printInt" {@_DGN_printInt} else {@_FXN_F_nop}}} {
  8325. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8326. prop Label :: "User function"
  8327. prop JSName :: "fxn"
  8328. prop Visible :: 1
  8329. prop Writable :: self.iDevice == "user"
  8330. prop Set :: (self.iUserFxn = $1, self.iSaveUserFxn = self.iUserFxn, "ok")
  8331. }
  8332. inst iSaveUserFxn :: @_FXN_F_nop {
  8333. prop Visible :: 0
  8334. prop Writable :: 0
  8335. prop NoGen :: 1
  8336. }
  8337. inst iUserArg :: = 0 {
  8338. prop Type :: "{7C434D01-1629-11d0-9BFE-0000C0AC14C7}"
  8339. prop Label :: "User function argument"
  8340. prop JSName :: "arg"
  8341. prop Visible :: 1
  8342. prop Writable :: self.iDevice == "user"
  8343. }
  8344. inst iFxns :: @_DGN_FXNS {
  8345. prop NoGen :: 1
  8346. }
  8347. }
  8348. type DHL {
  8349. isa ObjectMgr
  8350. prop name :: "DHL"
  8351. prop Label :: "DHL - Host Link Driver"
  8352. prop IsContainedIn :: SIODRIVER
  8353. prop GlobalHelpTopic :: (303)
  8354. prop InstanceHelpTopic :: (403)
  8355. prop InstancePropertyPage :: ("{9C29DA20-90F9-11d1-988B-0020AFEE33C6}")
  8356. prop GlobalPropertyPage :: ("{9C29DA21-90F9-11d1-988B-0020AFEE33C6}")
  8357. prop GlobalIcon :: 127
  8358. prop InstanceIcon :: 128
  8359. prop DependsOn :: "DEV"
  8360. prop Visible :: 1
  8361. prop isDriver :: 1
  8362. prop objectSize :: (if (GBL.DSPTYPE == 62) {$a = (19)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 1) {$a = (22)} , if (GBL.DSPTYPE == 54 && GBL.FARMODE == 0) {$a = (19)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "LARGE") {$a = (34)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "HUGE") {$a = (34)} , if (GBL.DSPTYPE == 55 && GBL.MEMORYMODEL == "SMALL") {$a = (22)} , if (GBL.DSPTYPE == 28) {$a = (34)} , $a)
  8363. prop dataSize :: (DHL.objectSize * DHL.gNumOf * (GBL.DSPWORDSIZE / GBL.DSPCHARSIZE))
  8364. prop localCanCreate :: (if (self.gChannelsAvailable > 0) {"ok"} else {self.warning("No HST channels are available for a new DHL device.")})
  8365. prop localCreate :: (self.gChannelsAvailable--, self.seizeHSTChannel(self.iHSTChannel), "ok")
  8366. prop seizeHSTChannel :: ($1.iDelUser = "DHL", $1.iDHLAvailable = 0, $1.notify = @_DHL_notify, $1.arg0 = $1.iId, "ok")
  8367. prop localDelete :: (self.gChannelsAvailable++, self.releaseHSTChannel(self.iHSTChannel), "ok")
  8368. prop releaseHSTChannel :: ($1.iDelUser = "USER", $1.iDHLAvailable = 1, $1.notify = @_FXN_F_nop, $1.arg0 = 0, "ok")
  8369. prop AllocType :: (if (self.gNumOf > 0) {"1\0, _globalAllocDesc, _memSeg, _placement"} )
  8370. prop _globalAllocDesc :: "%8t .dhl: {}"
  8371. prop _memSeg :: self.OBJMEMSEG
  8372. prop _placement :: (0x7fffffff / 2)
  8373. global gUser :: "USER" {
  8374. prop Visible :: 0
  8375. prop Writable :: 0
  8376. prop NoGen :: 1
  8377. }
  8378. global gSetOf :: 0 {
  8379. prop Visible :: 0
  8380. prop Writable :: 0
  8381. prop NoGen :: 1
  8382. }
  8383. global gNumOf :: 0 {
  8384. prop Visible :: 0
  8385. prop Writable :: 0
  8386. prop NoGen :: 1
  8387. }
  8388. global gDirty :: 0 {
  8389. prop Visible :: 0
  8390. prop Writable :: 0
  8391. prop NoGen :: 1
  8392. }
  8393. global gInitFlag :: 1 {
  8394. prop Visible :: 0
  8395. prop Writable :: 0
  8396. prop NoGen :: 1
  8397. }
  8398. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  8399. prop Visible :: 0
  8400. prop Writable :: 0
  8401. prop NoGen :: 1
  8402. }
  8403. global gChannelsAvailable :: 0
  8404. global OBJMEMSEG :: IRAM {
  8405. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  8406. prop MemberType :: MEM
  8407. prop MemberTest :: MEM.dataMember($1)
  8408. prop Label :: "Object Memory"
  8409. prop JSName :: "OBJMEMSEG"
  8410. prop Visible :: 1
  8411. prop Writable :: 1
  8412. prop NoGen :: 1
  8413. }
  8414. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  8415. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  8416. prop Label :: "comment"
  8417. prop JSName :: "comment"
  8418. prop Visible :: 1
  8419. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  8420. prop NoGen :: 1
  8421. }
  8422. inst iIsUsed :: 0 {
  8423. prop Visible :: 0
  8424. prop Writable :: 0
  8425. prop NoGen :: 1
  8426. }
  8427. inst iId :: 0 {
  8428. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8429. prop Style :: 0x01
  8430. prop Visible :: 0
  8431. prop Writable :: 1
  8432. prop NoGen :: 1
  8433. }
  8434. inst iDelUser :: "USER" {
  8435. prop Visible :: 0
  8436. prop Writable :: 0
  8437. prop NoGen :: 1
  8438. }
  8439. inst iDelMsg :: "ok" {
  8440. prop Visible :: 0
  8441. prop Writable :: 0
  8442. prop NoGen :: 1
  8443. }
  8444. inst iHSTChannel :: (scan ($i; HST) {if ($i.iDHLAvailable == 1) {$a = $i} }, $a) {
  8445. prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
  8446. prop Label :: "Underlying HST Channel"
  8447. prop JSName :: "hstChannel"
  8448. prop MemberType :: HST
  8449. prop MemberTest :: (if (($1.iDHLAvailable == 1) || ($1 == self.iHSTChannel)) {1} else {0})
  8450. prop Set :: (if ($1.iDHLAvailable != 1) {self.error("This channel is already in use.")} else {self.releaseHSTChannel(self.iHSTChannel), self.seizeHSTChannel($1), self.iHSTChannel = $1, "ok"})
  8451. prop Visible :: 1
  8452. prop Writable :: 1
  8453. prop NoGen :: 0
  8454. }
  8455. inst iMode :: = self.iHSTChannel.mode {
  8456. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  8457. prop Label :: "Mode"
  8458. prop JSName :: "mode"
  8459. prop Visible :: 1
  8460. prop Writable :: 0
  8461. prop NoGen :: 0
  8462. }
  8463. inst iDevId :: = (self.iHSTChannel.iId) {
  8464. prop NoGen :: 0
  8465. }
  8466. inst iIsTerminal :: 1 {
  8467. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8468. prop NoGen :: 1
  8469. }
  8470. inst iIsVirtual :: 0 {
  8471. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8472. prop NoGen :: 1
  8473. }
  8474. inst iFxns :: @_DHL_FXNS {
  8475. prop NoGen :: 1
  8476. }
  8477. }
  8478. type DPI {
  8479. isa ObjectMgr
  8480. prop name :: "DPI"
  8481. prop Label :: "DPI - Pipe Driver"
  8482. prop IsContainedIn :: SIODRIVER
  8483. prop GlobalIcon :: 127
  8484. prop InstanceIcon :: 128
  8485. prop GlobalHelpTopic :: (304)
  8486. prop InstanceHelpTopic :: (404)
  8487. prop InstancePropertyPage :: ("{7FE06FA0-2DE9-11d1-988B-0020AFEE33C6}")
  8488. prop GlobalPropertyPage :: ("{7FE06FA1-2DE9-11d1-988B-0020AFEE33C6}")
  8489. prop DependsOn :: "DEV"
  8490. prop maxObjs :: (32767)
  8491. prop isDriver :: (1)
  8492. prop localCreate :: (self.gCurDevId += 1, "ok")
  8493. global gUser :: "USER" {
  8494. prop Visible :: 0
  8495. prop Writable :: 0
  8496. prop NoGen :: 1
  8497. }
  8498. global gSetOf :: 0 {
  8499. prop Visible :: 0
  8500. prop Writable :: 0
  8501. prop NoGen :: 1
  8502. }
  8503. global gNumOf :: 0 {
  8504. prop Visible :: 0
  8505. prop Writable :: 0
  8506. prop NoGen :: 1
  8507. }
  8508. global gDirty :: 0 {
  8509. prop Visible :: 0
  8510. prop Writable :: 0
  8511. prop NoGen :: 1
  8512. }
  8513. global gInitFlag :: 1 {
  8514. prop Visible :: 0
  8515. prop Writable :: 0
  8516. prop NoGen :: 1
  8517. }
  8518. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  8519. prop Visible :: 0
  8520. prop Writable :: 0
  8521. prop NoGen :: 1
  8522. }
  8523. global gCurDevId :: 0 {
  8524. prop Visible :: 0
  8525. prop Writable :: 0
  8526. prop NoGen :: 1
  8527. }
  8528. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  8529. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  8530. prop Label :: "comment"
  8531. prop JSName :: "comment"
  8532. prop Visible :: 1
  8533. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  8534. prop NoGen :: 1
  8535. }
  8536. inst iIsUsed :: 0 {
  8537. prop Visible :: 0
  8538. prop Writable :: 0
  8539. prop NoGen :: 1
  8540. }
  8541. inst iId :: 0 {
  8542. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8543. prop Style :: 0x01
  8544. prop Visible :: 0
  8545. prop Writable :: 1
  8546. prop NoGen :: 1
  8547. }
  8548. inst iDelUser :: "USER" {
  8549. prop Visible :: 0
  8550. prop Writable :: 0
  8551. prop NoGen :: 1
  8552. }
  8553. inst iDelMsg :: "ok" {
  8554. prop Visible :: 0
  8555. prop Writable :: 0
  8556. prop NoGen :: 1
  8557. }
  8558. inst iDevId :: DPI.gCurDevId {
  8559. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8560. prop Visible :: 0
  8561. prop Writable :: 0
  8562. prop Set :: (self.error("DPI.iDevId parameter no longer settable, it is now handled automatically"))
  8563. }
  8564. inst iIsVirtual :: 0 {
  8565. prop Label :: "Allow virtual instances of this device."
  8566. prop JSName :: "allowVirtual"
  8567. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8568. prop Visible :: 1
  8569. prop Writable :: 1
  8570. prop NoGen :: 0
  8571. prop Set :: (if ($1 == 1) {$a = "ok", $b = 1, scan ($i; SIO) {if ($i.iDevice == self) {$a = self.error("This DPI instance is being used by one or more SIO instances, cannot reconfigure"), $b = 0} }, if ($b == 1) {self.iIsVirtual = 1} , $a} else {self.iIsVirtual = 0, "ok"})
  8572. }
  8573. inst iIsTerminal :: 1 {
  8574. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8575. prop NoGen :: 1
  8576. }
  8577. inst iFxns :: @_DPI_FXNS {
  8578. prop NoGen :: 1
  8579. }
  8580. }
  8581. type MSGQ {
  8582. isa Module
  8583. prop Visible :: 1
  8584. prop name :: "MSGQ"
  8585. prop Label :: "MSGQ - Message Queue Manager"
  8586. prop IsConfMod :: self.USEMSGQ
  8587. prop IsContainedIn :: IOF
  8588. prop DependsOn :: "GIO,SIO"
  8589. prop GlobalIcon :: 131
  8590. prop InstanceIcon :: 132
  8591. prop GlobalHelpTopic :: (323)
  8592. prop InstanceHelpTopic :: (423)
  8593. prop InstancePropertyPage :: ("{473C4A62-B1A8-11d0-9885-0020AFEE33C6}")
  8594. prop GlobalPropertyPage :: ("{473C4A63-B1A8-11d0-9885-0020AFEE33C6}")
  8595. global gUser :: "USER" {
  8596. prop Visible :: 0
  8597. prop Writable :: 0
  8598. prop NoGen :: 1
  8599. }
  8600. global gSetOf :: 0 {
  8601. prop Visible :: 0
  8602. prop Writable :: 0
  8603. prop NoGen :: 1
  8604. }
  8605. global gNumOf :: 0 {
  8606. prop Visible :: 0
  8607. prop Writable :: 0
  8608. prop NoGen :: 1
  8609. }
  8610. global gDirty :: 0 {
  8611. prop Visible :: 0
  8612. prop Writable :: 0
  8613. prop NoGen :: 1
  8614. }
  8615. global gInitFlag :: 1 {
  8616. prop Visible :: 0
  8617. prop Writable :: 0
  8618. prop NoGen :: 1
  8619. }
  8620. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  8621. prop Visible :: 0
  8622. prop Writable :: 0
  8623. prop NoGen :: 1
  8624. }
  8625. global USEMSGQ :: 0 {
  8626. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8627. prop Label :: "Enable MSGQ Manager"
  8628. prop JSName :: "ENABLEMSGQ"
  8629. prop Visible :: 1
  8630. prop Writable :: 1
  8631. prop NoGen :: 0
  8632. }
  8633. }
  8634. type HOOK {
  8635. isa ObjectMgr
  8636. prop name :: "HOOK"
  8637. prop Label :: "HOOK - Module Hook Manager"
  8638. prop IsContainedIn :: SYSTEM
  8639. prop DependsOn :: "SWI"
  8640. prop InstancePropertyPage :: ("{473C4A64-B1A8-11d0-9885-0020AFEE33C6}")
  8641. prop GlobalIcon :: 181
  8642. prop InstanceIcon :: 182
  8643. prop GlobalHelpTopic :: (318)
  8644. prop InstanceHelpTopic :: (418)
  8645. prop localCreate :: (if (self.gNumOf == 0) {HOOK_KNL.iIsUsed = 1, self.mkId(0)} , "ok")
  8646. prop localDelete :: (if (self.gNumOf == 2) {HOOK_KNL.iIsUsed = 0, self.rmId} , "ok")
  8647. prop maxObjs :: (32767)
  8648. prop SortByField :: "iPri"
  8649. prop SortGroups :: 1
  8650. global gUser :: "USER" {
  8651. prop Visible :: 0
  8652. prop Writable :: 0
  8653. prop NoGen :: 1
  8654. }
  8655. global gSetOf :: 0 {
  8656. prop Visible :: 0
  8657. prop Writable :: 0
  8658. prop NoGen :: 1
  8659. }
  8660. global gNumOf :: 0 {
  8661. prop Visible :: 0
  8662. prop Writable :: 0
  8663. prop NoGen :: 1
  8664. }
  8665. global gDirty :: 0 {
  8666. prop Visible :: 0
  8667. prop Writable :: 0
  8668. prop NoGen :: 1
  8669. }
  8670. global gInitFlag :: 1 {
  8671. prop Visible :: 0
  8672. prop Writable :: 0
  8673. prop NoGen :: 1
  8674. }
  8675. global gInit :: = ($a = 0, $b = 0, scan ($i; self) {if ($i.IsConfObj()) {$a += 1, if (self.isFinite) {$b |= 1 << $i.iId} } }, self.gNumOf = $a, self.gSetOf = $b, if (self.gInitFlag == 0) {self.localInit()} , self.gInitFlag = 1) {
  8676. prop Visible :: 0
  8677. prop Writable :: 0
  8678. prop NoGen :: 1
  8679. }
  8680. global KNLID :: = (HOOK_KNL.Order - 1) {
  8681. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8682. }
  8683. inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
  8684. prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
  8685. prop Label :: "comment"
  8686. prop JSName :: "comment"
  8687. prop Visible :: 1
  8688. prop Writable :: if self.iDelUser == "USER" {1} else {0}
  8689. prop NoGen :: 1
  8690. }
  8691. inst iIsUsed :: 0 {
  8692. prop Visible :: 0
  8693. prop Writable :: 0
  8694. prop NoGen :: 1
  8695. }
  8696. inst iId :: 0 {
  8697. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8698. prop Style :: 0x01
  8699. prop Visible :: 0
  8700. prop Writable :: 1
  8701. prop NoGen :: 1
  8702. }
  8703. inst iDelUser :: "USER" {
  8704. prop Visible :: 0
  8705. prop Writable :: 0
  8706. prop NoGen :: 1
  8707. }
  8708. inst iDelMsg :: "ok" {
  8709. prop Visible :: 0
  8710. prop Writable :: 0
  8711. prop NoGen :: 1
  8712. }
  8713. inst initFxn :: @_FXN_F_nop {
  8714. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8715. prop Label :: "Initialization function"
  8716. prop JSName :: "initFxn"
  8717. prop Visible :: 1
  8718. prop Writable :: 1
  8719. }
  8720. inst createFxn :: @_FXN_F_nop {
  8721. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8722. prop Label :: "Create function"
  8723. prop JSName :: "createFxn"
  8724. prop Visible :: 1
  8725. prop Writable :: self.iDelUser == "USER"
  8726. }
  8727. inst deleteFxn :: @_FXN_F_nop {
  8728. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8729. prop Label :: "Delete function"
  8730. prop JSName :: "deleteFxn"
  8731. prop Visible :: 1
  8732. prop Writable :: self.iDelUser == "USER"
  8733. }
  8734. inst exitFxn :: @_FXN_F_nop {
  8735. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8736. prop Label :: "Exit function"
  8737. prop JSName :: "exitFxn"
  8738. prop Visible :: 1
  8739. prop Writable :: self.iDelUser == "USER"
  8740. }
  8741. inst callSwitchFxn :: 0 {
  8742. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8743. prop Label :: "Call switch function"
  8744. prop JSName :: "callSwitchFxn"
  8745. prop Visible :: 1
  8746. prop Writable :: self.iDelUser == "USER"
  8747. }
  8748. inst switchFxn :: @_FXN_F_nop {
  8749. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8750. prop Label :: "Switch function"
  8751. prop JSName :: "switchFxn"
  8752. prop Visible :: 1
  8753. prop Writable :: self.callSwitchFxn
  8754. }
  8755. inst callReadyFxn :: 0 {
  8756. prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
  8757. prop Label :: "Call ready function"
  8758. prop JSName :: "callReadyFxn"
  8759. prop Visible :: 1
  8760. prop Writable :: self.iDelUser == "USER"
  8761. }
  8762. inst readyFxn :: @_FXN_F_nop {
  8763. prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
  8764. prop Label :: "Ready function"
  8765. prop JSName :: "readyFxn"
  8766. prop Visible :: 1
  8767. prop Writable :: self.callReadyFxn
  8768. }
  8769. inst Order :: 2 {
  8770. prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
  8771. prop JSName :: "order"
  8772. prop NoGen :: 1
  8773. prop Writable :: 1
  8774. }
  8775. inst iPri :: 0 {
  8776. prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
  8777. prop Visible :: 0
  8778. prop NoGen :: 1
  8779. }
  8780. }
  8781. object HOOK_KNL :: HOOK {
  8782. param iComment :: "Used to support TSK function hooks (cannot be deleted)"
  8783. param iIsUsed :: 0
  8784. param iId :: 0
  8785. param iDelUser :: "HOOK"
  8786. param iDelMsg :: "This hook instance is used by TSK and cannot be deleted"
  8787. param initFxn :: @_FXN_F_nop
  8788. param createFxn :: @_FXN_F_nop
  8789. param deleteFxn :: @_FXN_F_nop
  8790. param exitFxn :: @_FXN_F_nop
  8791. param callSwitchFxn :: 0
  8792. param switchFxn :: @_FXN_F_nop
  8793. param callReadyFxn :: 0
  8794. param readyFxn :: @_FXN_F_nop
  8795. param Order :: 1
  8796. param iPri :: 0
  8797. }
  8798. object SDRAM :: MEM {
  8799. param iComment :: "This object defines space for the DSP's off-chip memory"
  8800. param iIsUsed :: 1
  8801. param iId :: 0
  8802. param iDelUser :: "USER"
  8803. param iDelMsg :: "ok"
  8804. param base :: -2147483648
  8805. param len :: 16777216
  8806. param iAllocHeap :: 1
  8807. param iHeapSize :: 32768
  8808. param iUserHeapId :: 0
  8809. param iHeapId :: @segment_name
  8810. param iReqHeapCount :: 0
  8811. param space :: "code/data"
  8812. param dynamicLoading :: 0
  8813. param iIsModifiable :: 1
  8814. }
  8815. object IRAM :: MEM {
  8816. param iComment :: "Internal L2 memory"
  8817. param iIsUsed :: 1
  8818. param iId :: 0
  8819. param iDelUser :: "USER"
  8820. param iDelMsg :: "ok"
  8821. param base :: 0
  8822. param len :: 1048576
  8823. param iAllocHeap :: 1
  8824. param iHeapSize :: 524288
  8825. param iUserHeapId :: 0
  8826. param iHeapId :: @segment_name
  8827. param iReqHeapCount :: 3
  8828. param space :: "code/data"
  8829. param dynamicLoading :: 0
  8830. param iIsModifiable :: 1
  8831. }