jpeg_motion.cdb
上传用户:dahaojd
上传日期:2008-01-29
资源大小:14357k
文件大小:1020k
- //!
- //# c64xx.cdb 4.90.270
- object ISRAM :: MEM {
- param iComment :: "This object defines space for the DSP's on-chip memory"
- param iIsUsed :: 1
- param iId :: 0
- param iDelUser :: "USER"
- param iDelMsg :: "ok"
- param base :: 8
- param len :: 131064
- param iAllocHeap :: 1
- param iHeapSize :: 92160
- param iUserHeapId :: 1
- param iHeapId :: @_intHeap
- param iReqHeapCount :: 0
- param space :: "code/data"
- param iIsModifiable :: 1
- }
- object CACHE_L2 :: MEM {
- param iComment :: "Generated by Cache Settings in GBL"
- param iIsUsed :: 0
- param iId :: 0
- param iDelUser :: "MEM"
- param iDelMsg :: "L2 Cache cannot be deleted by user"
- param base :: 0
- param len :: 0
- param iAllocHeap :: 0
- param iHeapSize :: 32768
- param iUserHeapId :: 0
- param iHeapId :: @segment_name
- param iReqHeapCount :: 0
- param space :: "Cache"
- param iIsModifiable :: 0
- }
- class Module {
- prop Visible :: 1
- prop Writable :: 1
- prop IsConfMod :: (if self.gNumOf > 0 {1} else {0})
- prop NoGen :: 0
- prop IsDirty :: ($a = self.gDirty, self.gDirty = 0, $a)
- prop dataSize :: 0
- prop error :: # ("Error: ", self.name, $1)
- prop warning :: ("Warning ...", self.name, $1)
- prop minBit :: ($a = 0, while (($1 & (1 << $a)) && $a < 32) {++$a}, $a)
- prop name :: ("<unnamed module>")
- prop numBit :: ($a = $b = 0, while ($a < 32) {if ($1 & (1 << $a)) {++$b} }, $b)
- }
- class ObjectMgr {
- isa Module
- prop CanCreate :: (if (self.gNumOf < self.maxObjs()) {self.localCanCreate()} else {self.warning("Maximum number of objects already created")})
- 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)})
- 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)
- 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)
- prop GetSetOf :: (self.gSetOf)
- prop GetNumOf :: (self.gNumOf)
- prop GetObjId :: (self.iId)
- prop GetPriority :: (self.iId)
- prop SetPriority :: (self.iId = $1)
- prop IsConfObj :: (self.iIsUsed)
- prop localCanCreate :: ("ok")
- prop localCanDelete :: ("ok")
- prop localCreate :: ("ok")
- prop localDelete :: ("ok")
- prop localInit :: (0)
- prop isFinite :: (if self.maxObjs() <= GBL.DSPWORDSIZE {1} else {0})
- 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)
- prop rmId :: (if (self.isFinite()) {self.gSetOf &= ~(1 << self.iId)} , --self.gNumOf)
- prop maxObjs :: (GBL.DSPWORDSIZE)
- prop isDriver :: (0)
- prop SortChildHierView :: (1)
- }
- type GlobalStatus {
- prop NoGen :: 1
- prop Visible :: 0
- prop Writable :: 0
- prop Label :: "Current Configuration Status"
- prop GlobalIcon :: 101
- prop InstanceIcon :: 101
- prop GlobalHelpTopic :: (100)
- prop GlobalPropertyPage :: ("{9D3AD931-847B-11d0-A621-0000C070F3E9}")
- prop Status :: (# self.SeedVersion, # self.MinStackSize, # self.SysDataSize)
- global GENLIB :: "bioscfg.dll" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Generation Library"
- prop NoGen :: 1
- prop Visible :: 0
- prop Writable :: 0
- }
- global DATE :: "Thu Aug 07 17:30:52 2003" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global GCONFVERS :: "@(#)*** xdc-c38" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global SysDataSize :: = ($a = 0, scan ($i; nil) {if ($i.dataSize() != nil) {$a = $a + $i.dataSize()} }, $a) {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: "Estimated Data Size: %d"
- prop StatusField :: 1
- prop NoGen :: 1
- }
- 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.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) {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: "Est. Min. Stack Size (MAUs): %d"
- prop StatusField :: 1
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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"}) {
- prop Label :: "Warnings"
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global SeedVersion :: = "@(#)*** cuda-4.90.00.27" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- class EModule {
- isa Module
- prop IsXMod :: (1)
- prop Vendor :: ("")
- prop Version :: ("")
- }
- class EObjectMgr {
- isa ObjectMgr
- prop IsXMod :: (1)
- prop Vendor :: ("")
- prop Version :: ("")
- }
- class ModuleFolder {
- isa Module
- prop NoGen :: 1
- }
- type SYSTEM {
- isa ModuleFolder
- prop Label :: "System"
- prop GlobalIcon :: 151
- prop GlobalHelpTopic :: (500)
- prop GlobalPropertyPage :: ("{B936FB91-52A5-11d4-947C-0050048381B7}")
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- type INS {
- isa ModuleFolder
- prop Label :: "Instrumentation"
- prop GlobalIcon :: 152
- prop GlobalHelpTopic :: (501)
- prop GlobalPropertyPage :: ("{053C8F90-52A6-11d4-947C-0050048381B7}")
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- type SCH {
- isa ModuleFolder
- prop Label :: "Scheduling"
- prop GlobalIcon :: 153
- prop GlobalHelpTopic :: (502)
- prop GlobalPropertyPage :: ("{053C8F91-52A6-11d4-947C-0050048381B7}")
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- type SYN {
- isa ModuleFolder
- prop Label :: "Synchronization"
- prop GlobalIcon :: 154
- prop GlobalHelpTopic :: (503)
- prop GlobalPropertyPage :: ("{053C8F92-52A6-11d4-947C-0050048381B7}")
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- type IOF {
- isa ModuleFolder
- prop Label :: "Input/Output"
- prop GlobalIcon :: 155
- prop GlobalHelpTopic :: (504)
- prop GlobalPropertyPage :: ("{053C8F93-52A6-11d4-947C-0050048381B7}")
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- type PROJ {
- isa ObjectMgr
- prop name :: "PROJ"
- prop maxObjs :: 0
- prop Label :: "Project Manager"
- prop GlobalIcon :: 121
- prop InstanceIcon :: 122
- prop InstanceHelpTopic :: (201)
- prop GlobalHelpTopic :: (101)
- prop InstancePropertyPage :: ("{AC3C77D1-890B-11d0-A621-0000C070F3E9}")
- prop GlobalPropertyPage :: ("{AC3C77D2-890B-11d0-A621-0000C070F3E9}")
- prop NoGen :: 1
- prop Visible :: 0
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global ALIASALL :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Generate C Names for All Objects"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- }
- global IGNOREWARNING :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Ignore Warnings"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- }
- global LIBPATH :: ".;../../lib;$(BIOSROOT)/lib" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Library Search Path"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global INCPATH :: ".;../../include;$(BIOSROOT)/include" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Include File Search Path"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global OBJDIR :: "." {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Object file directory"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global EXTEXE :: "out" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Executable File Extension"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global EXTLIB :: "lib" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Library File Extension"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global EXTASM :: "asm" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Assembly Language Source File Extension"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global EXTOBJ :: "obj" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Object File Extension"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "comment"
- prop JSName :: "comment"
- prop Visible :: 1
- prop Writable :: if self.iDelUser == "USER" {1} else {0}
- prop NoGen :: 1
- }
- inst iIsUsed :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iId :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Style :: 0x01
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst iDelUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iDelMsg :: "ok" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst projType :: "Executable" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "Executable,Library"
- prop Label :: "Target Type"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst projName :: "$(PROG)" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Target File Name"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst useRpt :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Use RPT Instruction"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst minimizeSpace :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Optimize for Space over Time"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst tmx :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Avoid TMX Silicon Bugs"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- }
- type PROJ_FILE {
- isa ObjectMgr
- prop Visible :: 0
- prop Label :: "Project File Manager"
- prop InstanceHelpTopic :: (BIOSHELP_PROJ_FILE_INSTANCE)
- prop GlobalHelpTopic :: (BIOSHELP_PROJ_FILE_GLOBAL)
- prop InstancePropertyPage :: ("{AC3C77D3-890B-11d0-A621-0000C070F3E9}")
- prop GlobalPropertyPage :: ("{AC3C77D4-890B-11d0-A621-0000C070F3E9}")
- prop NoGen :: 1
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "comment"
- prop JSName :: "comment"
- prop Visible :: 1
- prop Writable :: if self.iDelUser == "USER" {1} else {0}
- prop NoGen :: 1
- }
- inst iIsUsed :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iId :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Style :: 0x01
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst iDelUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iDelMsg :: "ok" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst elemType :: "C Source" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "C Source,ASM Source,Library,Linker Command File"
- prop Label :: "Input File Type"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst elemName :: "$(PROG)" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Input File Name"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst optLevel :: "register+local+global" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "register,register+local,register+local+global,register+local+global+file"
- prop Label :: "Optimization Level"
- prop Visible :: 0
- prop Writable :: if self.elemType == "C Source" {1} else {0}
- prop NoGen :: 1
- }
- inst inline :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Inline Expansion"
- prop Visible :: 0
- prop Writable :: if self.elemType == "C Source" {1} else {0}
- prop NoGen :: 1
- }
- inst definitions :: "" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Additional Definitions"
- prop Visible :: 0
- prop Writable :: if self.elemType == "C Source" {1} else {0}
- prop NoGen :: 1
- }
- inst iParent :: 0 {
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- }
- type GBL {
- isa Module
- prop name :: "GBL"
- prop Label :: "Global Settings"
- prop IsContainedIn :: SYSTEM
- prop cGen :: 1
- prop GenLinkPrologue :: (if ((GBL.ROM == 1) && (GBL.DSPTYPE == 54)) {"%10SnSECTIONS {%4tn.vers (COPY): {} /* version information */%0tn}nn-priorityn%1S-lbios5402.o54%24t/* BIOS ROM library */%0tn-l%2S%3Sn%15S%4S%16S%5S%6S%12S%7S , _autoInitStr, _board, _librarySuffix, _devLibStr, _biosLibStr, _rtdxLibStr, _rtsLibStr, _librarySuffix, _compilerModel, _lnkCmdStr, _lnkCmdFile, _cslLibStr, _chipType, _devLibSuffix, _chipStr, _sioLibStr"} else {"%10SnSECTIONS {%4tn.vers (COPY): {} /* version information */%0tn}nn-priorityn%1S-l%2S%3Sn%15S%4S%16S%5S%6S%12S%7S , _autoInitStr, _board, _librarySuffix, _devLibStr, _biosLibStr, _rtdxLibStr, _rtsLibStr, _librarySuffix, _compilerModel, _lnkCmdStr, _lnkCmdFile, _cslLibStr, _chipType, _devLibSuffix, _chipStr, _sioLibStr"})
- prop GenLinkEpilogue :: ("%0t_GBL_CACHE = GBL_CACHE;n ")
- prop ConfigurationClass :: "{2779A121-92CC-11d1-A63D-0000C070F3E9}"
- prop GlobalIcon :: 105
- prop InstanceIcon :: 106
- prop GlobalHelpTopic :: (103)
- prop InstanceHelpTopic :: (103)
- prop InstancePropertyPage :: ("{B7240DE4-AA51-11cf-9BFE-0000C0AC14C7}")
- prop GlobalPropertyPage :: ("{B7240DE5-AA51-11cf-9BFE-0000C0AC14C7}")
- 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"))
- prop chipcall :: ("ok")
- prop IsConfMod :: 1
- prop L2Check :: (if (self.DSPSUBTYPE == 6211 || self.DSPSUBTYPE == 6711) {self.PCC = "mapped", if (self.C641XL2CONFIGURE == 1) {self.C641XL2CONFIGURE = 0, self.L2CONFIGALLOC = 0} } else {if (self.DSPSUBTYPE == 6400) {self.PCC = "mapped", if (self.C621XL2CONFIGURE == 1) {self.C621XL2CONFIGURE = 0} } else {if (self.C621XL2CONFIGURE == 1) {self.C621XL2CONFIGURE = 0} else {if (self.C641XL2CONFIGURE == 1) {self.C641XL2CONFIGURE = 0, self.L2CONFIGALLOC = 0} }}}, self.L2CacheSizeCheck())
- 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 = 0x0, CACHE_L2.len = 0x0, CACHE_L2.Delete("MEM")} else {if (self.L2MODEOPTS == "1-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6713" || self.CHIPTYPE == "DA610" {0x3c000} else {0xc000}, CACHE_L2.len = 0x4000} else {if (self.L2MODEOPTS == "2-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6713" || self.CHIPTYPE == "DA610" {0x38000} else {0x8000}, CACHE_L2.len = 0x8000} else {if (self.L2MODEOPTS == "3-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6713" || self.CHIPTYPE == "DA610" {0x34000} else {0x4000}, CACHE_L2.len = 0xc000} else {if (self.L2MODEOPTS == "4-way cache") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6713" || self.CHIPTYPE == "DA610" {0x30000} else {0x0000}, CACHE_L2.len = 0x10000} }}}}}, $e)
- 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 = 0x0, CACHE_L2.len = 0x0, CACHE_L2.Delete("MEM")} else {if (self.C641XL2MODEOPTS == "4-way cache (32k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6412" || self.CHIPTYPE == "DM642" {0x38000} else {0xf8000}, CACHE_L2.len = 0x8000} else {if (self.C641XL2MODEOPTS == "4-way cache (64k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6412" || self.CHIPTYPE == "DM642" {0x30000} else {0xf0000}, CACHE_L2.len = 0x10000} else {if (self.C641XL2MODEOPTS == "4-way cache (128k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6412" || self.CHIPTYPE == "DM642" {0x20000} else {0xe0000}, CACHE_L2.len = 0x20000} else {if (self.C641XL2MODEOPTS == "4-way cache (256k)") {CACHE_L2.Create("MEM"), CACHE_L2.base = if self.CHIPTYPE == "6412" || self.CHIPTYPE == "DM642" {0x0} else {0xc0000}, CACHE_L2.len = 0x40000} }}}}}, $e)
- 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)
- 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)})
- prop setCSLNAME :: (if (self.ENDIAN == "big") {if self.CHIPTYPE == "6201" {"csl6201e.lib"} else {if self.CHIPTYPE == "6202" {"csl6202e.lib"} else {if self.CHIPTYPE == "6203" {"csl6203e.lib"} else {if self.CHIPTYPE == "6204" {"csl6204e.lib"} else {if self.CHIPTYPE == "6205" {"csl6205e.lib"} else {if self.CHIPTYPE == "6211" {"csl6211e.lib"} else {if self.CHIPTYPE == "6701" {"csl6701e.lib"} else {if self.CHIPTYPE == "6711" {"csl6711e.lib"} else {if self.CHIPTYPE == "6712" {"csl6712e.lib"} else {if self.CHIPTYPE == "6713" {"csl6713e.lib"} else {if self.CHIPTYPE == "DA610" {"cslDA610e.lib"} else {if self.CHIPTYPE == "DM642" {"cslDM642e.lib"} else {if self.CHIPTYPE == "6412" {"csl6412e.lib"} else {if self.CHIPTYPE == "6414" {"csl6414e.lib"} else {if self.CHIPTYPE == "6415" {"csl6415e.lib"} else {if self.CHIPTYPE == "6416" {"csl6416e.lib"} else {""}}}}}}}}}}}}}}}}} else {if self.CHIPTYPE == "6201" {"csl6201.lib"} else {if self.CHIPTYPE == "6202" {"csl6202.lib"} else {if self.CHIPTYPE == "6203" {"csl6203.lib"} else {if self.CHIPTYPE == "6204" {"csl6204.lib"} else {if self.CHIPTYPE == "6205" {"csl6205.lib"} else {if self.CHIPTYPE == "6211" {"csl6211.lib"} else {if self.CHIPTYPE == "6701" {"csl6701.lib"} else {if self.CHIPTYPE == "6711" {"csl6711.lib"} else {if self.CHIPTYPE == "6712" {"csl6712.lib"} else {if self.CHIPTYPE == "6713" {"csl6713.lib"} else {if self.CHIPTYPE == "DA610" {"cslDA610.lib"} else {if self.CHIPTYPE == "DM642" {"cslDM642.lib"} else {if self.CHIPTYPE == "6412" {"csl6412.lib"} else {if self.CHIPTYPE == "6414" {"csl6414.lib"} else {if self.CHIPTYPE == "6415" {"csl6415.lib"} else {if self.CHIPTYPE == "6416" {"csl6416.lib"} else {""}}}}}}}}}}}}}}}}})
- prop cGenCPrologue :: ("n#ifdef __cplusplusn#pragma CODE_SECTION(".text:CSL_cfgInit")n#elsen#pragma CODE_SECTION(CSL_cfgInit,".text:CSL_cfgInit")n#endifn
- n#ifdef __cplusplusn#pragma FUNC_EXT_CALLED()n#elsen#pragma FUNC_EXT_CALLED(CSL_cfgInit)n#endifn")
- 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}}}})
- 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}}}})
- prop _cint00Str :: "-u_c_int00 %24t/* link with alternate boot.obj */%0tn"
- prop _autoInitStr :: ""
- prop _board :: (if (HST.RTDX == 1) {"lnkrtdx"} else {if (HST.DSM == 1) {"lnkdsm"} else {if (HST.EVM54 == 1) {"lnkevm54"} else {"lnknone"}}})
- prop _dsptype :: GBL.DSPTYPE
- prop _compilerModel :: if self.ENDIAN == "big" {"e"} else {""}
- prop _librarySuffix :: (if (self.DSPSUBTYPE == 6400) {if (self.ENDIAN == "big") {".a64e"} else {".a64"}} else {if (self.ENDIAN == "big") {".a62e"} else {".a62"}})
- prop _devLibSuffix :: (if (self.DSPSUBTYPE == 6700 || self.DSPSUBTYPE == 6711) {if (self.ENDIAN == "big") {".a67e"} else {".a67"}} else {if (self.DSPSUBTYPE == 6400) {if (self.ENDIAN == "big") {".a64e"} else {".a64"}} else {if (self.ENDIAN == "big") {".a62e"} else {".a62"}}})
- prop _rtdxLibStr :: if RTDX.RTDXTYPE == "JTAG" {"-lrtdx64xx%9S.lib %24t/* RTDX support */%0tn"} else {if RTDX.RTDXTYPE == "Simulator" {"-lrtdxsim%9S.lib %24t/* RTDX support */%0tn"} else {"-lrtdxhs%9S.lib %24t/* RTDX support */%0tn"}}
- prop _rtsLibStr :: (if (self.DSPSUBTYPE == 6700 || self.DSPSUBTYPE == 6711) {"-lrts6700%9S.lib%24t/* C and C++ run-time library support */%0tn"} else {if (self.DSPSUBTYPE == 6400) {"-lrts6400%9S.lib%24t/* C and C++ run-time library support */%0tn"} else {"-lrts6200%9S.lib%24t/* C and C++ run-time library support */%0tn"}})
- prop _chipStr :: ""
- prop _biosLibStr :: if self.ENABLEINST {"-lbiosi%8S %24t/* DSP/BIOS support */%0tn"} else {"-lbios%8S %24t/* DSP/BIOS support */%0tn"}
- prop _sioLibStr :: if SIO.USEISSUERECLAIM == 1 {"-lsioir%8S %24t/* supports SIO Issue/Reclaim model only */%0tn"} else {"-lsioboth%8S %24t/* supports both SIO models */%0tn"}
- prop _devLibStr :: "-ldrivers%14S %24t/* device drivers support */%0tn"
- prop _lnkCmdFile :: MEM.LNKCMDFILE
- prop _lnkCmdStr :: (if (MEM.LNKCMDFILE == "") {""} else {"-l%11S %24t/* User Specified Linker cmd file */%0tn"})
- prop _cslLibStr :: if self.CSLNAME == "" {""} else {"-l%13Sn"}
- prop _chipType :: self.CSLNAME
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global PRODUCT :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 1
- prop Visible :: 0
- prop Writable :: 1
- prop EnvField :: 1
- }
- global CALLBACKOBJ :: CLK {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global CHIPCHAIN :: hTimer {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global TRACE :: "CD-01234567" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Trace Mask"
- prop NoGen :: 1
- prop Visible :: 0
- prop Writable :: 0
- }
- global BOARD :: "c64xx" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Target Board Name"
- prop JSName :: "BOARDNAME"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- }
- global ROM :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Link to ROM Library"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 0
- }
- global CPUCLOCK :: 600.000000 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global MIPS :: 600.000000 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Style :: 0x04
- prop Format :: "%.4f"
- prop Label :: "DSP Speed In MHz (CLKOUT)"
- prop JSName :: "CLKOUT"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop Set :: ($a = self.MIPS, $b = if (GBL.DSPTYPE == 62) {$1} else {$1 * 2}, $e = "ok", self.MIPS = $1, if (($e = self.setCPUClock($b)) != "ok") {self.MIPS = $a} , $e)
- }
- global OSTYPE :: "BIOS" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "BIOS"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global DSPTYPE :: 62 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "DSP Major Type"
- prop JSName :: "DSPTYPE"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global DSPSUBTYPE :: 6400 {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "6400"
- prop Label :: "DSP Type"
- prop Visible :: 1
- prop Writable :: self.CHIPTYPE == "other" || self.CHIPTYPE == "custom"
- prop Set :: (self.DSPSUBTYPE = $1, self.L2Check(), "ok")
- prop NoGen :: 1
- }
- global CHIPTYPE :: "DM642" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "DM642,6412,6414,6415,6416,other"
- prop Label :: "Chip Support Library (CSL)"
- prop JSName :: "CHIPTYPE"
- prop NoGen :: 1
- prop Visible :: 1
- prop Writable :: 1
- 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") {self.DSPSUBTYPE = 6711} else {if ($1 == "DM642" || $1 == "6412" || $1 == "6414" || $1 == "6415" || $1 == "6416") {self.DSPSUBTYPE = 6400} }}}}, self.CHIPTYPE = $1, self.CSLNAME = self.setCSLNAME(), if (self.CHIPTYPE == "other" || self.CHIPTYPE == "custom") {self.C621XL2CONFIGURE = 0, self.C641XL2CONFIGURE = 0, self.L2CONFIGURE = 0} , self.L2Check(), $e = "ok", if (GBL.CHIPCHAIN != nil) {$e = GBL.CHIPCHAIN.chipcall()} , $e)
- }
- global CSLNAME :: "cslDM642.lib" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Chip Support Library Name"
- prop Visible :: 1
- prop Writable :: self.CHIPTYPE == "custom"
- prop NoGen :: 1
- }
- global DISPCALLCSLCFGINIT :: = (self.CHIPTYPE != "other" && self.CHIPTYPE != "custom") {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Call CSL_cfgInit Initialization routine"
- prop Visible :: 0
- prop Writable :: self.SUPPORTCSL
- prop NoGen :: 1
- }
- global DSPNAME :: "TMS320C62XX" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global DSPARITHMETIC :: = (if (GBL.DSPTYPE == 62 && (GBL.DSPSUBTYPE / 100) == 67) {"FLOAT"} else {"FIXED"}) {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "FIXED,FLOAT"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global DSPWORDSIZE :: = (if (GBL.DSPTYPE == 30 || GBL.DSPTYPE == 40 || GBL.DSPTYPE == 62) {32} else {16}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "DSP Word Size"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global DSPCHARSIZE :: = (if GBL.DSPTYPE == 62 {8} else {GBL.DSPWORDSIZE}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "DSP Byte Size"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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}}}}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop iComment :: "Size of the Data Pointer"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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}}}}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop iComment :: "Size of Code Pointer"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global ENDIAN :: "little" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "little,big"
- prop Label :: "DSP Endian Mode"
- prop JSName :: "ENDIANMODE"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop Set :: (self.ENDIAN = $1, self.CSLNAME = self.setCSLNAME(), "ok")
- }
- global BIGENDIAN :: = if self.ENDIAN == "little" {0} else {1} {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 0
- }
- global AUTOINIT :: "ROM" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "ROM,RAM"
- prop Label :: "C Autoinitialization Model"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global USERINIT :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Call User Init Function"
- prop JSName :: "CALLUSERINITFXN"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 0
- prop Set :: (if ($1 == 0) {self.USERINITFXN = @_FXN_F_nop, self.USERINIT = $1} else {self.USERINIT = $1}, "ok")
- }
- global USERINITFXN :: @_dm642_init {
- prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
- prop Label :: "User Init Function"
- prop JSName :: "USERINITFXN"
- prop Visible :: 1
- prop Writable :: self.USERINIT
- prop NoGen :: 0
- }
- global OLDAUTOCALCULATE :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "previous value for autocalculate"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global ENABLEINST :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Enable Real Time Analysis"
- prop JSName :: "ENABLEINST"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 0
- 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 {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")
- }
- global CGENERATE :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Do C Generation"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global PCC :: "mapped" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "mapped,cache enable,cache freeze,cache bypass"
- prop Label :: "Program Cache Control - CSR(PCC) "
- prop JSName :: "CSRPCC"
- prop Visible :: 1
- prop Writable :: if (GBL.DSPSUBTYPE == 6211 || GBL.DSPSUBTYPE == 6711 || GBL.DSPSUBTYPE == 6400 || GBL.CHIPTYPE == "other" || GBL.CHIPTYPE == "custom") {0} else {1}
- prop NoGen :: 1
- prop TabName :: "620x/670x"
- }
- global DCC :: "mapped" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "mapped,cache enable,cache freeze,cache bypass"
- prop Label :: "Data Cache Control"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "620x/670x"
- }
- global PCACHE :: = (if (self.PCC == "mapped") {0x0000} else {if (self.PCC == "cache enable") {0x0040} else {if (self.PCC == "cache freeze") {0x0060} else {0x0080}}}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global DCACHE :: = (if (self.DCC == "mapped") {0x0000} else {if (self.DCC == "cache enable") {0x0008} else {if (self.DCC == "cache freeze") {0x000c} else {0x0010}}}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global CACHE :: = (self.PCACHE | self.DCACHE) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 0
- }
- global C621XL2CONFIGURE :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "621x/671x - Configure L2 Memory Settings"
- prop JSName :: "C621XCONFIGUREL2"
- prop Visible :: 1
- prop Writable :: if (GBL.CHIPTYPE == "6211" || GBL.CHIPTYPE == "6711" || GBL.CHIPTYPE == "6712" || GBL.CHIPTYPE == "6713" || GBL.CHIPTYPE == "DA610") {1} else {0}
- prop TabName :: "621x/671x"
- prop Set :: ($e = "ok", self.C621XL2CONFIGURE = $1, self.L2CONFIGURE = $1, self.PCC = "mapped", $e = self.L2CacheSizeCheck(), $e)
- prop NoGen :: 1
- }
- global C641XL2CONFIGURE :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "641x - Configure L2 Memory Settings"
- prop JSName :: "C641XCONFIGUREL2"
- prop Visible :: 1
- prop Writable :: if (GBL.CHIPTYPE == "6414" || GBL.CHIPTYPE == "6415" || GBL.CHIPTYPE == "6416" || GBL.CHIPTYPE == "6412" || GBL.CHIPTYPE == "DM642") {1} else {0}
- prop TabName :: "641x"
- prop Set :: ($e = "ok", self.C641XL2CONFIGURE = $1, self.L2CONFIGURE = $1, self.PCC = "mapped", $e = self.L2CacheSizeCheck(), $e)
- prop NoGen :: 1
- }
- global L2CONFIGURE :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Configure L2 Cache Control (c6x1x support)"
- prop Visible :: 0
- prop NoGen :: 0
- }
- global C621XPCC :: "Cache Enabled - Direct Mapped" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "Cache Enabled - Direct Mapped"
- prop Label :: "Program Cache Control - CSR(PCC) "
- prop Visible :: 1
- prop Writable :: 0
- prop NoGen :: 1
- prop TabName :: "621x/671x"
- }
- global C641XPCC :: "Cache Enabled - Direct Mapped" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: "Cache Enabled - Direct Mapped"
- prop Label :: "641x - Program Cache Control - CSR(PCC)"
- prop Visible :: 1
- prop Writable :: 0
- prop NoGen :: 1
- prop TabName :: "641x"
- }
- global L2MODEOPTS :: = "SRAM" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "L2 Mode - CCFG(L2MODE)"
- prop JSName :: "C621XCCFGL2MODE"
- prop Enum :: "SRAM,1-way cache,2-way cache,3-way cache,4-way cache"
- prop Visible :: 1
- prop Writable :: if ((GBL.CHIPTYPE == "6211" || GBL.CHIPTYPE == "6711" || GBL.CHIPTYPE == "6712" || GBL.CHIPTYPE == "6713" || GBL.CHIPTYPE == "DA610") && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 1
- prop TabName :: "621x/671x"
- prop Set :: ($i = self.L2MODEOPTS, self.L2MODEOPTS = $1, $e = self.L2CacheSizeCheck(), if ($e != "ok") {self.L2MODEOPTS = $i} , $e)
- }
- global C641XL2MODEOPTS :: "4-way cache (0k)" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "641x L2 Mode - CCFG(L2MODE)"
- prop Enum :: "4-way cache (0k),4-way cache (32k),4-way cache (64k),4-way cache (128k),4-way cache (256k)"
- prop JSName :: "C641XCCFGL2MODE"
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 1
- prop TabName :: "641x"
- prop Set :: ($i = self.C641XL2MODEOPTS, self.C641XL2MODEOPTS = $1, $e = self.L2CacheSizeCheck(), if ($e != "ok") {self.C641XL2MODEOPTS = $i} , $e)
- }
- global L2MODE :: = if (GBL.DSPSUBTYPE == 6400) {self.setC641XL2MODE()} else {self.setL2MODE()} {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "L2 Mode - CCFG(L2MODE) Values"
- prop Enum :: "0,1,2,3,7"
- prop Visible :: 0
- prop Writable :: if ((GBL.CHIPTYPE == "6211" || GBL.CHIPTYPE == "6711" || GBL.CHIPTYPE == "6712" || GBL.CHIPTYPE == "6713" || GBL.CHIPTYPE == "DA610") && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- }
- global L2PRIORITY :: 0 {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "L2 Requestor Priority - CCFG(P)"
- prop Enum :: "0,1"
- prop Visible :: 0
- prop Writable :: if ((GBL.CHIPTYPE == "6211" || GBL.CHIPTYPE == "6711" || GBL.CHIPTYPE == "6712" || GBL.CHIPTYPE == "6713" || GBL.CHIPTYPE == "DA610") && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- }
- global L2MARMASK :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Label :: "L2 MAR0-15 - bitmask used to initialize MARs"
- prop JSName :: "C621XMAR"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Visible :: 1
- prop Writable :: if ((GBL.CHIPTYPE == "6211" || GBL.CHIPTYPE == "6711" || GBL.CHIPTYPE == "6712" || GBL.CHIPTYPE == "6713" || GBL.CHIPTYPE == "DA610") && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "621x/671x"
- }
- global SUPPORTCSL :: = self.CHIPTYPE != "other" {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 0
- }
- global ENABLEALLTRC :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Enable All TRC Trace Event Classes"
- prop JSName :: "ENABLEALLTRC"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop Set :: (if ($1) {self.TRCMASKVALUE = 0xDBEF} else {self.TRCMASKVALUE = 0x4000}, self.ENABLEALLTRC = $1, "ok")
- }
- global TRCMASKVALUE :: 56303 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 0
- }
- global CALLCSLCFGINIT :: = self.DISPCALLCSLCFGINIT {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 0
- }
- global CDBPATH :: "" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "CDB search path in COFF file"
- prop JSName :: "CDBRELATIVEPATH"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- }
- global C641XL2PRIORITY :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2MARMASK1 :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Label :: "MAR96-111 - bitmask controls EMIFB CE space"
- prop JSName :: "C641XMAREMIFB"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2MARMASK2 :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Label :: "MAR128-143 - bitmask controls EMIFA CE0 space"
- prop JSName :: "C641XMARCE0"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2MARMASK3 :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Label :: "MAR144-159 - bitmask controls EMIFA CE1 space"
- prop JSName :: "C641XMARCE1"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2MARMASK4 :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Label :: "MAR160-175 - bitmask controls EMIFA CE2 space"
- prop JSName :: "C641XMARCE2"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2MARMASK5 :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Label :: "MAR176-191 - bitmask controls EMIFA CE3 space"
- prop JSName :: "C641XMARCE3"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2REQPRIORITY :: "urgent" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "641x L2 Requestor Priority Queue - CCFG(P)"
- prop JSName :: "C641XCCFGP"
- prop Enum :: "urgent,high,medium,low"
- prop Visible :: 1
- prop Writable :: if ((GBL.DSPSUBTYPE == 6400) && GBL.L2CONFIGURE == 1) {1} else {0}
- prop NoGen :: 1
- 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")
- prop TabName :: "641x"
- }
- global L2CONFIGALLOC :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Configure Priority Queues"
- prop JSName :: "C641XSETL2ALLOC"
- prop Visible :: 1
- prop Writable :: (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1)
- prop NoGen :: 0
- prop TabName :: "641x"
- }
- global L2ALLOC0 :: 6 {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Max L2 Transfer Requests on URGENT Queue (L2ALLOC0)"
- prop JSName :: "C641XL2ALLOC0"
- prop Enum :: "0,1,2,3,4,5,6,7"
- prop Visible :: 1
- prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
- prop NoGen :: 1
- prop TabName :: "641x"
- }
- global L2ALLOC1 :: 2 {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Max L2 Transfer Requests on HIGH Queue (L2ALLOC1)"
- prop JSName :: "C641XL2ALLOC1"
- prop Enum :: "0,1,2,3,4,5,6,7"
- prop Visible :: 1
- prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
- prop NoGen :: 1
- prop TabName :: "641x"
- }
- global L2ALLOC2 :: 2 {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Max L2 Transfer Requests on MEDIUM Queue (L2ALLOC2)"
- prop JSName :: "C641XL2ALLOC2"
- prop Enum :: "0,1,2,3,4,5,6,7"
- prop Visible :: 1
- prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
- prop NoGen :: 1
- prop TabName :: "641x"
- }
- global L2ALLOC3 :: 2 {
- prop Type :: "{A11FE980-C07A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Max L2 Transfer Requests on LOW Queue (L2ALLOC3)"
- prop JSName :: "C641XL2ALLOC3"
- prop Enum :: "0,1,2,3,4,5,6,7"
- prop Visible :: 1
- prop Writable :: if (GBL.DSPSUBTYPE == 6400 && GBL.L2CONFIGURE == 1 && GBL.L2CONFIGALLOC == 1) {1} else {0}
- prop NoGen :: 1
- prop TabName :: "641x"
- }
- global L2ALLOC :: = ((self.L2ALLOC0) | (self.L2ALLOC1 << 4) | (self.L2ALLOC2 << 8) | (self.L2ALLOC3 << 12)) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop NoGen :: 0
- }
- }
- type MEM {
- isa ObjectMgr
- prop Label :: "MEM - Memory Section Manager"
- prop name :: "MEM"
- prop DependsOn :: "SEM"
- prop IsContainedIn :: SYSTEM
- prop GlobalIcon :: 115
- prop InstanceIcon :: 116
- prop GlobalHelpTopic :: (108)
- prop InstanceHelpTopic :: (208)
- prop InstancePropertyPage :: ("{3D658E70-05E7-11d0-BD44-0020AFEE33C8}")
- prop GlobalPropertyPage :: ("{3D658E71-05E7-11d0-BD44-0020AFEE33C8}")
- prop GenLinkPrologue :: (if (GBL.DSPTYPE == 55) {"-stack 0x%1xn-sysstack 0x%2xnnSECTIONS { .sysstack : block(0x20000) fill = 0xfeeb {%12tnGBL_sysstackbeg = .;n*(.sysstack)nGBL_sysstackend = GBL_sysstackbeg + 0x%2x -1 ;%12tn _HWI_SYSSTKTOP = GBL_sysstackbeg; %12tn _HWI_SYSSTKBOTTOM =
- (GBL_sysstackend+1);n%8t} > %3s}%0tnnMEMORY {%4t , _cmd55stksz, _cmd55systksz, _sysstackSeg"} else {"-stack 0x%1xnMEMORY {%4t , _stackSize"})
- prop _stackSize :: MEM.STACKSIZE
- prop AllocType :: (if (self.REUSE == 0 && self.USERCMD == 0) {"19 , _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 , _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 , _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 , _argsString, _argsSeg, _midPlace,
- _sysdataString, _sysdataSeg, _thirdPlace,
- _trcinitString, _trcinitSeg, _midPlace,
- _gblinitString, _gblinitSeg, _midPlace,
- _memObjString, _memObjSeg, _midPlace,
- _sysregsString, _regsSeg, _midPlace,
- _biosString, _biosSeg, _midPlace,
- _stackString, _stackSeg, _midPlace"}}})
- prop _firstPlace :: 0
- prop _secondPlace :: 0 + 1
- prop _thirdPlace :: 0 + 2
- prop _midPlace :: (0x7fffffff / 2)
- prop _sysinitPlace :: (0x7fffffff / 2)
- prop _argsString :: ("%8t .args: fill=0 {%12tn *(.args)n . += 0x%1x;%8tn } , _argsSize")
- prop _bssString :: ("%8t .bss: {}")
- prop _farString :: ("%8t .far: {}")
- prop _cinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.CINITSEG == MEM.LOADCINITSEG) {"%8t .cinit: {}"} else {"%8t .cinit: {} load > %1s, run , _loadcinitSeg"}} else {"%8t .cinit: {}"})
- prop _pinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.PINITSEG == MEM.LOADPINITSEG) {"%8t .pinit: {}"} else {"%8t .pinit: {} load > %1s, run , _loadpinitSeg"}} else {"%8t .pinit: {}"})
- prop _trcinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.TRCINITSEG == MEM.LOADTRCINITSEG) {"%8t .trcdata: {}"} else {"%8t .trcdata: {} load > %1s, run , _loadtrcinitSeg"}} else {"%8t .trcdata: {}"})
- prop _gblinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.BIOSINITSEG == MEM.LOADBIOSINITSEG) {"%8t .gblinit: {}"} else {"%8t .gblinit: {} load > %1s, run , _loadgblinitSeg"}} else {"%8t .gblinit: {}"})
- prop _dataString :: ("%8t .data: {}")
- prop _constString :: (if (self.ENABLELOADSEG == 1) {if (MEM.CONSTSEG == MEM.LOADCONSTSEG) {"%8t .const: {}"} else {if ((62 == 54) || (62 == 28)) {"%8t .const: {} load > %1s PAGE %2s, run , _loadconstSeg, _pg"} else {"%8t .const: {} load > %1s, run , _loadconstSeg"}}} else {"%8t .const: {}"})
- prop _switchString :: (if (self.ENABLELOADSEG == 1) {if (MEM.SWITCHSEG == MEM.LOADSWITCHSEG) {"%8t .switch: {}"} else {"%8t .switch: {} load > %1s, run , _loadswitchSeg"}} else {"%8t .switch: {}"})
- prop _sysmemString :: ("%8t .sysmem: {}")
- prop _cioString :: ("%8t .cio: {}")
- prop _memObjString :: ("%8t .mem: {}")
- prop _sysdataString :: (if ((GBL.ROM == 0) && (GBL.DSPTYPE == 54)) {"%8t .sysdata: align = 128 {%12tn GBL_A_SYSPAGE = .;n GBL_A_SYSDP = GBL_A_SYSPAGE >> 7;n %8t }"} else {"%8t .sysdata: {}"})
- prop _sysinitString :: (if (self.ENABLELOADSEG == 1) {if (MEM.INITSEG == MEM.LOADINITSEG) {"%8t .sysinit: {}"} else {"%8t .sysinit: {} load > %1s, run , _loadinitSeg"}} else {"%8t .sysinit: {}"})
- prop _sysregsString :: ("%8t .sysregs: {}")
- prop _textString :: (if (self.ENABLELOADSEG == 1) {if (MEM.TEXTSEG == MEM.LOADTEXTSEG) {"%8t .text: {}"} else {"%8t .text: {} load > %1s, run , _loadtextSeg"}} else {"%8t .text: {}"})
- prop _frtString :: ("%8t frt: {}")
- prop _biosString :: (if (self.ENABLELOADSEG == 1) {if (MEM.BIOSSEG == MEM.LOADBIOSSEG) {"%8t .bios: {}"} else {"%8t .bios: {} load > %1s, run , _loadbiosSeg"}} else {"%8t .bios: {}"})
- prop _stackString :: (if (GBL.DSPTYPE == 62) {"%8t .stack: fill=0xc0ffee {%12tn GBL_stackbeg = .;n *(.stack)n GBL_stackend = GBL_stackbeg + 0x%1x - 1;%12tn _HWI_STKBOTTOM = GBL_stackbeg + 0x%1x - 4 & ~7;%12tn _HWI_STKTOP = GBL_stackbeg;%8tn } , _stackSize, _stackSize"} else {if (GBL.DSPTYPE == 54) {"%8t .stack: fill=0xbeef {%12tn GBL_stackbeg = .;n *(.stack)n GBL_stackend = ((GBL_stackbeg + 0x%1x - 1) & 0xfffe) ;%8tn _HWI_STKBOTTOM = GBL_stackend;%12tn _HWI_STKTOP = GBL_stackbeg;%8tn } , _stackSize"} else {if (GBL.DSPTYPE == 55) {"%8t .stack: block(0x20000) fill=0xbeef {%12tn GBL_stackbeg = .;n *(.stack)n GBL_stackend = (GBL_stackbeg + 0x%1x - 1) ;%12tn _HWI_STKBOTTOM = (GBL_stackend+1);%12tn _HWI_STKTOP = (GBL_stackbeg);%8tn } , _cmd55stksz"} else {"%8t .stack: fill=0xbeef {%12tn GBL_stackbeg = .;n *(.stack)n GBL_stackend = GBL_stackbeg + 0x%1x - 1;%8tn _HWI_STKBOTTOM = GBL_stackbeg;%12tn _HWI_STKTOP = (GBL_stackend + 1);%8tn } , _stackSize"}}})
- prop _memHdrSize :: 8
- prop GenLinkEpilogue :: ("%0t}")
- prop _stackSeg :: MEM.STACKSEG
- prop _textSeg :: MEM.TEXTSEG
- prop _frtSeg :: MEM.TEXTSEG
- prop _biosSeg :: MEM.BIOSSEG
- prop _dataSeg :: MEM.DATASEG
- prop _cioSeg :: MEM.CIOSEG
- prop _sysmemSeg :: MEM.SYSMEMSEG
- prop _constSeg :: MEM.CONSTSEG
- prop _initSeg :: MEM.INITSEG
- prop _pinitSeg :: MEM.PINITSEG
- prop _trcinitSeg :: MEM.TRCINITSEG
- prop _gblinitSeg :: MEM.BIOSINITSEG
- prop _regsSeg :: MEM.SYSDATASEG
- prop _sysdataSeg :: MEM.SYSDATASEG
- prop _argsSeg :: MEM.ARGSSEG
- prop _argsSize :: MEM.ARGSSIZE
- prop _bssSeg :: MEM.BSSSEG
- prop _farSeg :: MEM.FARSEG
- prop _cinitSeg :: MEM.CINITSEG
- prop _memObjSeg :: MEM.CFGOBJSEG
- prop _switchSeg :: MEM.SWITCHSEG
- prop _loadtextSeg :: MEM.LOADTEXTSEG
- prop _loadbiosSeg :: MEM.LOADBIOSSEG
- prop _loadconstSeg :: MEM.LOADCONSTSEG
- prop _loadinitSeg :: MEM.LOADINITSEG
- prop _loadpinitSeg :: MEM.LOADPINITSEG
- prop _loadtrcinitSeg :: MEM.LOADTRCINITSEG
- prop _loadgblinitSeg :: MEM.LOADBIOSINITSEG
- prop _loadcinitSeg :: MEM.LOADCINITSEG
- prop _loadswitchSeg :: MEM.LOADSWITCHSEG
- prop AllocInst :: (if (self.iAllocHeap == 1) {"1 , _instAllocDesc, _objMemSeg, _placement"} )
- prop _instAllocDesc :: (if self.INITSEG.iAllocHeap && self.REUSE && self.INITSEG == self {"%8t .%0r$heap: {%12tn %0r$B = .;n%12tn _%0r_base = .;n . += 0x%2x;n *(.sysinit)n %0r$L = . + 0x%3x - %0r$B;n _%0r_length = . + 0x%3x - %0r$B;n . += 0x%1x;%8tn } , _heapsize, _sysinitgap, _heaplen"} else {"%8t .%0r$heap: {%12tn %0r$B = .;n _%0r_base = .;n %0r$L = 0x%2x;n _%0r_length = 0x%2x;n . += 0x%1x;%8tn } , _heapsize, _heaplen"})
- prop _objMemSeg :: self
- prop _placement :: 0x7fffffff - 1
- prop _heapsize :: (self.iHeapSize)
- prop _heaplen :: (self.iHeapSize)
- prop _sysinitgap :: 2 * 4
- prop GenInstLink :: (if GBL.DSPTYPE == 62 {"%0r %16t: origin = 0x%1x, %40tlen = 0x%2x%4t , _origin, _len"} else {if GBL.DSPTYPE == 55 {"%0r: %16torigin = 0x%1x, %40tlen = 0x%2x%4t , _cmd55origin, _cmd55len"} else {"PAGE %3d: %14t%0r: %26torigin = 0x%1x, %50tlen = 0x%2x%4t , _origin, _len, _page"}})
- 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)
- prop _page :: (self.page)
- prop _origin :: (self.base)
- prop _len :: (self.len)
- prop maxObjs :: (32767)
- prop codeMember :: (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 {($1.space == "code/data")}}})
- prop dataMember :: (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 {(($1.space == "code/data") && ($1 != MEM_NULL))}}})
- prop dataNullMember :: (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 {$1.space == "code/data"}}})
- prop dataCodeMember :: (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 {$1.space == "code/data" && $1 != MEM_NULL}}})
- prop memWritable :: (self.iIsModifiable && self.iDelUser != "MEM")
- prop validate :: ($e = self.checkMemOverlap($1), if ($e == "ok") {$e = self.checkHeapSize($1)} , $e)
- 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)
- 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 || GBL.DSPTYPE == 55 || $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)
- 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)
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 2 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global CALLBACKOBJ :: nil {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumHeap :: = ($a = 0, scan ($i; MEM) {if ($i != MEM_NULL) {$a += $i.iAllocHeap} }, $a) {
- prop NoGen :: 0
- }
- global REUSE :: = (if self.INITSEG.space != "code" && self.INITSEG.iAllocHeap == 1 {self.SAVEREUSE} else {0}) {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Reuse Startup Code Space"
- prop JSName :: "REUSECODESPACE"
- prop Visible :: 1
- prop Writable :: self.INITSEG.space != "code" && self.INITSEG.iAllocHeap == 1
- prop NoGen :: 1
- prop Set :: (self.SAVEREUSE = $1, "ok")
- }
- global SAVEREUSE :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 1
- }
- global doCheckOverlap :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global MAPSELECT :: "Map 1" {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Map Mode"
- prop JSName :: "MAPMODE"
- prop Enum :: "Map 0,Map 1"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global ARGSSIZE :: 4 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Label :: "Argument Buffer Size"
- prop JSName :: "ARGSSIZE"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop Set :: (if ($1 < 4) {self.error("The 'arguments' section must have at least 4 words.")} else {self.ARGSSIZE = $1, "ok"})
- }
- global ARGSSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataMember($1)
- prop Label :: "Argument Buffer Section (.args)"
- prop JSName :: "ARGSSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Data"
- }
- global BIOSSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.codeMember($1)
- prop Label :: "BIOS Code Section (.bios)"
- prop JSName :: "BIOSSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Code"
- }
- global STACKSIZE :: 4096 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: "0x%04x"
- prop Style :: 0x01 | 0x02
- prop Label :: "Stack Size (MAUs)"
- prop JSName :: "STACKSIZE"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop Set :: (self.STACKSIZE = $1, "ok")
- 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"}
- }
- global USERCMD :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "User .cmd File For Non-DSP/BIOS Sections"
- prop JSName :: "USERCOMMANDFILE"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global STACKSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataMember($1)
- prop Label :: "Stack Section (.stack)"
- prop JSName :: "STACKSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Data"
- prop Set :: (if (GBL.DSPTYPE == 55) {(MEM.STACKSEG = $1), (MEM.SYSSTACKSEG = $1)} else {(MEM.STACKSEG = $1)}, "ok")
- }
- global ENABLELOADSEG :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Specify Separate Load Addresses"
- prop JSName :: "ENABLELOADADDR"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global LOADBIOSSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.codeMember($1)
- prop Label :: "Load Address - BIOS Code Section (.bios)"
- prop JSName :: "LOADBIOSSEG"
- prop Visible :: 1
- prop Writable :: (self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global INITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.codeMember($1)
- prop Label :: "Startup Code Section (.sysinit)"
- prop JSName :: "SYSINITSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Code"
- }
- global LOADINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.codeMember($1)
- prop Label :: "Load Address - Startup Code Section (.sysinit)"
- prop JSName :: "LOADSYSINITSEG"
- prop Visible :: 1
- prop Writable :: (self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global BIOSINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataCodeMember($1)
- prop Label :: "DSP/BIOS Init Tables (.gblinit)"
- prop JSName :: "GBLINITSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Data"
- }
- global TRCINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataCodeMember($1)
- prop Label :: "TRC Initial Value (.trcdata)"
- prop JSName :: "TRCDATASEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Data"
- }
- global LOADBIOSINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataCodeMember($1)
- prop Label :: "Load Address - DSP/BIOS Init Tables (.gblinit)"
- prop JSName :: "LOADGBLINITSEG"
- prop Visible :: 1
- prop Writable :: (self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global LOADTRCINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataCodeMember($1)
- prop Label :: "Load Address - TRC Initial Value (.trcdata)"
- prop JSName :: "LOADTRCDATASEG"
- prop Visible :: 1
- prop Writable :: (self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global SYSDATASEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataMember($1)
- prop Label :: "DSP/BIOS Kernel State (.sysdata)"
- prop JSName :: "SYSDATASEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Data"
- }
- global CFGOBJSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: self.dataMember($1)
- prop Label :: "DSP/BIOS Conf Sections (.*obj)"
- prop JSName :: "OBJSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Data"
- }
- global NOHEAPS :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "No Dynamic Memory Heaps"
- prop JSName :: "NOMEMORYHEAPS"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- 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")
- prop PropSetOkUserMsg :: if (MEM.NOHEAPS == 1) {"Currently specified heaps no longer valid"} else {"Please reconfigure heaps under individual mem segments"}
- }
- global SEGZERO :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataNullMember($1) && $1.iAllocHeap)
- prop Label :: "Segment For DSP/BIOS Objects"
- prop JSName :: "BIOSOBJSEG"
- prop Visible :: 1
- prop Writable :: MEM.NOHEAPS == 0
- prop NoGen :: 0
- prop Set :: (if (self.SEGZERO.iReqHeapCount > 0) {self.SEGZERO.iReqHeapCount--} , self.SEGZERO = $1, self.SEGZERO.iReqHeapCount++, "ok")
- }
- global MALLOCSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataNullMember($1) && $1.iAllocHeap)
- prop Label :: "Segment For malloc() / free()"
- prop JSName :: "MALLOCSEG"
- prop Visible :: 1
- prop Writable :: (MEM.NOHEAPS == 0)
- prop NoGen :: 0
- prop Set :: (if (self.MALLOCSEG.iReqHeapCount > 0) {self.MALLOCSEG.iReqHeapCount--} , self.MALLOCSEG = $1, self.MALLOCSEG.iReqHeapCount++, "ok")
- }
- global LNKCMDFILE :: "" {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Specify User Linker cmd File"
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- global TEXTSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.codeMember($1))
- prop Label :: "Text Section (.text)"
- prop JSName :: "TEXTSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global LOADTEXTSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.codeMember($1))
- prop Label :: "Load Address - Text Section (.text)"
- prop JSName :: "LOADTEXTSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global SWITCHSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataCodeMember($1))
- prop Label :: "Switch Jump Tables (.switch)"
- prop JSName :: "SWITCHSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global LOADSWITCHSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataCodeMember($1))
- prop Label :: "Load Address - Switch Jump Tables (.switch)"
- prop JSName :: "LOADSWITCHSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global BSSSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "C Variables Section (.bss)"
- prop JSName :: "BSSSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global FARSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "C Variables Section (.far)"
- prop JSName :: "FARSEG"
- prop Visible :: if GBL.DSPTYPE == 62 {1} else {0}
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global CINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataCodeMember($1))
- prop Label :: "Data Initialization Section (.cinit)"
- prop JSName :: "CINITSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global LOADCINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataCodeMember($1))
- prop Label :: "Load Address - Data Initialization Section (.cinit)"
- prop JSName :: "LOADCINITSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global PINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataCodeMember($1))
- prop Label :: "C Function Initialization Table (.pinit)"
- prop JSName :: "PINITSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global LOADPINITSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataCodeMember($1))
- prop Label :: "Load Address - C Function Initialization Table (.pinit)"
- prop JSName :: "LOADPINITSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global CONSTSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "Constant Section (.const)"
- prop JSName :: "CONSTSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global LOADCONSTSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "Load Address - Constant Section (.const)"
- prop JSName :: "LOADCONSTSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0 && self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global DATASEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "Data Section (.data)"
- prop JSName :: "DATASEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global CIOSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "Data Section (.cio)"
- prop JSName :: "CIOSEG"
- prop Visible :: 1
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global SYSMEMSEG :: = self.CIOSEG {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: (self.dataMember($1))
- prop Label :: "Data Section (.sysmem)"
- prop JSName :: "SYSMEMSEG"
- prop Visible :: 0
- prop Writable :: (self.USERCMD == 0)
- prop NoGen :: 1
- prop TabName :: "Compiler Sections"
- }
- global STUBMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.codeMember($1)
- prop Label :: "Function Stub Memory (.hwi)"
- prop JSName :: "HWISEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Code"
- prop Set :: (self.STUBMEMSEG = $1, HWI.STUBMEMSEG = $1, "ok")
- }
- global LOADSTUBMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.codeMember($1)
- prop Label :: "Load Address - Function Stub Memory (.hwi)"
- prop JSName :: "LOADHWISEG"
- prop Visible :: 1
- prop Writable :: (self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global VECMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.codeMember($1)
- prop Label :: "Interrupt Service Table Memory (.hwi_vec)"
- prop JSName :: "HWIVECSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- prop TabName :: "BIOS Code"
- prop Set :: (self.VECMEMSEG = $1, HWI.VECMEMSEG = $1, GlobalStatus.gDirty = 1, if ($1.base == 0) {HWI.GENERATE_RESET_VEC = 0} , "ok")
- }
- global LOADVECMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.codeMember($1)
- prop Label :: "Load Address -Interrupt Service Table Memory (.hwi_vec)"
- prop JSName :: "LOADHWIVECSEG"
- prop Visible :: 1
- prop Writable :: (self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- global RTDXTEXTMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.codeMember($1)
- prop Label :: "RTDX Text Segment (.rtdx_text)"
- prop JSName :: "RTDXTEXTSEG"
- prop Visible :: 1
- prop Writable :: RTDX.USERTDX
- prop NoGen :: 1
- prop TabName :: "BIOS Code"
- prop Set :: (self.RTDXTEXTMEMSEG = $1, RTDX.TEXTMEMSEG = $1, "ok")
- }
- global LOADRTDXTEXTMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.codeMember($1)
- prop Label :: "Load Address - RTDX Text Segment (.rtdx_text)"
- prop JSName :: "LOADRTDXTEXTSEG"
- prop Visible :: 1
- prop Writable :: (RTDX.USERTDX && self.ENABLELOADSEG == 1)
- prop NoGen :: 1
- prop TabName :: "Load Address"
- }
- inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "comment"
- prop JSName :: "comment"
- prop Visible :: 1
- prop Writable :: if self.iDelUser == "USER" {1} else {0}
- prop NoGen :: 1
- }
- inst iIsUsed :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iId :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Style :: 0x01
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst iDelUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iDelMsg :: "ok" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst base :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%06x"}
- prop Style :: 0x02
- prop Label :: "base"
- prop JSName :: "base"
- prop Visible :: 1
- prop Writable :: (self.iIsModifiable)
- prop NoGen :: 1
- prop Set :: (self.base = $1, "ok")
- }
- inst len :: 0 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%04x"}
- prop Style :: 0x08
- prop Label :: "len"
- prop JSName :: "len"
- prop Visible :: 1
- prop Writable :: (self.memWritable)
- prop NoGen :: 0
- prop Set :: (self.len = $1, "ok")
- }
- inst page :: = (if GBL.DSPTYPE == 62 {-1} else {if GBL.DSPTYPE == 55 {-1} else {if self.space == "code" {0} else {if self.space == "data" {1} else {if self.space == "io" {2} else {3}}}}}) {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 1
- }
- inst iAllocHeap :: if MEM.NOHEAPS == 1 {0} else {1} {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "create a heap in this memory"
- prop JSName :: "createHeap"
- prop Visible :: 1
- prop Writable :: (self.space == "data" || self.space == "code/data") && (MEM.NOHEAPS == 0) && self.iIsModifiable
- prop NoGen :: 0
- 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})
- }
- inst iHeapSize :: 0x8000 {
- prop Type :: "{3EE4CB80-E273-11d0-BB8F-0000C008F2E9}"
- prop Format :: if GBL.DSPTYPE == 62 {"0x%08x"} else {"0x%04x"}
- prop Style :: 0x02
- prop Label :: "heap size"
- prop JSName :: "heapSize"
- prop Visible :: 1
- prop Writable :: (self.iAllocHeap) && (self.iIsModifiable) && (MEM.NOHEAPS == 0)
- prop Set :: (self.iHeapSize = $1, "ok")
- prop NoGen :: 1
- }
- inst iSegZero :: = MEM.SEGZERO
- inst iUserHeapId :: 0 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "enter a user defined heap identifier label"
- prop JSName :: "enableHeapLabel"
- prop Set :: (if ($1 == 0) {self.iHeapId = @segment_name} , self.iUserHeapId = $1, "ok")
- prop Visible :: 1
- prop Writable :: (self.iAllocHeap) && (self.iIsModifiable) && (self.NOHEAPS == 0)
- prop NoGen :: 1
- }
- inst iHeapId :: @segment_name {
- prop Type :: "{7C434D00-1629-11d0-9BFE-0000C0AC14C7}"
- prop Label :: "heap identifier label"
- prop JSName :: "heapLabel"
- prop Set :: ($e = self.checkHeapId($1), if ($e == "ok") {self.iHeapId = $1} , $e)
- prop Writable :: (self.iAllocHeap) && (self.iIsModifiable) && (self.NOHEAPS == 0) && (self.iUserHeapId)
- prop Visible :: 1
- prop NoGen :: 0
- }
- inst iReqHeapCount :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop NoGen :: 1
- }
- inst space :: (if GBL.DSPTYPE == 55 {"code/data"} else {"data"}) {
- prop Type :: "{21455EA1-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Enum :: if GBL.DSPTYPE == 62 {"code,data,code/data"} else {if GBL.DSPTYPE == 54 {"code,data,io,other"} else {if GBL.DSPTYPE == 28 {"code,data,io,other"} else {"code/data,io"}}}
- prop JSName :: "space"
- prop Visible :: 1
- prop Writable :: (self.memWritable)
- prop NoGen :: 1
- 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 {self.space = $1}, $e)
- }
- inst iIsModifiable :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- object MEM_NULL :: MEM {
- param iComment :: "Place holder segment which allows user to disable heaps"
- param iIsUsed :: 0
- param iId :: 0
- param iDelUser :: "USER"
- param iDelMsg :: "ok"
- param base :: 0
- param len :: 0
- param iAllocHeap :: 1
- param iHeapSize :: 32768
- param iUserHeapId :: 0
- param iHeapId :: @segment_name
- param iReqHeapCount :: 0
- param space :: "data"
- param iIsModifiable :: 1
- }
- type OBJ {
- isa ObjectMgr
- prop name :: "OBJ"
- prop Visible :: 0
- prop AllocType :: (if (self.gNumOf > 0) {"1 , _objMemDesc, _memSeg, _placement"} )
- prop _objMemDesc :: ("%8t .obj: {}")
- prop _memSeg :: MEM.CFGOBJSEG
- prop _placement :: (0x7fffffff / 2)
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "comment"
- prop JSName :: "comment"
- prop Visible :: 1
- prop Writable :: if self.iDelUser == "USER" {1} else {0}
- prop NoGen :: 1
- }
- inst iIsUsed :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iId :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Style :: 0x01
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst iDelUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iDelMsg :: "ok" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- }
- type BUF {
- isa ObjectMgr
- prop name :: "BUF"
- prop Label :: "BUF - Buffer pool Manager"
- prop IsContainedIn :: SYSTEM
- prop GlobalIcon :: 199
- prop InstanceIcon :: 200
- prop InstanceHelpTopic :: (421)
- prop GlobalHelpTopic :: (321)
- prop InstancePropertyPage :: ("{B7240DE8-AA51-11cf-9BFE-0000C0AC14C7}")
- prop GlobalPropertyPage :: ("{B7240DE9-AA51-11cf-9BFE-0000C0AC14C7}")
- prop maxObjs :: (32767)
- prop AllocType :: (if (self.gNumOf > 0) {"1 , _globalAllocDesc, _memSeg, _placement"} )
- prop _globalAllocDesc :: ("%8t.buf:{}")
- prop _placement :: (0x7fffffff / 2)
- prop _memSeg :: self.OBJMEMSEG
- prop AllocInst :: ("1 , _instAllocDesc, _instMemSeg, _placement")
- prop _instAllocDesc :: ("%8t .%0s$data: align = 0x%1x {%12tn %0s$databeg = .;n .+= %2d; %8tn } , _objAlign, _buflength")
- prop _objAlign :: self.align
- prop _instMemSeg :: self.bufseg
- prop _buflength :: (self.postalignsize * self.bufcount)
- prop cGen :: 1
- prop cHeaderName :: if self.gNumOf > 0 {"buf.h"} else {""}
- prop cGenHInst :: (if (GBL.DSPTYPE == 62) {"extern far BUF_Obj %0r;n "} else {"extern BUF_Obj %0r;n "})
- prop dataSize :: ($d = 0, scan ($i; BUF) {if ($i.IsConfObj()) {$d += $i.len} , $d += 7 * 4}, $d)
- global gUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gSetOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gNumOf :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gDirty :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global gInitFlag :: 1 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- 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) {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- global OBJMEMSEG :: SDRAM {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.dataMember($1)
- prop Label :: "Object Memory"
- prop JSName :: "OBJMEMSEG"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 1
- }
- global ENABLED :: 1 {
- prop Type :: "{21455EA0-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Compile in logging"
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 0
- }
- inst iComment :: if self.iDelUser == "USER" {"<add comments here>"} else {self.iDelMsg} {
- prop Type :: "{21455EA3-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "comment"
- prop JSName :: "comment"
- prop Visible :: 1
- prop Writable :: if self.iDelUser == "USER" {1} else {0}
- prop NoGen :: 1
- }
- inst iIsUsed :: 0 {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iId :: 0 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Style :: 0x01
- prop Visible :: 0
- prop Writable :: 1
- prop NoGen :: 1
- }
- inst iDelUser :: "USER" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst iDelMsg :: "ok" {
- prop Visible :: 0
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst bufseg :: self.OBJMEMSEG {
- prop Type :: "{7BA2DA00-5A53-11d0-9BFE-0000C0AC14C7}"
- prop MemberType :: MEM
- prop MemberTest :: MEM.dataMember($1)
- prop Label :: "Memory segment for buffer pool"
- prop JSName :: "bufSeg"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 0
- }
- inst bufcount :: 1 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Buffer count"
- prop JSName :: "bufCount"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 0
- prop Set :: (self.bufcount = $1, self.postalignsize = (self.size + (self.align - 1)) & ~(self.align - 1), self.len = $1 * self.postalignsize, "ok")
- }
- inst size :: 8 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Buffer size (MADUs)"
- prop JSName :: "size"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 0
- 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"})
- }
- inst align :: 4 {
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Label :: "Buffer alignment(Power of 2)"
- prop JSName :: "align"
- prop Visible :: 1
- prop Writable :: 1
- prop NoGen :: 0
- 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"})
- }
- inst len :: self.size {
- prop Label :: "Buffer pool length (MADUs)"
- prop JSName :: "len"
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 1
- prop Writable :: 0
- prop NoGen :: 1
- }
- inst postalignsize :: self.size {
- prop Label :: "Buffer size after alignment (MADUs)"
- prop JSName :: "postalignsize"
- prop Type :: "{21455EA2-B96A-11cf-9BFE-0000C0AC14C7}"
- prop Visible :: 1
- prop Writable :: 0
- prop NoGen :: 0
- }
- }
- type CLK {
- isa ObjectMgr
- prop name :: "CLK"
- prop Label :: "CLK - Clock Manager"
- prop IsContainedIn :: SCH
- prop IsConfMod :: 1
- prop GlobalIcon :: 103
- prop InstanceIcon :: 104
- prop InstanceHelpTopic :: (202)
- prop GlobalHelpTopic :: (102)
- prop InstancePropertyPage :: ("{EEB2AB41-51E3-11d0-A61D-0000C070F3E9}")
- prop GlobalPropertyPage :: ("{EEB2AB40-51E3-11d0-A61D-0000C070F3E9}")
- prop GenLinkPrologue :: ("SECTIONS {%4tn.%1L: {n%8t _CLK_start = %6s;n CLK_F_gethtime = %5s;n %1U_A_TABBEG = .;n %4Sn %1U_A_TABEND = .;n %1U_A_TABLEN = (. - %1U_A_TABBEG) / %2d;n%4t} > %3s