timer.xml

Fri, 13 Aug 2010 10:49:23 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Fri, 13 Aug 2010 10:49:23 +0100
changeset 0
396b0bd970d3
child 1
85c1144140c3
permissions
-rw-r--r--

Initial import, Timer v3.0

philpem@0 1 <?xml version="1.0" encoding="UTF-8"?>
philpem@0 2 <Component Name="timer" Text="Timer" Hide="false" Type="IO" Ver="3.0" Help="timer\document\timer.htm">
philpem@0 3 <MasterSlavePorts>
philpem@0 4 <SlavePort Prefix="S" Name="S Port" Type="DATA"/>
philpem@0 5 </MasterSlavePorts>
philpem@0 6 <ClockPort Name="CLK_I " Description="Clock one"/>
philpem@0 7 <ResetPort Name="RST_I " Description="Reset"/>
philpem@0 8 <Interrupt Name="S_INT_O" Active="high" IRQ=""/>
philpem@0 9 <Defines>
philpem@0 10 <Define Name="TIMER_DEFINED" Value="1" />
philpem@0 11 <Define Name="TIMER_BASE_ADDRESS" Type="base_address" Value="0x0000000"/>
philpem@0 12 </Defines>
philpem@0 13 <DeviceDriver InitRoutine="MicoTimerInit" StructName="MicoTimerCtx_t">
philpem@0 14 <DDInclude Include="LookupServices.h"/>
philpem@0 15 <DDstruct>
philpem@0 16 <DDSElem MemberName = "name" MemberType = "const char*" Type="Parm" Value="InstanceName" Format = "string"/>
philpem@0 17 <DDSElem MemberName = "base" MemberType = "unsigned int" Type="Parm" Value="BASE_ADDRESS" />
philpem@0 18 <DDSElem MemberName = "lookupReg" MemberType = "DeviceReg_t" Type="uninitialized" Value=""/>
philpem@0 19 <DDSElem MemberName = "intrLevel" MemberType = "unsigned int" Type="Interrupt" Value="IRQ_LEVEL" />
philpem@0 20 <DDSElem MemberName = "userCtx" MemberType = "void *" Type="uninitialized" Value = "" />
philpem@0 21 <DDSElem MemberName = "callback" MemberType = "void *" Type="uninitialized" Value = "" />
philpem@0 22 <DDSElem MemberName = "prev" MemberType = "void *" Type="uninitialized" Value = "" />
philpem@0 23 <DDSElem MemberName = "next" MemberType = "void *" Type="uninitialized" Value = "" />
philpem@0 24 </DDstruct>
philpem@0 25 </DeviceDriver>
philpem@0 26 <Files>
philpem@0 27 <File Name="../components/timer/rtl/verilog/timer.v" />
philpem@0 28 </Files>
philpem@0 29 <Parms>
philpem@0 30 <Parm Name="InstanceName" Value="timer" Type="string" isiname="true" Text="Instance Name"/>
philpem@0 31 <Parm Name="BASE_ADDRESS" Value="0x80000000" Type="Integer" isba="true" Text="Base Address"/>
philpem@0 32 <Parm Name="SIZE" Value="128" Type="Integer" issize="true" Text="Size" Enable="false"/>
philpem@0 33 <Parm Name="ADDRESS_LOCK" Type="Define" Value="undef" Text="Lock Address"/>
philpem@0 34 <Parm Name="DISABLE" Type="Define" Value="undef" isuse="true" Text="Disable Component"/>
philpem@0 35 <Parm Name="PERIOD_NUM" Type="Integer" Value="20" Text="Default Reload Ticks" isparm="true"/>
philpem@0 36 <Parm Name="PERIOD_WIDTH" Type="Integer" Value="32" ValueRange="1-32" Text="Counter Width" isparm="true"/>
philpem@0 37 <Parm Name="WRITEABLE_PERIOD" Type="define" Value="def" Text="Writeable Tick Count" isparm="true"/>
philpem@0 38 <Parm Name="READABLE_SNAPSHOT" Type="define" Value="def" Text="Readable Tick Count" isparm="true"/>
philpem@0 39 <Parm Name="START_STOP_CONTROL" Type="define" Value="def" Text="Start Stop Control" isparm="true"/>
philpem@0 40 <Parm Name="WATCHDOG" Type="define" Value="undef" Text="WATCHDOG" Hide="true" isparm="true"/>
philpem@0 41 </Parms>
philpem@0 42 <GUIS Columns="2" Help="component_help\lm32.htm" Name="timer">
philpem@0 43 <GUI Widget="Text" Span="1" Name="InstanceName" Width="40"/>
philpem@0 44 <GUI Widget="Text" Span="1" Name="BASE_ADDRESS"/>
philpem@0 45
philpem@0 46 <GUI Widget="Group" Span="1" Name="OPTIONS" Text="Options" Columns="1"/>
philpem@0 47 <GUI Widget="Check" Span="1" Name="WRITEABLE_PERIOD"/>
philpem@0 48 <GUI Widget="Check" Span="1" Name="READABLE_SNAPSHOT"/>
philpem@0 49 <GUI Widget="Check" Span="1" Name="START_STOP_CONTROL"/>
philpem@0 50
philpem@0 51 <GUI Widget="Group" Span="1" Name="SETTINGS" Text="Settings" Columns="2"/>
philpem@0 52 <GUI Widget="Text" Span="1" Name="PERIOD_NUM"/>
philpem@0 53 <GUI Widget="Spinner" Span="1" Name="PERIOD_WIDTH"/>
philpem@0 54 </GUIS>
philpem@0 55 </Component>