#garfield Logs

Dec 30 2019

#garfield Calendar

03:32 AM rue_shop3: to count to 50000000 you only need 26 bits
03:38 AM rue_shop3: why would people use 32 bits when implementing a counter that only needs 26 for an fpga
03:43 AM rue_shop3: ok rue, what pins of U8 should I put breadboard pins on such to end up with atleast 8 signals and a ground.
03:45 AM rue_shop3: Tom_L, https://paste.debian.net/1123137/
03:45 AM rue_shop3: ^^^ tom my blink code
03:46 AM rue_shop3: https://paste.debian.net/1123137/
03:46 AM rue_shop3: https://paste.debian.net/1123137/
03:46 AM rue_shop3: https://paste.debian.net/1123137/
03:47 AM rue_shop3: I dont entirely understand <= vs assign yet
03:51 AM rue_shop3: I think it has to do with registers
03:55 AM rue_shop3: hmmm
03:55 AM rue_shop3: it takes a hell of a lot less gates to do == rather than >
03:55 AM rue_shop3: and its not like the fpga is going to miss a count
04:49 AM rue_bed: grrrr
04:58 AM Tom_L: so assign is more efficient than <= ?
05:02 AM rue_bed: no
05:03 AM rue_bed: so far the answer is that <= is for edge triggered stuff
05:03 AM rue_bed: which makes sense why it comes up in the context of registers
05:03 AM rue_bed: clocked things
05:03 AM rue_bed: assign is for non-clocked logic things
05:04 AM rue_bed: which is why my button stuff I posted used assign, I ditched the registers
05:11 AM Tom_L: i honestly haven't been paying attention to how many gates things use yet
05:11 AM rue_bed: I'm looking at it, but it doesn't mean much at this point
05:12 AM Tom_L: fewer gates is lower latency
05:12 AM rue_bed: the stats seem to say I'm using between 0% to 1% of the fpga
05:12 AM Tom_L: yeah you got a big one
05:12 AM Tom_L: you could easily hold all the mesa code for a mill and have room left over
05:13 AM Tom_L: he puts 2 configs in his
05:13 AM rue_bed: did you see that code?
05:13 AM Tom_L: a fallback and the regular code
05:13 AM Tom_L: which code?
05:13 AM rue_bed: <rue_shop3> Tom_L, https://paste.debian.net/1123137/
05:13 AM rue_bed: <rue_shop3> ^^^ tom my blink code
05:13 AM rue_bed: <rue_shop3> https://paste.debian.net/1123137/
05:13 AM rue_bed: <rue_shop3> https://paste.debian.net/1123137/
05:13 AM rue_bed: <rue_shop3> https://paste.debian.net/1123137/
05:13 AM Tom_L: i'm looking at it right now
05:13 AM rue_bed: :)
05:14 AM rue_bed: your not much-a-one for scrollback are ya?
05:14 AM Tom_L: i already had it open
05:14 AM rue_bed: heh ok
05:14 AM Tom_L: and no i don't scroll back that far
05:14 AM rue_bed: my command line calc can print numbers out in binary for me
05:15 AM rue_bed: so I converted 500000000 and counted bits
05:15 AM Tom_L: ends up the same in code
05:15 AM rue_bed: I dont know, if you tell it to implement the counter in 32 bits, but only use 26, if it trims the extra bits off
05:15 AM Tom_L: i'm not sure
05:16 AM rue_bed: I kinda suspect it doesn't
05:16 AM rue_bed: heh 3am
05:16 AM Tom_L: if it changes anything it will show up in the warnings
05:16 AM Tom_L: yeah, time to get up :)
05:16 AM rue_bed: one has to remember that an fpga is not a system operating in multiples of 8 bits
05:17 AM rue_bed: I'm not slept yet
05:17 AM Tom_L: made sure my kid got up 2 hrs ago
05:17 AM Tom_L: fpga can do anything you tell it
05:17 AM Tom_L: in any width
05:17 AM rue_bed: exactly
05:18 AM Tom_L: in parallel with other stuff
05:19 AM Tom_L: is your guy helping with code?
05:19 AM rue_bed: nope
05:19 AM rue_bed: just suggested the hardware chain and that program for writing
05:20 AM rue_bed: your the software guy
05:20 AM Tom_L: i did figure out always@(*) assigns used vars to the task
05:20 AM rue_bed: I been googling and playing
05:20 AM Tom_L: so if you have a long list of them, you won't miss one
05:20 AM rue_bed: I dont know enough to know I dont know that
05:21 AM Tom_L: i'm a page ahead of you in the beginner's guide to the beginner's book
05:21 AM rue_bed: I'm just trying things and googling
05:21 AM rue_bed: there are a lot of bad google results
05:22 AM Tom_L: did you pull the sample code for the board i'm getting?
05:22 AM rue_bed: no
05:22 AM Tom_L: they have a different style of writing
05:22 AM rue_bed: I have the sample code from QMtech, but havn't really looked at it much
05:22 AM rue_bed: I havn't even looked over what subsystems are available on it
05:22 AM Tom_L: me either that much
05:23 AM rue_bed: I'm curious about the dram
05:23 AM Tom_L: i'm not sure how to access them
05:23 AM rue_bed: I know thats a subsystem
05:24 AM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/xilinx/New_Board/
05:24 AM Tom_L: one in there i think has ram but i may be wrong
05:25 AM Tom_L: if you don't wanna pull 8M i can just pull the examples later
05:25 AM Tom_L: the rar has all the docs for my board as well
05:27 AM Tom_L: i figured i'd work my way up to some of them later
05:28 AM rue_bed: my next goal is to hook on a header for some io
05:28 AM Tom_L: buffer it
05:28 AM Tom_L: or you may blow a pin on the fpga
05:28 AM rue_bed: gonna find a run of pins on the non-diff header that will include a ground or two
05:28 AM rue_bed: I'll keep in mind its 3.3V
05:29 AM rue_bed: (they 3.3V'd everything)
05:29 AM Tom_L: it will sinc more than it sources
05:30 AM Tom_L: it's good to have someone to compare code with
05:30 AM Tom_L: i wouldn't know if i was doing it right or wrong
05:31 AM rue_bed: I'm having a time thinking up anything more to do with 2 buttons and 2 leds
05:31 AM rue_bed: lack of creativity I'm sure
05:31 AM Tom_L: switching from mirc to hexchat fixed the hdd access issue
05:31 AM rue_bed: remember rifraf and the POV lights?
05:31 AM rue_bed: ooooo
05:31 AM Tom_L: no
05:32 AM Tom_L: mine has a pwm led example
05:32 AM rue_bed: we taught him how to flash an led, told him to go for it and he came back with a POV led message thing?
05:32 AM rue_bed: oh yea, pwm
05:32 AM rue_bed: k
05:32 AM Tom_L: huh
05:33 AM Tom_L: also has ps2 kbd code that displays on the 7seg
05:34 AM rue_bed: ok
05:34 AM rue_bed: I wonder what the levels are on the ps2
05:34 AM Tom_L: 5v
05:34 AM Tom_L: mine uses resistors iirc
05:34 AM rue_bed: k
05:34 AM Tom_L: it would be in the schematic in that link
05:35 AM rue_bed: they will have clamping diodes on the fpga
05:35 AM rue_bed: so with the right series resistor its prolly all good
05:35 AM rue_bed: I'm gettin pretty stoked about writing my own code editor
05:36 AM rue_bed: I keep thinking of things I want
05:37 AM Tom_L: should finish getting ready
05:40 AM rue_bed: it would sure be great if my ideas didn't keep me up all night
05:40 AM Tom_L: after this morning i've got 2 days off
05:40 AM Tom_L: short day today
05:43 AM rue_bed: would think I know what you do for work by now :)
05:43 AM rue_bed: you keep it quiet dont ya?
05:44 AM Tom_L[m]: Doesn't pertain to what I do here
05:45 AM rue_bed: its nice to have the hobby unlinked from the work
05:45 AM rue_bed: I'm kinda surprised being an electrician isn't too related
05:45 AM Tom_L[m]: Yup
05:46 AM rue_bed: wow this program I'm working on is becomming a monster
05:46 AM Tom_L[m]: U should get riot and join matrix
05:46 AM rue_bed: trying to code out ncurses
05:46 AM Tom_L[m]: Easier to share ideas
05:47 AM rue_bed: riot? matrix?
05:47 AM Tom_L[m]: Google it
05:48 AM rue_bed: you know how the instructions when your a lost kid are to stay in one place till your found?
05:48 AM rue_bed: what if its 19 years later?
05:48 AM Tom_L[m]: Heh
05:48 AM rue_bed: I usually give up on things right before they come thru for me
05:49 AM rue_bed: I should put more prescence into robotics
05:49 AM rue_bed: it was easier when I was in my shop doing electronics repairs all the time
05:50 AM Tom_L[m]: Not if you're doing a project with someone else
05:50 AM rue_bed: the group projects were great
05:51 AM Tom_L[m]: Slow typing on my phone
05:51 AM rue_bed: heh
05:51 AM Tom_L[m]: Gotta run
05:51 AM rue_bed: your supposed to turn on the voice rec'g
05:51 AM rue_bed: it cant be worse than our normal typo rate
07:21 AM Tom_L: https://about.riot.im/
07:23 AM Tom_L: you can join matrix channels or bridge to freenode and join those too
07:24 AM Tom_L: https://medium.com/@agathver/staying-always-online-in-irc-using-riot-the-right-way-d4c4ff2f43d0
07:24 AM Tom_L: i use hexchat mostly but use riot to post screenshots or code snips etc
11:07 AM rue_bed: oooh, the bot thing that makes all the people that dont talk
11:09 AM Tom_L: huh?
03:07 PM rue_mohr: damnit
03:07 PM rue_mohr: napa has no more of those gears in north america
03:07 PM rue_mohr: I cant get one and validate
03:08 PM rue_mohr: would you like to try a search of the usa napa if you have a chance, I dont know if I'm getting funneled for being in canada
04:03 PM Tom_L: gimme their pn and i will check
04:19 PM polprog: 14:17 < Tom_L> https://medium.com/@agathver/staying-always-online-in-irc-using-riot-the-right-way-d4c4ff2f43d0
04:19 PM polprog: i just run irssiproxy
04:19 PM polprog: got new VFD displays.. one is reverse
04:20 PM polprog: the grids and filaments are behind the numbers
04:20 PM polprog: maybe some gimmick to make it more readable. comes from some higher end audio gear
04:20 PM polprog: scored an encoder on the board as well
04:21 PM polprog: the place i get them counts them cheap and i just pick the VFD board off bins on the pavement
04:57 PM Tom_L: polprog, the thing about riot is you can take screenshots or post code etc very easy without using an external pastebin etc
05:02 PM polprog: oh yeah. I miss that on irc
05:03 PM polprog: irccloud seems to be handling that but i didnt like it for other reasons
05:04 PM Tom_L: i don't use riot much except for posting pics or code sometimes
05:05 PM polprog: back to vectors and shit
05:11 PM Tom_L: what sort of encoders?
05:13 PM polprog: typical 3-pin encoder. not gray code or anything like that
05:13 PM polprog: i havent played around with it
05:13 PM polprog: yet
09:28 PM rue_mohr: its grey
09:28 PM rue_mohr: middle pin is ground, you need two pullups on the outter pins
09:30 PM rue_mohr: Tom_L, me and a fellow did a bunch more fpga stuff
09:30 PM rue_mohr: lots of what you can and cant do, limited by the rate that silly program will compile
10:05 PM Tom_L: that shouldn't be a limit
10:43 PM rue_mohr: its the limit of how fast I can learn
10:43 PM rue_mohr: everything I do takes 4 minutes to compile
10:44 PM rue_mohr: clicking gneerate program file takes 4 minutes
10:45 PM Tom_L: yeah it does take a bit but it's pretty quick on my main pc
10:45 PM rue_mohr: learned more today tho
10:46 PM Tom_L: did paperwork most of the day
10:46 PM rue_mohr: today sucked, it never got light
10:47 PM rue_mohr: well
10:47 PM rue_mohr: accpet the tek scope arrived today
10:47 PM rue_mohr: :))
10:47 PM Tom_L: ooo nice
10:47 PM rue_mohr: yea, 2Gs/s
10:47 PM rue_mohr: down to 5S/s
10:48 PM rue_mohr: at 5S/s ya wish it would draw realtime