RealView.py (9788:5558ee8dd7d9) | RealView.py (9806:3f262c18ad5d) |
---|---|
1# Copyright (c) 2009-2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 38 unchanged lines hidden (view full) --- 47from Ethernet import NSGigE, IGbE_e1000, IGbE_igb 48from Ide import * 49from Platform import Platform 50from Terminal import Terminal 51from Uart import Uart 52from SimpleMemory import SimpleMemory 53from Gic import * 54 | 1# Copyright (c) 2009-2012 ARM Limited 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 38 unchanged lines hidden (view full) --- 47from Ethernet import NSGigE, IGbE_e1000, IGbE_igb 48from Ide import * 49from Platform import Platform 50from Terminal import Terminal 51from Uart import Uart 52from SimpleMemory import SimpleMemory 53from Gic import * 54 |
55class AmbaDevice(BasicPioDevice): 56 type = 'AmbaDevice' | 55class AmbaPioDevice(BasicPioDevice): 56 type = 'AmbaPioDevice' |
57 abstract = True 58 cxx_header = "dev/arm/amba_device.hh" 59 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 60 | 57 abstract = True 58 cxx_header = "dev/arm/amba_device.hh" 59 amba_id = Param.UInt32("ID of AMBA device for kernel detection") 60 |
61class AmbaIntDevice(AmbaDevice): | 61class AmbaIntDevice(AmbaPioDevice): |
62 type = 'AmbaIntDevice' 63 abstract = True 64 cxx_header = "dev/arm/amba_device.hh" 65 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 66 int_num = Param.UInt32("Interrupt number that connects to GIC") 67 int_delay = Param.Latency("100ns", 68 "Time between action and interrupt generation by device") 69 --- 13 unchanged lines hidden (view full) --- 83 84class RealViewCtrl(BasicPioDevice): 85 type = 'RealViewCtrl' 86 cxx_header = "dev/arm/rv_ctrl.hh" 87 proc_id0 = Param.UInt32(0x0C000000, "Processor ID, SYS_PROCID") 88 proc_id1 = Param.UInt32(0x0C000222, "Processor ID, SYS_PROCID1") 89 idreg = Param.UInt32(0x00000000, "ID Register, SYS_ID") 90 | 62 type = 'AmbaIntDevice' 63 abstract = True 64 cxx_header = "dev/arm/amba_device.hh" 65 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 66 int_num = Param.UInt32("Interrupt number that connects to GIC") 67 int_delay = Param.Latency("100ns", 68 "Time between action and interrupt generation by device") 69 --- 13 unchanged lines hidden (view full) --- 83 84class RealViewCtrl(BasicPioDevice): 85 type = 'RealViewCtrl' 86 cxx_header = "dev/arm/rv_ctrl.hh" 87 proc_id0 = Param.UInt32(0x0C000000, "Processor ID, SYS_PROCID") 88 proc_id1 = Param.UInt32(0x0C000222, "Processor ID, SYS_PROCID1") 89 idreg = Param.UInt32(0x00000000, "ID Register, SYS_ID") 90 |
91class AmbaFake(AmbaDevice): | 91class AmbaFake(AmbaPioDevice): |
92 type = 'AmbaFake' 93 cxx_header = "dev/arm/amba_fake.hh" 94 ignore_access = Param.Bool(False, "Ignore reads/writes to this device, (e.g. IsaFake + AMBA)") 95 amba_id = 0; 96 97class Pl011(Uart): 98 type = 'Pl011' 99 cxx_header = "dev/arm/pl011.hh" 100 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 101 int_num = Param.UInt32("Interrupt number that connects to GIC") 102 end_on_eot = Param.Bool(False, "End the simulation when a EOT is received on the UART") 103 int_delay = Param.Latency("100ns", "Time between action and interrupt generation by UART") 104 | 92 type = 'AmbaFake' 93 cxx_header = "dev/arm/amba_fake.hh" 94 ignore_access = Param.Bool(False, "Ignore reads/writes to this device, (e.g. IsaFake + AMBA)") 95 amba_id = 0; 96 97class Pl011(Uart): 98 type = 'Pl011' 99 cxx_header = "dev/arm/pl011.hh" 100 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 101 int_num = Param.UInt32("Interrupt number that connects to GIC") 102 end_on_eot = Param.Bool(False, "End the simulation when a EOT is received on the UART") 103 int_delay = Param.Latency("100ns", "Time between action and interrupt generation by UART") 104 |
105class Sp804(AmbaDevice): | 105class Sp804(AmbaPioDevice): |
106 type = 'Sp804' 107 cxx_header = "dev/arm/timer_sp804.hh" 108 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 109 int_num0 = Param.UInt32("Interrupt number that connects to GIC") 110 clock0 = Param.Clock('1MHz', "Clock speed of the input") 111 int_num1 = Param.UInt32("Interrupt number that connects to GIC") 112 clock1 = Param.Clock('1MHz', "Clock speed of the input") 113 amba_id = 0x00141804 --- 319 unchanged lines hidden --- | 106 type = 'Sp804' 107 cxx_header = "dev/arm/timer_sp804.hh" 108 gic = Param.BaseGic(Parent.any, "Gic to use for interrupting") 109 int_num0 = Param.UInt32("Interrupt number that connects to GIC") 110 clock0 = Param.Clock('1MHz', "Clock speed of the input") 111 int_num1 = Param.UInt32("Interrupt number that connects to GIC") 112 clock1 = Param.Clock('1MHz', "Clock speed of the input") 113 amba_id = 0x00141804 --- 319 unchanged lines hidden --- |