cf05fa476d
create an m5 package in python/m5 move the objects package into the m5 package move the m5config into the m5 package as config leave both importers outside of the package. SConscript: sim/main.cc: move sim/pyconfig/* -> python python/SConscript: m5config.py -> m5/config.py (now automatically embedded) objects -> python/m5/objects embed all python files in python/m5 python/m5/config.py: importer renamed mpy_importer move code to m5/__init__.py test/genini.py: deal with new python organization keep track of paths we want to add and add them after parameters are parsed. --HG-- rename : sim/pyconfig/SConscript => python/SConscript rename : sim/pyconfig/m5config.py => python/m5/config.py rename : objects/AlphaConsole.mpy => python/m5/objects/AlphaConsole.mpy rename : objects/AlphaTLB.mpy => python/m5/objects/AlphaTLB.mpy rename : objects/BadDevice.mpy => python/m5/objects/BadDevice.mpy rename : objects/BaseCPU.mpy => python/m5/objects/BaseCPU.mpy rename : objects/BaseCache.mpy => python/m5/objects/BaseCache.mpy rename : objects/BaseSystem.mpy => python/m5/objects/BaseSystem.mpy rename : objects/Bus.mpy => python/m5/objects/Bus.mpy rename : objects/CoherenceProtocol.mpy => python/m5/objects/CoherenceProtocol.mpy rename : objects/Device.mpy => python/m5/objects/Device.mpy rename : objects/DiskImage.mpy => python/m5/objects/DiskImage.mpy rename : objects/Ethernet.mpy => python/m5/objects/Ethernet.mpy rename : objects/Ide.mpy => python/m5/objects/Ide.mpy rename : objects/IntrControl.mpy => python/m5/objects/IntrControl.mpy rename : objects/MemTest.mpy => python/m5/objects/MemTest.mpy rename : objects/Pci.mpy => python/m5/objects/Pci.mpy rename : objects/PhysicalMemory.mpy => python/m5/objects/PhysicalMemory.mpy rename : objects/Platform.mpy => python/m5/objects/Platform.mpy rename : objects/Process.mpy => python/m5/objects/Process.mpy rename : objects/Repl.mpy => python/m5/objects/Repl.mpy rename : objects/Root.mpy => python/m5/objects/Root.mpy rename : objects/SimConsole.mpy => python/m5/objects/SimConsole.mpy rename : objects/SimpleDisk.mpy => python/m5/objects/SimpleDisk.mpy rename : objects/Tsunami.mpy => python/m5/objects/Tsunami.mpy rename : objects/Uart.mpy => python/m5/objects/Uart.mpy extra : convert_revision : aebf6ccda33028b1125974ca8b6aeab6f7570f30
86 lines
3.2 KiB
Text
86 lines
3.2 KiB
Text
from Device import DmaDevice
|
|
from Pci import PciDevice
|
|
|
|
simobj EtherInt(SimObject):
|
|
type = 'EtherInt'
|
|
abstract = True
|
|
peer = Param.EtherInt(NULL, "peer interface")
|
|
|
|
simobj EtherLink(SimObject):
|
|
type = 'EtherLink'
|
|
int1 = Param.EtherInt("interface 1")
|
|
int2 = Param.EtherInt("interface 2")
|
|
delay = Param.Tick(0, "transmit delay of packets in us")
|
|
speed = Param.Tick(100000000, "link speed in bits per second")
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
|
|
simobj EtherBus(SimObject):
|
|
type = 'EtherBus'
|
|
loopback = Param.Bool(True,
|
|
"send packet back to the interface from which it came")
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
speed = Param.UInt64(100000000, "bus speed in bits per second")
|
|
|
|
simobj EtherTap(EtherInt):
|
|
type = 'EtherTap'
|
|
bufsz = Param.Int(10000, "tap buffer size")
|
|
dump = Param.EtherDump(NULL, "dump object")
|
|
port = Param.UInt16(3500, "tap port")
|
|
|
|
simobj EtherDump(SimObject):
|
|
type = 'EtherDump'
|
|
file = Param.String("dump file")
|
|
|
|
simobj EtherDev(DmaDevice):
|
|
type = 'EtherDev'
|
|
hardware_address = Param.EthernetAddr(NextEthernetAddr,
|
|
"Ethernet Hardware Address")
|
|
|
|
dma_data_free = Param.Bool(False, "DMA of Data is free")
|
|
dma_desc_free = Param.Bool(False, "DMA of Descriptors is free")
|
|
dma_read_delay = Param.Tick(0, "fixed delay for dma reads")
|
|
dma_read_factor = Param.Tick(0, "multiplier for dma reads")
|
|
dma_write_delay = Param.Tick(0, "fixed delay for dma writes")
|
|
dma_write_factor = Param.Tick(0, "multiplier for dma writes")
|
|
|
|
rx_filter = Param.Bool(True, "Enable Receive Filter")
|
|
rx_delay = Param.Tick(1000, "Receive Delay")
|
|
tx_delay = Param.Tick(1000, "Transmit Delay")
|
|
|
|
intr_delay = Param.Tick(0, "Interrupt Delay in microseconds")
|
|
payload_bus = Param.Bus(NULL, "The IO Bus to attach to for payload")
|
|
physmem = Param.PhysicalMemory(Super, "Physical Memory")
|
|
tlaser = Param.Turbolaser(Super, "Turbolaser")
|
|
|
|
simobj NSGigE(PciDevice):
|
|
type = 'NSGigE'
|
|
hardware_address = Param.EthernetAddr(NextEthernetAddr,
|
|
"Ethernet Hardware Address")
|
|
|
|
dma_data_free = Param.Bool(False, "DMA of Data is free")
|
|
dma_desc_free = Param.Bool(False, "DMA of Descriptors is free")
|
|
dma_read_delay = Param.Tick(0, "fixed delay for dma reads")
|
|
dma_read_factor = Param.Tick(0, "multiplier for dma reads")
|
|
dma_write_delay = Param.Tick(0, "fixed delay for dma writes")
|
|
dma_write_factor = Param.Tick(0, "multiplier for dma writes")
|
|
|
|
rx_filter = Param.Bool(True, "Enable Receive Filter")
|
|
rx_delay = Param.Tick(1000, "Receive Delay")
|
|
tx_delay = Param.Tick(1000, "Transmit Delay")
|
|
|
|
rx_fifo_size = Param.Int(131072, "max size in bytes of rxFifo")
|
|
tx_fifo_size = Param.Int(131072, "max size in bytes of txFifo")
|
|
|
|
intr_delay = Param.Tick(0, "Interrupt Delay in microseconds")
|
|
payload_bus = Param.Bus(NULL, "The IO Bus to attach to for payload")
|
|
physmem = Param.PhysicalMemory(Super, "Physical Memory")
|
|
|
|
simobj EtherDevInt(EtherInt):
|
|
type = 'EtherDevInt'
|
|
device = Param.EtherDev("Ethernet device of this interface")
|
|
|
|
simobj NSGigEInt(EtherInt):
|
|
type = 'NSGigEInt'
|
|
device = Param.NSGigE("Ethernet device of this interface")
|
|
|
|
|