#garfield Logs

Oct 20 2020

#garfield Calendar

03:26 AM polprog: good morning
03:33 AM polprog: rue_mohr: im using a Lattice GAL16V8-35LP
03:33 AM polprog: i didnt ground /OE because i wasnt using it in the registered(?) mode yet, if you dont use the output enable control then /OE is just input 11
03:56 AM polprog: i've corrected the galnotes2.txt, added some minor details and language corrections
07:23 AM rue_bed: and that gal is erasable?
07:56 AM aandrew: morning
07:59 AM rue_bed: hi
07:59 AM rue_bed: so,
07:59 AM rue_bed: the PAL are one time programmable
07:59 AM rue_bed: the GAL are all reprogrammable?
08:39 AM rue_mohr: polprog, http://ruemohr.org/~ircjunk/tutorials/elex/GALtut/GAL_programming.html
08:39 AM rue_mohr: look I made another 80's page :)
08:40 AM rue_mohr: aside, its *just* the process, none of the background
08:40 AM rue_mohr: pls tell me if you see any errors!
08:40 AM rue_mohr: oh I should have shrunk that image
08:41 AM rue_mohr: errors or improvements
08:42 AM rue_mohr: apparently nobody uses background images anymore, they use CSS
08:42 AM rue_mohr: you should see the amount of CSS just to make lines like that
08:43 AM rue_mohr: oh polprog make clean -> ujed
08:44 AM rue_mohr: I'll see if I can find a GAL to use and try it tonight, er, I have to get galasm set up
09:37 AM rue_mohr: ok! I'd assembled galasm already, and I got the makefile happening
09:37 AM rue_mohr: I prettymuch just need to find a gal
11:46 AM aandrew: don't we all
12:33 PM rue_shop1: polprog, you alive?
12:33 PM rue_shop1: aandrew, suppose you haven't done GALs like this eh?
12:33 PM Tom_L: don't you have a job?
12:33 PM Tom_L: :)
12:43 PM rue_mohr: school
12:49 PM Tom_L: cool
12:52 PM Tom_L: be nice if your job paid for the school
01:03 PM aandrew: rue_shop1: I've only used one CPLD and that was almost 20y ago
01:08 PM rue_mohr: way too long ago
01:12 PM Tom_L: CPLD load different than FPGA
01:13 PM Tom_L: FPGA requre loading from flash on startup
04:27 PM rue_shop1: hey I have an AMD PALCE16V8
05:13 PM polprog: i am alive.. barely
05:13 PM polprog: im running short on time
05:14 PM polprog: tomorrow i have classes 8-18 with 2h break afternoon
05:14 PM polprog: ive gotta hand in a mech assignment, which im lost at
05:14 PM polprog: waiting for the prof to answer
05:14 PM polprog: i fucked up by watching the lectures and *not* taking notes, so now im rewatching them taking notes
05:18 PM polprog: the gals i use are eraseable, i think all GAL are eraseable
05:18 PM polprog: PAL's, im not sure about
05:19 PM polprog: i have some PALCE which are ceramic with a window, so these were probably the development versions and the prod versions were burned in
05:19 PM polprog: im not sure if make clean should delete the .ujed file ;)
05:19 PM polprog: my make cleans dont remove the compiled binary
05:19 PM polprog: idk whats the custom
05:22 PM polprog: i think the upload target should not erase first, im sure minipro does that before write anyway, so thats just excercising the eeprom unnecesarily
05:23 PM polprog: also i dont remember if the button needed a pullup, i think there are internal pullups
05:23 PM polprog: i like that page a lot ! :)
05:42 PM Tom_L: sleepin in class ehh?
05:49 PM rue_mohr: polprog, oh good show
05:49 PM polprog: nah, not sleeping
05:49 PM rue_mohr: I'll see if I can program a chip tonight
05:50 PM polprog: mech is the most important class this semester, the lectures are prerecorded because the lecturer doesnt wanna use MS teams
05:50 PM polprog: i understand him though
05:50 PM polprog: and its easier if i can rewind
05:50 PM polprog: more like not sleeping out of class..
05:50 PM rue_mohr: what is the topic in mech?
05:50 PM polprog: mechanics, so movement equations mostly
05:50 PM polprog: we're doing two body problem
05:51 PM rue_mohr: I almost remember something about that
05:51 PM Tom_L: you should
05:52 PM polprog: next up is something with ropes and reels, then some rigid body
05:53 PM polprog: can you post that 6502 code in some future? i have two 6502s i could put some silly thing on a perfboard when time allows
06:57 PM Tom_L: how do you remove kernel builds you no longer want in the boot list?
07:24 PM rue_shop1: hey I have a lattice gal16v8B
07:25 PM rue_shop1: polprog, yup
07:25 PM rue_shop1: Tom_L, grub right?
07:25 PM rue_shop1: there is a menu file somewhere maybe?
07:30 PM Tom_L: yeah i think so
07:30 PM Tom_L: there's a couple i wouldn't mind getting rid of
07:30 PM Tom_L: testing kernels
08:20 PM Tom_dev: rue_mohr, in case you ever wanna know: https://www.tecmint.com/remove-old-kernel-in-debian-and-ubuntu/
08:22 PM rue_mohr: polprog, 8-| "verification ok"
08:22 PM Tom_L: a sniff of progress?
08:22 PM rue_mohr: after like 30 years, I finally programmed one...
08:23 PM Tom_L: except ^^ didn't work
08:23 PM Tom_L: there were a couple missing dependencies and it won't remove it
08:24 PM rue_mohr: can you still boot?
08:24 PM Tom_L: yeah i'm booted on the other kernel
08:24 PM rue_mohr: you want the menu clear or the space back?
08:24 PM Tom_L: the one i wanna keep
08:24 PM Tom_L: menu would be good enough space is a bonus
08:25 PM Tom_dev: linux-image-4.19.0-6-amd64
08:25 PM Tom_dev: linux-image-4.19.0-6-rt-amd64-unsigned
08:25 PM Tom_dev: linux-image-4.19.0-8-amd64
08:25 PM Tom_dev: linux-image-4.19.114-rtai
08:25 PM Tom_dev: linux-image-amd64
08:25 PM Tom_L: the rtai one doesn't work right
08:25 PM rue_mohr: I dispise grub
08:26 PM rue_mohr: but is there a /boot/?????/?????/menu file?
08:26 PM Tom_L: lemme see
08:26 PM rue_mohr: so excited!!!!!
08:27 PM Tom_dev: where would it be?
08:27 PM Tom_dev: ../boot/grub/ ???
08:27 PM Tom_dev: there's a grub.cfg
08:27 PM rue_mohr: maybe thats it, I recall something about menu
08:27 PM rue_mohr: then I uninstalled it and used lilo
08:28 PM rue_mohr: not much help here
08:28 PM rue_mohr: sorry
08:28 PM Tom_dev: doesn't look like one i should be screwing with
08:29 PM Tom_dev: it's got menuentry "xxxx" stuff but a paragraph of stuff after each one
08:29 PM rue_mohr: not sure
08:29 PM Tom_dev: i'll try it
08:30 PM Tom_dev: hahaha
08:30 PM Tom_dev: first line: # DO NOT EDIT THIS FILE
08:35 PM Tom_dev: grub-mkconfig makes that file but i dunno how to remove entries from it
08:36 PM Tom_dev: it's not a big deal, just annoying
08:38 PM Tom_dev: i have an idea
08:43 PM Tom_dev: i think i fixed it
08:43 PM Tom_dev: if i don't return, i didn't :)
08:44 PM Tom_L: yay
08:45 PM Tom_L: you just remove them from the /boot directory then update-grub
08:48 PM rue_shop1: ok
08:48 PM rue_shop1: polprog, ... it works but... its inverted
08:48 PM rue_shop1: like, not the kind of inverted that it should be
09:03 PM Tom_L: what other kind is there?
09:03 PM Tom_L: endian backwards?
09:07 PM rue_mohr: Tom_L, remember how your fpga outputs are always inverted?
09:07 PM aandrew: he had it upside down?
09:07 PM rue_mohr: no...
09:08 PM rue_mohr: his code clearly says OUT =/BTN
09:08 PM rue_mohr: to confirm, the GAL does invert the signal if I change it to OUT = BTN
09:09 PM Tom_L: yeah
09:09 PM rue_mohr: not good news in the PALCE chips
09:09 PM rue_mohr: apparently they may implement a programming alg that the programmer builders need to liscence
09:09 PM Tom_L: do they need pullups?
09:10 PM rue_mohr: BUT the datasheet says its identicle to the PAL
09:10 PM rue_mohr: no, it does pull up ok
09:10 PM rue_mohr: I think the inputs are active low and the outputs are active high
09:10 PM rue_mohr: just to screw with us
09:10 PM Tom_L: i'm not sure why they're reversed but they are
10:47 PM rue_mohr: polprog, I have an update for mine, but I'll also link yours for details on going forward