Skip to content
Draft
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .crates.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[v1]
"galette 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = ["galette"]
"galette 0.3.0 (git+https://github.com/rustbox/galette.git?rev=2ba00658608c4e4d1fd51d903a7799dcabe2f9cc#2ba00658608c4e4d1fd51d903a7799dcabe2f9cc)" = ["galette"]
2 changes: 1 addition & 1 deletion .crates2.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"installs":{"galette 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)":{"version_req":"0.3.0","bins":["galette"],"features":[],"all_features":false,"no_default_features":false,"profile":"release","target":"x86_64-unknown-linux-gnu","rustc":"rustc 1.62.1 (e092d0b6b 2022-07-16)\nbinary: rustc\ncommit-hash: e092d0b6b43f2de967af0887873151bb1c0b18d3\ncommit-date: 2022-07-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.62.1\nLLVM version: 14.0.5\n"}}}
{"installs":{"galette 0.3.0 (git+https://github.com/rustbox/galette.git?rev=2ba00658608c4e4d1fd51d903a7799dcabe2f9cc#2ba00658608c4e4d1fd51d903a7799dcabe2f9cc)":{"version_req":null,"bins":["galette"],"features":[],"all_features":false,"no_default_features":false,"profile":"release","target":"x86_64-unknown-linux-gnu","rustc":"rustc 1.62.1 (e092d0b6b 2022-07-16)\nbinary: rustc\ncommit-hash: e092d0b6b43f2de967af0887873151bb1c0b18d3\ncommit-date: 2022-07-16\nhost: x86_64-unknown-linux-gnu\nrelease: 1.62.1\nLLVM version: 14.0.5\n"}}}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You gotta run rustup update my man: rustc from July? And/or, we should drop a .rust-toolchain.toml file in this repo too.

25 changes: 25 additions & 0 deletions GAL16V8_counter8.chp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@


GAL16V8

-------\___/-------
Clock | 1 20 | VCC
| |
NC | 2 19 | Q0
| |
NC | 3 18 | Q1
| |
NC | 4 17 | Q2
| |
NC | 5 16 | Q3
| |
NC | 6 15 | Q4
| |
NC | 7 14 | Q5
| |
NC | 8 13 | Q6
| |
R | 9 12 | Q7
| |
GND | 10 11 | /OE
-------------------
52 changes: 52 additions & 0 deletions GAL16V8_counter8.jed
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@

GAL-Assembler: Galette 0.3.0
Device: GAL16V8

*F0
*G0
*QF2194
*L0000 11101111111111111111111111111111
*L0256 11011110111111111111111111111111
*L0288 11101101111111111111111111111111
*L0512 11011101111011111111111111111111
*L0544 11111110110111111111111111111111
*L0576 11101111110111111111111111111111
*L0768 11011101110111101111111111111111
*L0800 11111111111011011111111111111111
*L0832 11111110111111011111111111111111
*L0864 11101111111111011111111111111111
*L1024 11011101110111011110111111111111
*L1056 11111111110111101111111111111111
*L1088 11111111110011111111111111111111
*L1120 11111110110111111111111111111111
*L1152 11101111110111111111111111111111
*L1280 11011101110111011101111011111111
*L1312 11111111111111111110110111111111
*L1344 11111111111111101111110111111111
*L1376 11111111111011111111110111111111
*L1408 11111110111111111111110111111111
*L1440 11101111111111111111110111111111
*L1536 11011101110111011101110111101111
*L1568 11111111111111111111111011011111
*L1600 11111111111111111110111111011111
*L1632 11111111111111101111111111011111
*L1664 11111111111011111111111111011111
*L1696 11111110111111111111111111011111
*L1728 11101111111111111111111111011111
*L1792 11011101110111011101110111011110
*L1824 11111111111111111111111111101101
*L1856 11111111111111111111111011111101
*L1888 11111111111111111110111111111101
*L1920 11111111111111101111111111111101
*L1952 11111111111011111111111111111101
*L1984 11111110111111111111111111111101
*L2016 11101111111111111111111111111101
*L2048 11111111
*L2056 0100001101101111011101010110111001110100011001010111001000000000
*L2120 00000000
*L2128 1111111111111111111111111111111111111111111111111111111111111111
*L2192 0
*L2193 1
*C8c57
*
4718
25 changes: 25 additions & 0 deletions GAL16V8_counter8.pin
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@


