summaryrefslogtreecommitdiff
path: root/src/types.rs
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-11-27 13:45:48 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-11-27 13:45:48 +0200
commit7ccc460a99bdd6299af9fc95d246826715092df1 (patch)
treead885618b9887f0145e81c7f89af3bd5cc1295ae /src/types.rs
parent1e5dc994b7c7317a8c5be5c600dcd2dc90b0ac07 (diff)
downloadlgsim-7ccc460a99bdd6299af9fc95d246826715092df1.tar.xz
lgsim-7ccc460a99bdd6299af9fc95d246826715092df1.zip
Added the intial design of the logic gate simulator
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/types.rs b/src/types.rs
new file mode 100644
index 0000000..5425649
--- /dev/null
+++ b/src/types.rs
@@ -0,0 +1,9 @@
+use crate::gate::*;
+use crate::pin::*;
+use std::collections::HashMap;
+
+pub type PinValue = u8;
+pub type Pins = Vec<Pin>;
+pub type Gates = Vec<Gate>;
+pub type Chips = Vec<Chip>;
+pub type Connections = HashMap<Pin, Vec<Pin>>;