summaryrefslogtreecommitdiffstats
path: root/sw/pld/ADDRESS_DECODER.sim
diff options
context:
space:
mode:
Diffstat (limited to 'sw/pld/ADDRESS_DECODER.sim')
-rw-r--r--sw/pld/ADDRESS_DECODER.sim50
1 files changed, 50 insertions, 0 deletions
diff --git a/sw/pld/ADDRESS_DECODER.sim b/sw/pld/ADDRESS_DECODER.sim
new file mode 100644
index 0000000..05661c0
--- /dev/null
+++ b/sw/pld/ADDRESS_DECODER.sim
@@ -0,0 +1,50 @@
+%SIGNAL
+PIN 2 = A8
+PIN 3 = A9
+PIN 4 = A10
+PIN 5 = A11
+PIN 6 = A12
+PIN 7 = A13
+PIN 8 = A14
+PIN 9 = A15
+PIN 16 = CSCTC
+PIN 17 = CSPIO
+PIN 14 = CSRAM
+PIN 13 = CSROMH
+PIN 12 = CSROML
+PIN 15 = CSUART
+%END
+
+%FIELD
+%END
+
+%EQUATION
+CSCTC =>
+ !A8 & A9 & !A10 & !A11 & !A12 & A13 & !A14 & !A15
+
+CSPIO =>
+ A8 & A9 & !A10 & !A11 & !A12 & A13 & !A14 & !A15
+
+CSRAM =>
+ !A15
+
+CSROMH =>
+ A13 & !A14 & !A15
+
+CSROML =>
+ !A13 & !A14 & !A15
+
+CSTIMER =>
+ A15
+ # A14
+ # !A13
+ # A12
+ # A11
+ # A10
+ # A9
+ # !A8
+
+CSUART =>
+ !A8 & !A9 & !A10 & !A11 & !A12 & A13 & !A14 & !A15
+
+%END