timer.xml

Sat, 06 Aug 2011 01:40:34 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Sat, 06 Aug 2011 01:40:34 +0100
changeset 1
85c1144140c3
parent 0
396b0bd970d3
permissions
-rw-r--r--

Update comments per latest Lattice code dump (LM32 v3.8)

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