summaryrefslogtreecommitdiff
path: root/python/m5/objects/Uart.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/m5/objects/Uart.py')
-rw-r--r--python/m5/objects/Uart.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/python/m5/objects/Uart.py b/python/m5/objects/Uart.py
new file mode 100644
index 000000000..cfb09acad
--- /dev/null
+++ b/python/m5/objects/Uart.py
@@ -0,0 +1,7 @@
+from m5 import *
+from Device import PioDevice
+
+class Uart(PioDevice):
+ type = 'Uart'
+ console = Param.SimConsole(Parent.any, "The console")
+ size = Param.Addr(0x8, "Device size")