#garfield Logs

Feb 02 2020

#garfield Calendar

02:59 AM rue_shop2: assign U8_47 = 0 ; // G
03:04 AM rue_shop2: assign U8_49 = 1 ; // F
03:04 AM rue_shop2: assign U8_51 = 1 ; // E
03:04 AM rue_shop2: assign U8_53 = 1 ; // D
03:04 AM rue_shop2: assign U8_55 = 1 ; // C
03:04 AM rue_shop2: assign U8_57 = 1 ; // B
03:04 AM rue_shop2: assign U8_59 = 1 ; // A
03:11 AM Tom_L: thanks
03:11 AM Tom_L: what pins are your regular leds on?
03:11 AM Tom_L: or did you unhook em for those
03:13 AM rue_shop2: no, their soldered on
03:13 AM rue_shop2: I might throw in the towel on the fpga tonight
03:13 AM rue_shop2: I'm trying to make flipflops and its being stupid
03:14 AM rue_shop2: if it optimizes out EVERYTHING, it complains it cant find the net definitions
03:14 AM rue_shop2: because their errors are wrong
03:14 AM Tom_L: i'm not staying up anyway
03:14 AM rue_shop2: frustrating, but I understand what happening
03:14 AM Tom_L: got up to make sure my kid gets up for work
03:15 AM rue_shop2: lots of the errors from this thing are just wrong
03:15 AM Tom_L: i'll fix up a ucf for yours in the morning
03:15 AM Tom_L: yeah well, guess who wins that one?
03:16 AM rue_shop2: and I'v realized you dont need to declare signals you use
03:16 AM rue_shop2: meaning if you make a typo, it just does somethig you didn't want it to
03:16 AM Tom_L: just IO mostly i think
03:16 AM Tom_L: you mean in the function header?
03:17 AM rue_shop2: needing to hit ctrl-c to copy is going to drive me crazy too
03:17 AM rue_shop2: FF74v74 test (1, 1, clkdown[24], tqn, tq, tqn);
03:17 AM rue_shop2: if I dont declare tq and tqn, they just exist anyhow
03:18 AM Tom_L: you have to hit ctrl-c ? i don't remember doing that but i do sometimes anyway
03:18 AM rue_shop2: to copy
03:18 AM Tom_L: right
03:18 AM rue_shop2: under linux, it should copy when I just select the text
03:18 AM Tom_L: huh i thought the mouse would take care of that
03:18 AM Tom_L: oh
03:18 AM rue_shop2: but I got this file way too complex
03:18 AM rue_shop2: I have to tear it all down and start again
03:18 AM Tom_L: i was wondering
03:19 AM Tom_L: you should make it modular
03:20 AM Tom_L: put the 7seg in a file for instance and call it with an instance
03:20 AM Tom_L: then you'll have it to re'use
03:20 AM rue_shop2: it is
03:20 AM Tom_L: k
03:20 AM rue_shop2: but it doesn't matter, I"m kinda building things I can make a library of
03:21 AM rue_shop2: but arg, its being stupid
03:21 AM Tom_L: you figure out the neg logic crap?
03:21 AM rue_shop2: and there is an inversion thing I have to figure out
03:21 AM rue_shop2: no, something _IS_ wrong
03:21 AM rue_shop2: stuff that should be working isnt
03:21 AM Tom_L: i don't know exactly where it does it, i just know on my mill if i use a FPGA pin directly i have to reverse it
03:22 AM rue_shop2: inputs and outputs make sense
03:22 AM rue_shop2: but the behaviour of the RS flipflop seems to be wrong
03:22 AM rue_shop2: that is super simple and should not be a problem
03:22 AM rue_shop2: I'm fustrated at it and want to work on something else for a while
03:23 AM rue_shop2: if verilog wasn't stupid about me combining edge triggers I wouldn't be doing all this
03:23 AM rue_shop2: I have to use logic cause its being stupid
03:23 AM Tom_L: https://electrofriends.com/source-codes/digital-electroninc/verilog-hdl/verilog-hdl-program-for-r-s-flip-flops/
03:23 AM rue_shop2: nobody knows that RS flipflops can have set and reset inputs
03:23 AM Tom_L: see if it looks anything like yours
03:24 AM rue_shop2: I might read it later, right now I dont wanna see anyone elses wrong stuff
03:24 AM Tom_L: that one may not have s rs
03:24 AM rue_shop2: module RSFF(input r, input s, output q, output qn ) ;
03:24 AM rue_shop2: nor G1 (q, s, qn);
03:24 AM rue_shop2: nor G2 (qn,r, q);
03:24 AM rue_shop2: endmodule
03:24 AM rue_shop2: it doesn't, mine is simpler
03:24 AM rue_shop2: but like I say, I'm done with it for right now
03:25 AM Tom_L: k
03:25 AM Tom_L: well i'm goin back to bed for a while
03:25 AM rue_shop2: its only 1am, I need to get into something for the night
03:26 AM Tom_L: 3 here
03:27 AM Tom_L: what pins are your single leds on?
03:27 AM Tom_L: i'll fix up a file later on
11:00 AM rue_bed: NET "led0" LOC = T9 | IOSTANDARD = SDIO;
11:00 AM rue_bed: NET "led1" LOC = R9 | IOSTANDARD = SDIO;
11:00 AM rue_bed: NET "bluebtn" LOC = T8 | IOSTANDARD = SDIO | PULLUP;
11:00 AM rue_bed: NET "redbtn" LOC = R7 | IOSTANDARD = SDIO | PULLUP;
11:01 AM rue_bed: I need to do a project cleanup and start again with the flip flops and gate logic
11:01 AM rue_bed: gonna work on the cnc motor driver today
11:56 AM Tom_L: i think i have those pins, didn't you put an external bar led on it or did you take that off in place of the 7seg?
11:57 AM Tom_L: so the bar leds is the only one i'm lacking i think
11:57 AM Tom_L: oh and the anode/cathode lines to the 7seg
11:58 AM rue_mohr: the 7 seg ate it
11:58 AM rue_mohr: I only broke out 10 signal pins origionally
11:59 AM rue_mohr: I have not yet used the next 10 I broke out
12:01 PM Tom_L: so then all i need is the 4 anode lines
12:01 PM Tom_L: or cathode, whichever yours are
12:04 PM rue_mohr: I have to rename all the project files
12:04 PM rue_mohr: can never find the jcf
12:04 PM Tom_L: why?
12:05 PM rue_mohr: all the anmes done make sense
12:05 PM rue_mohr: should all just be called main
12:05 PM rue_mohr: there is NO reason to have all the names project specific, their in folders
12:05 PM Tom_L: the rest of them take on the name of your first module name in case you didn't notice
12:05 PM rue_mohr: stand by
12:05 PM rue_mohr: yea, I need to restart with "main"
12:06 PM rue_mohr: http://paste.debian.net/1128875/
12:06 PM rue_mohr: thats the ucf
12:06 PM rue_mohr: assign U8_41 = digSel[0] ;
12:06 PM rue_mohr: assign U8_43 = digSel[1] ;
12:06 PM rue_mohr: assign U8_45 = digSel[2] ;
12:07 PM rue_mohr: those are the 3 digit selects
12:11 PM Tom_L: oh yours is 3 dig, not 4
12:11 PM rue_mohr: yup
12:11 PM rue_mohr: after 7 segments and 3 columns, my 10 pins ran out
12:14 PM Tom_L: those are not pins are they?
12:14 PM Tom_L: oh nevermind
12:16 PM Tom_L: P4 P5 M7
12:17 PM rue_mohr: sure
12:18 PM rue_mohr: take it for what it does tho
12:18 PM Tom_L: just wanna keep track in case i sent you one
12:27 PM Tom_L: what's the driver for, the spindle?
12:30 PM rue_mohr: the axii
12:30 PM rue_mohr: smaller, high rpm motors
12:31 PM Tom_L: gonna gear em down?
12:32 PM rue_mohr: lots
12:32 PM rue_mohr: peak 8k
12:34 PM Tom_L: what are those out of?
12:38 PM rue_mohr: :)
12:38 PM rue_mohr: shopvac...
02:01 PM rue_mohr: heh
03:11 PM Tom_L: gawd it's nice out today
03:11 PM Tom_L: sunny and 73°F
05:30 PM rue_mohr: yea, I just took a walk to see the road washout down the street
05:31 PM Tom_L: really?
05:31 PM Tom_L: how bad is that?
05:31 PM Tom_L: is your road paved?
06:35 PM rue_mohr: half one lane is gone for sure
06:35 PM rue_mohr: couldn't get a closup
06:35 PM rue_mohr: they were bringing in a beam to strap up the gas and water line
07:07 PM Tom_L: lots of rain?
07:33 PM rue_mohr: YUP
07:37 PM Tom_L: gonna be stranded?
08:11 PM rue_mohr: nope
08:11 PM rue_mohr: motor driver tests are going good
08:11 PM Tom_L: great
08:41 PM rue_shop1: this week I'll see what I can build back up with the fpga
09:30 PM rue_shop1: oh cool
09:37 PM Tom_L: ?
09:38 PM rue_shop1: I put away 4 24V 25A supplies
09:38 PM rue_shop1: which is like, exactly how many I need for this
09:38 PM rue_shop1: *for* a large cnc
09:38 PM Tom_L: heh
09:39 PM Tom_L: you won't need that many amps
09:39 PM Tom_L: could use more v though
09:39 PM Tom_L: 24 is respectable
09:39 PM rue_shop1: I'll see
09:39 PM rue_shop1: at 24V the motors do about 8k
09:39 PM rue_shop1: with room for loading
09:39 PM Tom_L: if i had it, i'd be running closer to 60-70v
09:40 PM Tom_L: oh that's right you're doing servo not stepper
09:41 PM rue_shop1: yup
09:42 PM Tom_L: so you should be looking closer to 300v :)
09:44 PM rue_shop1: hah
09:45 PM Tom_L: i think that's about where the big ones run...
09:45 PM rue_shop1: 333rpm/v
09:46 PM Tom_L: the machines at my kid's work run 400+ i'm @20k rpm on aluminum all day
09:46 PM Tom_L: * IPM
09:47 PM Tom_L: but they got ~20hp spindles too
09:51 PM rue_shop1: oof
09:51 PM rue_shop1: I had a chance to get a 5HP compressor for $250 on sat. I passed it up, might hate myself later
09:52 PM Tom_L: i've had a sanborn 5hp for quite a while
09:52 PM Tom_L: good 20-25yrs or more
09:52 PM Tom_L: 80gal
09:52 PM rue_shop1: I still have a bigger one sitting outside
09:52 PM Tom_L: 2 stage
09:52 PM rue_shop1: this one was 100gal, but yar
09:53 PM Tom_L: 170psi
09:53 PM rue_shop1: there are things it would be nice for
09:53 PM Tom_L: been a good compressor for sure
09:53 PM rue_shop1: having to feed it would be annoying
09:53 PM rue_shop1: but I'v realized that I should grab tings for other people too
09:53 PM Tom_L: spraying HVLP takes all it's got
09:54 PM Tom_L: we switched to vacuum cleaner pumps for that finally for the volume
09:54 PM rue_shop1: lots of stages
09:54 PM Tom_L: those do high volume but little pressure which is ideal for that
09:56 PM Tom_L: don't do any spraying anymore though
09:57 PM rue_shop1: and I learned why this computer is so slow
09:57 PM rue_shop1: its completely memory starved
10:06 PM Tom_L: :=(
10:06 PM Tom_L: yeah i suppose webpack would be fairly memory intensive
10:07 PM rue_shop1: thats the other computer
10:07 PM Tom_L: oh
10:07 PM rue_shop1: this one has 2G of ram
10:08 PM rue_shop1: its using over 500M of swap
10:08 PM Tom_L: my main one has 16
10:09 PM Tom_L: and ssd which helps the most i think
10:09 PM Tom_L: i remember thinking 640k was alot
11:13 PM rue_shop1: oo I got a great opto circuit
11:20 PM rue_shop1: this is kinda a game changer...
11:20 PM rue_shop1: I can get this opto up to 500khz
11:20 PM rue_shop1: 50% duty square wave, but wow