summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gate.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gate.rs b/src/gate.rs
index b42a125..3925a45 100644
--- a/src/gate.rs
+++ b/src/gate.rs
@@ -291,8 +291,9 @@ impl NotGate {
pub struct Chip {
pub gates: Gates,
pub connections: Connections,
- input: Pins,
- output: Pins,
+ pins: HashMap<usize, Pin>,
+ input: Vec<usize>,
+ output: Vec<usize>,
}
impl Chip {
@@ -300,8 +301,9 @@ impl Chip {
Chip {
gates: Gates::new(),
connections: HashMap::new(),
- input: Pins::new(),
- output: Pins::new(),
+ pins: HashMap::new(),
+ input: vec![],
+ output: vec![],
}
}