processors-arm.aadl 9.25 KB
Newer Older
Jerome Legrand's avatar
Jerome Legrand committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
-- This package defines some processors from the ARM family

package Processors::ARM
public
  with Data_Sheet;
  with Deployment;
  with Electricity_Properties;
  with Processor_Properties;

  with Buses::Misc;
  with Buses::Ethernet;
  with Buses::I2C;
  with Buses::UART;
  with Buses::USB;

  -----------------
  -- Generic_ARM --
  -----------------

  processor Generic_ARM
  properties
    Processor_Properties::Processor_Family => ARM;
    Processor_Properties::Endianess        => Little_Endian;
    Processor_Properties::Word_Length      => 32 bits;
  end Generic_ARM;

  -------------------
  -- Xscale_PXA270 --
  -------------------

  --  The PXA270 is based on the ARMv5TE ISA without the floating
  --  point instructions

  processor Xscale_PXA270 extends Generic_ARM
  properties
    Processor_Properties::FPU_Present => False;
    Data_Sheet::UUID =>
       "http://www.marvell.com/products/processors/applications/pxa_family/";
  end Xscale_PXA270;

  --------------
  -- ARM7TDMI --
  --------------

  processor ARM7TDMI extends Generic_ARM
  end ARM7TDMI;

  ----------------
  -- AT91SAM7A3 --
  ----------------

  -- The AT91SAM7A3 is a Flash microcontroller based on the 32-bit
  -- ARM7TDMI RISC processor optimized for embedded control. It
  -- features 256K bytes of Flash and 32K bytes of SRAM.

  processor AT91SAM7A3 extends ARM7TDMI
  features
    Supply : requires bus access Buses::Misc::V3v3_bus.impl;
  end AT91SAM7A3;

  processor implementation AT91SAM7A3.impl
  properties
    Data_Sheet::UUID =>
    "http://www.atmel.com:80/dyn/products/product_card.asp?part_id=3578";

    Deployment::Execution_Platform => Native;
    Scheduling_Protocol => (POSIX_1003_HIGHEST_PRIORITY_FIRST_PROTOCOL);

    Electricity_Properties::Idle_Current => 40.0 mA; -- estimation
    Electricity_Properties::Run_Current => 40.0 mA; -- estimation -> should be 70 mA (datasheet)
    Electricity_Properties::Core_Voltage => 5.0 V; -- range 3 .. 3.6 V;
  end AT91SAM7A3.impl;

  --  XXX Note, the following devices should be subcomponents of AT91SAM7A3
  --  TWI    --
  device TWI_Peripheral
  features
    Serial_Wire :    requires bus access Buses::I2C::I2C.impl;
  end TWI_Peripheral;

  device implementation TWI_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 2.0 V;
    Electricity_Properties::VIL_max => 1.0 V;
    Electricity_Properties::VOH_min => 3.2 V;
    Electricity_Properties::VOL_max => 0.4 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end TWI_Peripheral.impl;

  --  USART0   --
  device USART0_Peripheral
  features
    Serial_Wire :    requires bus access buses::UART::UART.impl;
  end USART0_Peripheral;

  device implementation USART0_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 1.2 V;
    Electricity_Properties::VIL_max => 0.5 V;
    Electricity_Properties::VOH_min => 1.7 V;
    Electricity_Properties::VOL_max => 0.1 V;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
    Electricity_Properties::Device_Type => Slave;
  end USART0_Peripheral.impl;

  device TIMER_Peripheral
  features
    Serial_Wire :    requires bus access Buses::Misc::TIMER_bus.impl;
  end TIMER_Peripheral;

  device implementation TIMER_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 2.0 V;
    Electricity_Properties::VIL_max => 1.0 V;
    Electricity_Properties::VOH_min => 3.2 V;
    Electricity_Properties::VOL_max => 0.4 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end TIMER_Peripheral.impl;

  device PWM_Peripheral
  features
    Serial_Wire :    requires bus access buses::Misc::PWM_bus.impl;
  end PWM_Peripheral;

  device implementation PWM_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 2.0 V;
    Electricity_Properties::VIL_max => 1.0 V;
    Electricity_Properties::VOH_min => 3.2 V;
    Electricity_Properties::VOL_max => 0.4 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end PWM_Peripheral.impl;

  device USART1_Peripheral
  features
    Serial_Wire :    requires bus access buses::UART::UART.impl;
  end USART1_Peripheral;
  device implementation USART1_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 1.2 V;
    Electricity_Properties::VIL_max => 0.5 V;
    Electricity_Properties::VOH_min => 1.7 V;
    Electricity_Properties::VOL_max => 0.1 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current => 0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end USART1_Peripheral.impl;

  device USART2_Peripheral
  features
    Serial_Wire :    requires bus access buses::UART::UART.impl;
  end USART2_Peripheral;
  device implementation USART2_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 1.2 V;
    Electricity_Properties::VIL_max => 0.5 V;
    Electricity_Properties::VOH_min => 2.0 V;
    Electricity_Properties::VOL_max => 0.1 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end USART2_Peripheral.impl;

  device USB1_Peripheral
  features
    Serial_Wire :    requires bus access buses::USB::USB.impl;
  end USB1_Peripheral;
  device implementation USB1_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 2.0 V;
    Electricity_Properties::VIL_max => 1.0 V;
    Electricity_Properties::VOH_min => 3.2 V;
    Electricity_Properties::VOL_max => 0.4 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end USB1_Peripheral.impl;

  device USB2_Peripheral
  features
    Serial_Wire :    requires bus access buses::USB::USB.impl;
  end USB2_Peripheral;
  device implementation USB2_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 2.0 V;
    Electricity_Properties::VIL_max => 1.0 V;
    Electricity_Properties::VOH_min => 3.2 V;
    Electricity_Properties::VOL_max => 0.4 V;
    Electricity_Properties::Device_Type => Master;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end USB2_Peripheral.impl;

  device ETHERNET_Peripheral
  features
    Serial_Wire :    requires bus access buses::Ethernet::Ethernet.impl;
  end ETHERNET_Peripheral;
  device implementation ETHERNET_Peripheral.impl
  properties
    Electricity_Properties::VIH_min => 2.0 V;
    Electricity_Properties::VIL_max => 1.0 V;
    Electricity_Properties::VOH_min => 3.2 V;
    Electricity_Properties::VOL_max => 0.4 V;
    Electricity_Properties::Device_Type => Slave;
    Electricity_Properties::Run_Current =>  0.0 A;
    Electricity_Properties::Idle_Current =>  0.0 A;
    Electricity_Properties::Peak_Current => 0.0 A;
    Electricity_Properties::Core_Voltage => 0.0 V;
    Electricity_Properties::Acquisition_Time => 0 sec;
    Electricity_Properties::Peak_Time => 0 sec;
  end ETHERNET_Peripheral.impl;

  -----------------
  -- AT91SAM9G20 --
  -----------------

  processor AT91SAM9G20
  features
    Supply : requires bus access buses::Misc::V5_bus.impl;
  end AT91SAM9G20;

  processor implementation AT91SAM9G20.impl
  properties
    Data_Sheet::UUID =>
    "http://www.atmel.com:80/dyn/products/product_card.asp?part_id=4337";

    Electricity_Properties::Idle_Current => 17.0 mA;
    Electricity_Properties::Run_Current => 130.0 mA;
    Electricity_Properties::Core_Voltage => 1.8 V;
  end AT91SAM9G20.impl;

end Processors::ARM;