Pin # | Name | Pin Type
-----------------------------
1 | Clock | Clock
2 | NC | Input
3 | NC | Input
4 | NC | Input
5 | NC | Input
6 | NC | Input
7 | NC | Input
8 | NC | Input
9 | R | Input
10 | GND | GND
11 | /OE | /OE
12 | Q7 | Output
13 | Q6 | Output
14 | Q5 | Output
15 | Q4 | Output
16 | Q3 | Output
17 | Q2 | Output
18 | Q1 | Output
19 | Q0 | Output
20 | VCC | VCC

88 changes: 88 additions & 0 deletions GAL16V8_counter8.pld
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
GAL16V8
Counter

Clock NC NC NC NC NC NC NC R GND
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't look like R is used on this chip, is that right?

/OE Q7 Q6 Q5 Q4 Q3 Q2 Q1 Q0 VCC

Q0.R = /Q0

; 0 1
; 1 0
Q1.R = /Q1 * Q0 + Q1 * /Q0

; 0 1 1
; 1 0 x
; 1 x 0
Q2.R = /Q2*Q1*Q0 +
Q2 * /Q1 +
Q2 * /Q0

; 0 1 1 1
; 1 0 x x
; 1 x 0 x
; 1 x x 0
Q3.R = /Q3*Q2*Q1*Q0 +
Q3 * /Q2 +
Q3 * /Q1 +
Q3 * /Q0

; 0 1 1 1 1
; 1 0 x x x
; 1 x 0 x x
; 1 x x 0 x
; 1 x x x 0
Q4.R = /Q4*Q3*Q2*Q1*Q0 +
Q2 * /Q3 +
Q2 * /Q2 +
Q2 * /Q1 +
Q2 * /Q0

; 0 1 1 1 1 1
; 1 0 x x x x
; 1 x 0 x x x
; 1 x x 0 x x
; 1 x x x 0 x
; 1 x x x x 0
Q5.R = /Q5*Q4*Q3*Q2*Q1*Q0 +
Q5 * /Q4 +
Q5 * /Q3 +
Q5 * /Q2 +
Q5 * /Q1 +
Q5 * /Q0

; 0 1 1 1 1 1 1
; 1 0 x x x x x
; 1 x 0 x x x x
; 1 x x 0 x x x
; 1 x x x 0 x x
; 1 x x x x 0 x
; 1 x x x x x 0
Q6.R = /Q6*Q5*Q4*Q3*Q2*Q1*Q0 +
Q6 * /Q5 +
Q6 * /Q4 +
Q6 * /Q3 +
Q6 * /Q2 +
Q6 * /Q1 +
Q6 * /Q0

; 0 1 1 1 1 1 1 1
; 1 0 x x x x x x
; 1 x 0 x x x x x
; 1 x x 0 x x x x
; 1 x x x 0 x x x
; 1 x x x x 0 x x
; 1 x x x x x 0 x
; 1 x x x x x x 0
Q7.R = /Q7*Q6*Q5*Q4*Q3*Q2*Q1*Q0 +
Q7 * /Q6 +
Q7 * /Q5 +
Q7 * /Q4 +
Q7 * /Q3 +
Q7 * /Q2 +
Q7 * /Q1 +
Q7 * /Q0


DESCRIPTION

8 bit counter
18 changes: 9 additions & 9 deletions GAL16V8_horizontal.chp
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
GAL16V8

