Skip to content

trying to make an 8 bit counter but galasm is mad #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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 .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 (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-apple-darwin","rustc":"rustc 1.56.1 (59eed8a2a 2021-11-01)\nbinary: rustc\ncommit-hash: 59eed8a2aac0230a8b53e89d4e99d55912ba6b35\ncommit-date: 2021-11-01\nhost: x86_64-apple-darwin\nrelease: 1.56.1\nLLVM version: 13.0.0\n"}}}
89 changes: 89 additions & 0 deletions GAL16V8_counter.pld
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
GAL16V8
Counter

Clock NC NC NC NC NC NC NC Rst GND
/OE A0 A1 A2 A3 A4 A5 A6 A7 VCC

A0.R = /A0

; 0 0 -> 0 1
; 0 1 -> 1 0 *
; 1 0 -> 1 1 *
; 1 1 -> 0 0
A1.R = /A1 * A0 + A1 * /A0

; 0 1 1 -> 1 0 0
; 1 0 0 -> 1 0 1
; 1 0 1 -> 1 1 0
; 1 1 0 -> 1 1 1
A2.R = /A2 * A1 * A0 + A2 * /A1 + A2 * /A0

; 0 1 1 1
; 1 0 x x
; 1 x 0 x
; 1 x x 0
A3.R = /A3 * A2 * A1 * A0
+ A3 * /A2
+ A3 * /A1
+ A3 * /A0

; 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
A4.R = /A4 * A3 * A2 * A1 * A0
+ A4 * /A3
+ A4 * /A2
+ A4 * /A1
+ A4 * /A0

; 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
A5.R = /A5 * A4 * A3 * A2 * A1 * A0
+ A5 * /A4
+ A5 * /A3
+ A5 * /A2
+ A5 * /A1
+ A5 * /A0

; 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
A6.R = /A6 * A5 * A4 * A3 * A2 * A1 * A0
+ A6 * /A5
+ A6 * /A4
+ A6 * /A3
+ A6 * /A2
+ A6 * /A1
+ A6 * /A0

; 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
A7.R = /A7 * A6 * A5 * A4 * A3 * A2 * A1 * A0
+ A7 * /A6
+ A7 * /A5
+ A7 * /A4
+ A7 * /A3
+ A7 * /A2
+ A7 * /A1
+ A7 * /A0


DESCRIPTION

An 8-bit Synchronous counter