summaryrefslogtreecommitdiff
path: root/logiccircuitframework/components.py
diff options
context:
space:
mode:
Diffstat (limited to 'logiccircuitframework/components.py')
-rw-r--r--logiccircuitframework/components.py28
1 files changed, 27 insertions, 1 deletions
diff --git a/logiccircuitframework/components.py b/logiccircuitframework/components.py
index 60315b0..9f6cbcd 100644
--- a/logiccircuitframework/components.py
+++ b/logiccircuitframework/components.py
@@ -159,6 +159,32 @@ class Xor(Component):
symbol = "^"
+class BusIn(Component):
+
+ symbol = "BI"
+ outputs = 1
+
+class BusOut8(Component):
+
+ symbol = "BO8"
+ fixed_inputs = True
+ inputs = 1
+ outputs = 8
+
+class BusOut16(Component):
+
+ symbol = "BO16"
+ fixed_inputs = True
+ inputs = 1
+ outputs = 16
+
+class BusOut32(Component):
+
+ symbol = "BO32"
+ fixed_inputs = True
+ inputs = 1
+ outputs = 32
+
class Input(Component):
symbol = "i"
@@ -292,7 +318,7 @@ class ROMR(Component):
DEFAULT_COMPONENT_TYPES = [Not, And, Or, Nand, Nor, Xor, Input, Output,
Reg, RegInput, RegOutput, Mux, One, Zero,
- RAMR, RAMW, ROMR]
+ RAMR, RAMW, ROMR, BusIn, BusOut8, BusOut16, BusOut32]
class ComponentsPool(object):