timer.xml

changeset 0
396b0bd970d3
child 1
85c1144140c3
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/timer.xml	Fri Aug 13 10:49:23 2010 +0100
     1.3 @@ -0,0 +1,55 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<Component Name="timer" Text="Timer" Hide="false" Type="IO" Ver="3.0" Help="timer\document\timer.htm">
     1.6 +	<MasterSlavePorts>
     1.7 +		<SlavePort Prefix="S" Name="S Port" Type="DATA"/>
     1.8 +	</MasterSlavePorts>
     1.9 +        <ClockPort Name="CLK_I " Description="Clock     one"/>
    1.10 +        <ResetPort Name="RST_I " Description="Reset"/>
    1.11 +	<Interrupt Name="S_INT_O" Active="high" IRQ=""/>
    1.12 +	<Defines>
    1.13 +        	<Define Name="TIMER_DEFINED" Value="1" />
    1.14 +                <Define Name="TIMER_BASE_ADDRESS" Type="base_address" Value="0x0000000"/>
    1.15 +        </Defines>
    1.16 +	<DeviceDriver InitRoutine="MicoTimerInit" StructName="MicoTimerCtx_t">
    1.17 +                <DDInclude Include="LookupServices.h"/>
    1.18 +                <DDstruct>
    1.19 +                        <DDSElem MemberName = "name" MemberType = "const char*" Type="Parm" Value="InstanceName" Format = "string"/>
    1.20 +			<DDSElem MemberName = "base" MemberType = "unsigned int" Type="Parm" Value="BASE_ADDRESS" />
    1.21 +                        <DDSElem MemberName = "lookupReg" MemberType = "DeviceReg_t" Type="uninitialized" Value=""/>			
    1.22 +                        <DDSElem MemberName = "intrLevel" MemberType = "unsigned int" Type="Interrupt" Value="IRQ_LEVEL" />
    1.23 +                        <DDSElem MemberName = "userCtx" MemberType = "void *" Type="uninitialized" Value = "" />
    1.24 +                        <DDSElem MemberName = "callback" MemberType = "void *" Type="uninitialized" Value = "" />
    1.25 +                        <DDSElem MemberName = "prev" MemberType = "void *" Type="uninitialized" Value = "" />
    1.26 +                        <DDSElem MemberName = "next" MemberType = "void *" Type="uninitialized"	Value = "" />
    1.27 +		</DDstruct>
    1.28 +		</DeviceDriver>
    1.29 +      <Files>
    1.30 +	    <File Name="../components/timer/rtl/verilog/timer.v" />
    1.31 +      </Files>
    1.32 +	<Parms>
    1.33 +		<Parm Name="InstanceName"    Value="timer"     Type="string" isiname="true" Text="Instance Name"/>
    1.34 +		<Parm Name="BASE_ADDRESS"    Value="0x80000000" Type="Integer" isba="true" Text="Base Address"/>
    1.35 +		<Parm Name="SIZE"            Value="128"         Type="Integer" issize="true" Text="Size" Enable="false"/>
    1.36 +            <Parm Name="ADDRESS_LOCK" Type="Define" Value="undef" Text="Lock Address"/>
    1.37 +		<Parm Name="DISABLE" Type="Define" Value="undef" isuse="true" Text="Disable Component"/>
    1.38 +		<Parm Name="PERIOD_NUM" Type="Integer" Value="20" Text="Default Reload Ticks" isparm="true"/>
    1.39 +		<Parm Name="PERIOD_WIDTH" Type="Integer" Value="32" ValueRange="1-32" Text="Counter Width" isparm="true"/>
    1.40 +		<Parm Name="WRITEABLE_PERIOD" Type="define" Value="def" Text="Writeable Tick Count" isparm="true"/>
    1.41 +		<Parm Name="READABLE_SNAPSHOT" Type="define" Value="def" Text="Readable Tick Count" isparm="true"/>
    1.42 +		<Parm Name="START_STOP_CONTROL" Type="define" Value="def" Text="Start Stop Control" isparm="true"/>
    1.43 +		<Parm Name="WATCHDOG" Type="define" Value="undef" Text="WATCHDOG" Hide="true" isparm="true"/>
    1.44 +	</Parms>
    1.45 +      <GUIS Columns="2" Help="component_help\lm32.htm" Name="timer">
    1.46 +            <GUI Widget="Text" Span="1" Name="InstanceName" Width="40"/>
    1.47 +            <GUI Widget="Text" Span="1" Name="BASE_ADDRESS"/>
    1.48 +
    1.49 +            <GUI Widget="Group" Span="1" Name="OPTIONS" Text="Options" Columns="1"/>
    1.50 +            <GUI Widget="Check" Span="1" Name="WRITEABLE_PERIOD"/>
    1.51 +            <GUI Widget="Check" Span="1" Name="READABLE_SNAPSHOT"/>
    1.52 +            <GUI Widget="Check" Span="1" Name="START_STOP_CONTROL"/>
    1.53 +
    1.54 +            <GUI Widget="Group" Span="1" Name="SETTINGS" Text="Settings" Columns="2"/>
    1.55 +            <GUI Widget="Text" Span="1" Name="PERIOD_NUM"/>
    1.56 +            <GUI Widget="Spinner" Span="1" Name="PERIOD_WIDTH"/>
    1.57 +      </GUIS>
    1.58 +</Component>