-------\___/-------
A9 | 1 20 | VCC
Clock | 1 20 | VCC
| |
A8 | 2 19 | HzVis
Q5 | 2 19 | HVis
| |
A7 | 3 18 | Hsync
NC | 3 18 | Hsync
| |
A6 | 4 17 | EndL
NC | 4 17 | EndL
| |
A5 | 5 16 | NC
NC | 5 16 | Q6
| |
A4 | 6 15 | NC
NC | 6 15 | Q7
| |
A3 | 7 14 | NC
NC | 7 14 | Q8
| |
A2 | 8 13 | A0
NC | 8 13 | Q9
| |
A1 | 9 12 | NC
NC | 9 12 | Q10
| |
GND | 10 11 | NC
-------------------
51 changes: 36 additions & 15 deletions GAL16V8_horizontal.jed
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,42 @@ Device: GAL16V8
*F0
*G0
*QF2194
*L0000 11101011101111111111111111111111
*L0032 10101111111111111111111111111111
*L0256 11111111111101110111011111111111
*L0288 11111111111110111011101111111111
*L0320 11111111101111111111111111111111
*L0352 11110111111111111111111111111111
*L0384 10111111111111111111111111111111
*L0416 11011111111111111111111111111111
*L0512 01100111101110110111101010111011
*L2048 11100000
*L0000 11111111111111111111111111111110
*L0032 11111111111111111111111011101101
*L0064 10111111111111011110111011011101
*L0256 01111111111111101110110111101101
*L0288 10111111111111011110110111101101
*L0320 01111111111111011110110111101101
*L0352 10111111111111101101110111101101
*L0384 01111111111111101101110111101101
*L0416 10111111111111011101110111101101
*L0512 01111111111111101110111011011101
*L0768 01111111111011101111111111111111
*L0800 10111111111011011111111111111111
*L1024 01111111111011011110111111111111
*L1056 11111111111011101101111111111111
*L1088 10111111111011011101111111111111
*L1280 01111111111011011101111011111111
*L1312 11111111111011111110110111111111
*L1344 11111111111011101101110111111111
*L1376 10111111111011011101110111111111
*L1536 01111111111011011101110111101111
*L1568 11111111111011111111111011011111
*L1600 11111111111011111110110111011111
*L1632 11111111111011101101110111011111
*L1664 10111111111011011101110111011111
*L1792 01111111111011011101110111011110
*L1824 11111111111011111111111111101101
*L1856 11111111111011111111111011011101
*L1888 11111111111011111110110111011101
*L1920 11111111111011101101110111011101
*L1952 10111111111011011101110111011101
*L2048 10111111
*L2056 0100100001101111011100100110100101111010011011110110111001110100
*L2120 00000010
*L2120 00000000
*L2128 1111111111111111111111111111111111111111111111111111111111111111
*L2192 1
*L2193 0
*C2e53
*L2192 0
*L2193 1
*C6f34
*
7b37
1976
32 changes: 16 additions & 16 deletions GAL16V8_horizontal.pin
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

Pin # | Name | Pin Type
-----------------------------
1 | A9 | Input
2 | A8 | Input
3 | A7 | Input
4 | A6 | Input
5 | A5 | Input
6 | A4 | Input
7 | A3 | Input
8 | A2 | Input
9 | A1 | Input
1 | Clock | Clock
2 | Q5 | Input
3 | NC | Input
4 | NC | Input
5 | NC | Input
6 | NC | Input
7 | NC | Input
8 | NC | Input
9 | NC | Input
10 | GND | GND
11 | NC | Input
12 | NC | NC
13 | A0 | Input
14 | NC | NC
15 | NC | NC
16 | NC | NC
11 | NC | /OE
12 | Q10 | Output
13 | Q9 | Output
14 | Q8 | Output
15 | Q7 | Output
16 | Q6 | Output
17 | EndL | Output
18 | Hsync | Output
19 | HzVis | Output
19 | HVis | Output
20 | VCC | VCC

Loading