Device.py (8839:eeb293859255) | Device.py (9162:019047ead23b) |
---|---|
1# Copyright (c) 2005-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 26 unchanged lines hidden (view full) --- 35 abstract = True 36 pio = SlavePort("Programmed I/O port") 37 system = Param.System(Parent.any, "System this device is part of") 38 39class BasicPioDevice(PioDevice): 40 type = 'BasicPioDevice' 41 abstract = True 42 pio_addr = Param.Addr("Device Address") | 1# Copyright (c) 2005-2007 The Regents of The University of Michigan 2# All rights reserved. 3# 4# Redistribution and use in source and binary forms, with or without 5# modification, are permitted provided that the following conditions are 6# met: redistributions of source code must retain the above copyright 7# notice, this list of conditions and the following disclaimer; 8# redistributions in binary form must reproduce the above copyright --- 26 unchanged lines hidden (view full) --- 35 abstract = True 36 pio = SlavePort("Programmed I/O port") 37 system = Param.System(Parent.any, "System this device is part of") 38 39class BasicPioDevice(PioDevice): 40 type = 'BasicPioDevice' 41 abstract = True 42 pio_addr = Param.Addr("Device Address") |
43 pio_latency = Param.Latency('1ns', "Programmed IO latency in simticks") | 43 pio_latency = Param.Latency('1ns', "Programmed IO latency") |
44 45class DmaDevice(PioDevice): 46 type = 'DmaDevice' 47 abstract = True 48 dma = MasterPort("DMA port") 49 min_backoff_delay = Param.Latency('4ns', 50 "min time between a nack packet being received and the next request made by the device") 51 max_backoff_delay = Param.Latency('10us', --- 22 unchanged lines hidden --- | 44 45class DmaDevice(PioDevice): 46 type = 'DmaDevice' 47 abstract = True 48 dma = MasterPort("DMA port") 49 min_backoff_delay = Param.Latency('4ns', 50 "min time between a nack packet being received and the next request made by the device") 51 max_backoff_delay = Param.Latency('10us', --- 22 unchanged lines hidden --- |