whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · https://www.crowdsupply.com/1bitsquared/glasgow · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
<_whitenotifier-2> [glasgow] Sazzach commented on pull request #742: access.direct.demultiplexer: add ability for applets to override default USB transfer settings. - https://github.com/GlasgowEmbedded/glasgow/pull/742#issuecomment-2832847119
urja has quit [Read error: Connection reset by peer]
urja has joined #glasgow
redstarcomrade has joined #glasgow
andymandias has quit [Remote host closed the connection]
andymandias has joined #glasgow
flummer has joined #glasgow
marcan has quit [Quit: Now where's my screwdriver...]
redstarcomrade has quit [Read error: Connection reset by peer]
figushki has joined #glasgow
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<_whitenotifier-2> [glasgow] whitequark commented on pull request #742: access.direct.demultiplexer: add ability for applets to override default USB transfer settings. - https://github.com/GlasgowEmbedded/glasgow/pull/742#issuecomment-2833565849
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
figushki has joined #glasgow
figushki has quit [Client Quit]
figushki has joined #glasgow
figushki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
redstarcomrade has quit [Read error: Connection reset by peer]
<asjackson> im writing (or at least trying :D) a gpib controller applet and im a bit confused about buffers and pullup resistors. if i have an io buffer and im using the oe line, does that disable the pull up resistors when oe is low?
whitequark[cis] has joined #glasgow
<whitequark[cis]> the pulls are separate
<whitequark[cis]> and they're fixed for the duration of an applet's runtime
<whitequark[cis]> (right now anyway, this is a software limitation)
<asjackson> ah i see
<asjackson> i wonder if actually even possible to do gpib at the moment then
<urja> what do you need to disable the pulls for? I mean, if you enable the output driver, it will happily override the pull so ... ?
<urja> (I'd need to check GPIB spec myself...)
<asjackson> my understanding is that which ever device is talking enables pull up resistors on the input lines (but it's very likely ive misunderstood something)
<_whitenotifier-2> [glasgow] isabelburgos opened pull request #787: applet.program.ice40_flash: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/787
<_whitenotifier-2> [glasgow] isabelburgos opened pull request #788: applet.interface.jtag_pinout: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/788
<urja> But yeah, I was reading the SPI stuff and expecting the FPGA to manipulate the pulls and then went like ... wait, no, umm.
<_whitenotifier-2> [glasgow] isabelburgos opened pull request #789: Isabelburgos/spi flashrom padless - https://github.com/GlasgowEmbedded/glasgow/pull/789
<urja> It could operate the I2C bus to the pull drivers, but then you'd have the "fun" of being multi-master I2C with the FX2... or it could ask the FX2 to change the pulls... or it could ask the host program to ask the FX2 to change the pulls (which is electrically to me the most ridiculous thing but ina software way the most likely to happen, to me :P)
<_whitenotifier-2> [glasgow] isabelburgos reviewed pull request #788 commit - https://github.com/GlasgowEmbedded/glasgow/pull/788#discussion_r2062711909
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
<_whitenotifier-2> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-787-d6c9b7e282fc02554ac184d93f3647ca198487cc - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-789-5a3b2c5b561a00ee2955acbb300a39211835cb72 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/d6c9b7e282fc...5a3b2c5b561a
<_whitenotifier-2> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-787-d6c9b7e282fc02554ac184d93f3647ca198487cc - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] whitequark closed pull request #787: applet.program.ice40_flash: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/787
<_whitenotifier-2> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 3 commits to main [+1/-0/±2] https://github.com/GlasgowEmbedded/glasgow/compare/5a3b2c5b561a...9103d5e8ad6b
<_whitenotifier-2> [GlasgowEmbedded/glasgow] isabelburgos 09a6af5 - applet.interface.spi_flashrom: modify to use port groups
<_whitenotifier-2> [GlasgowEmbedded/glasgow] isabelburgos 2f3548d - applet.interface.spi_flashrom: add build test
<_whitenotifier-2> [GlasgowEmbedded/glasgow] isabelburgos 9103d5e - applet.memory._25x: modify to use port groups
<_whitenotifier-2> [glasgow] whitequark reviewed pull request #788 commit - https://github.com/GlasgowEmbedded/glasgow/pull/788#discussion_r2062729702
<_whitenotifier-2> [glasgow] whitequark closed pull request #789: applet.interface.spi_flashrom: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/789
<_whitenotifier-2> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-789-5a3b2c5b561a00ee2955acbb300a39211835cb72 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-788-9103d5e8ad6b7af8df0570ada1d21cf7d4e3eada - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±1] https://github.com/GlasgowEmbedded/glasgow/compare/9103d5e8ad6b...3761cf6e05bd
<_whitenotifier-2> [GlasgowEmbedded/glasgow] isabelburgos 3761cf6 - applet.interface.jtag_pinout: modify to use port groups
<_whitenotifier-2> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-788-9103d5e8ad6b7af8df0570ada1d21cf7d4e3eada - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] whitequark closed pull request #788: applet.interface.jtag_pinout: modify to use port groups - https://github.com/GlasgowEmbedded/glasgow/pull/788
<_whitenotifier-2> [glasgow] whitequark opened pull request #790: Remove deprecated way to instantiate pin buffers - https://github.com/GlasgowEmbedded/glasgow/pull/790
<_whitenotifier-2> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-790-3761cf6e05bd712c1fe29c2eaa1b038dd96b4988 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±3] https://github.com/GlasgowEmbedded/glasgow/compare/3761cf6e05bd...b404cd1eb3cb
<_whitenotifier-2> [GlasgowEmbedded/glasgow] whitequark b404cd1 - software: remove deprecated way to instantiate pin buffers.
<_whitenotifier-2> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-790-3761cf6e05bd712c1fe29c2eaa1b038dd96b4988 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] whitequark closed pull request #790: Remove deprecated way to instantiate pin buffers - https://github.com/GlasgowEmbedded/glasgow/pull/790
<_whitenotifier-2> [glasgow] whitequark closed issue #599: Migrate away from deprecated `Pads`/`get_pads` mechanism - https://github.com/GlasgowEmbedded/glasgow/issues/599
<asjackson> i gave up trying to do bidrectional and just doing listen only worked pretty nice! screenshot from tds420a https://usercontent.irccloud-cdn.com/file/yc9lZjep/image.png
<whitequark[cis]> wow, you got way further with it than i ever did
<asjackson> i have messed about with gpib quite a bit in the past. helped a friend with an arduino implementation, and later wrote a 2.11BSD driver for a PDP-11 GPIB controller card :D
<asjackson> happy this is working though
<asjackson> i don't think the code is too gross either
<asjackson> (although i dont know what im doing with the glasgow so... :D)
<whitequark[cis]> i got defeated by the GPIB spec
<whitequark[cis]> i have some GPIB devices though so i would definitely be willing to review and test a prospective applet
redstarcomrade has quit [Read error: Connection reset by peer]
<asjackson> it's a shame it's listen only, would love to be able to use it bidirectional, but currently i guess that will need an external hat
<whitequark[cis]> how so?
<whitequark[cis]> i am pretty sure nothing in the spec requires any additional logic
<asjackson> the pull up resistors are fixed
<whitequark[cis]> and?
<asjackson> which ever device is talking needs to handle the pull up of certain lines i think
<asjackson> as you said it would need software changes
<asjackson> idk how to do that :D
<whitequark[cis]> hm
<whitequark[cis]> if you didn't mind a bit of delay you could just call a python method that changes pull resistors whenever you switch state
<whitequark[cis]> like, right now
<asjackson> oh really
<asjackson> i'd like to try that, although not tonight, odd work tomorrow though 😎
<whitequark[cis]> await device.set_pulls(args.port_spec, args.pin_blah.number) i think
<asjackson> OH
<whitequark[cis]> * await device.set_pulls(args.port_spec, high={args.pin_blah.number}) i think
<asjackson> is it that easy, ok yeah i can do that
<asjackson> i pretty much implemented what I THINK is bidirectional, and then deleted a bunch of stuff to get it listen only
<asjackson> so maybe it'll be quite quick
<whitequark[cis]> this isn't a fantastic interface because you would like, override pulls any other applet does. but we don't have multi-applet support yet anyway
<asjackson> this is the listen only applet https://www.irccloud.com/pastebin/0h2UvUu5/
<whitequark[cis]> oh that's not bad at all
<asjackson> heavily inspired by uart
<asjackson> i have had lots of fun figuring out amaranth this weekend (and a bit last weekend with the logic analyzer triggering stuff)
<whitequark[cis]> GPIBInterface should be called GPIBSubtarget, and the UART applet does a dirty thing where it directly returns the stuff demultiplexer.claim_interface returns
<asjackson> ah right
<whitequark[cis]> which isn't intended to be applet-end-user-exposed
<whitequark[cis]> and weirds people out sometimes
<whitequark[cis]> i should fix that actually
<whitequark[cis]> but yeah it just calls await device.set_pulls when you do claim_interface(pull_high=)
<asjackson> i see!
<whitequark[cis]> modulo some stuff you can see in the implementation
<asjackson> i think i could get that working tomorrow
<whitequark[cis]> like handling CLI-level pin inversion
<whitequark[cis]> nice!
<asjackson> Then I need to fix this abomination of a wiring harness thing hahaha https://usercontent.irccloud-cdn.com/file/8Pxbw88C/IMG_5168.JPG
<whitequark[cis]> owie, that's a hedgehog all right
<_whitenotifier-2> [glasgow] whitequark opened pull request #791: Remove "analyzer throttle" - https://github.com/GlasgowEmbedded/glasgow/pull/791
<_whitenotifier-2> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-791-b404cd1eb3cb4ae4ef57934dc6fb5f5613d23422 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] whitequark opened pull request #792: Modernize the UART applet - https://github.com/GlasgowEmbedded/glasgow/pull/792
<whitequark[cis]> okay, finally modernized the UART applet sources
<whitequark[cis]> so, thinking about upgrading the whole multiplexer/demultiplexer business, which is pretty unpleasant to use or hack on
<_whitenotifier-2> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 1 commit to main [+0/-0/±2] https://github.com/GlasgowEmbedded/glasgow/compare/b404cd1eb3cb...8dc3d8ff2945
<_whitenotifier-2> [GlasgowEmbedded/glasgow] whitequark 8dc3d8f - software: remove "analyzer throttle".
<_whitenotifier-2> [glasgow] github-merge-queue[bot] deleted branch gh-readonly-queue/main/pr-791-b404cd1eb3cb4ae4ef57934dc6fb5f5613d23422 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [glasgow] whitequark closed pull request #791: Remove "analyzer throttle" - https://github.com/GlasgowEmbedded/glasgow/pull/791
<_whitenotifier-2> [glasgow] whitequark synchronize pull request #792: Modernize the UART applet - https://github.com/GlasgowEmbedded/glasgow/pull/792
redstarcomrade has joined #glasgow
redstarcomrade has quit [Changing host]
redstarcomrade has joined #glasgow
<_whitenotifier-2> [glasgow] whitequark synchronize pull request #792: Modernize the UART applet - https://github.com/GlasgowEmbedded/glasgow/pull/792
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
<asjackson> if i can get gpib working properly tomorrow is it worth doing the bus and interface as gateware? there are lots of other "things" that sit on top of gpib, including some weird floppy drives :)
<_whitenotifier-2> [glasgow] whitequark synchronize pull request #792: Modernize the UART applet - https://github.com/GlasgowEmbedded/glasgow/pull/792
<whitequark[cis]> <asjackson> "if i can get gpib working..." <- yeah, let's discuss that
<whitequark[cis]> I would like the code to be in a good state but generally, yes this is something I want
<_whitenotifier-2> [glasgow] whitequark synchronize pull request #792: Modernize the UART applet - https://github.com/GlasgowEmbedded/glasgow/pull/792
<_whitenotifier-2> [glasgow] github-merge-queue[bot] created branch gh-readonly-queue/main/pr-792-8dc3d8ff2945e803522b5fde21b0253eac320445 - https://github.com/GlasgowEmbedded/glasgow
<_whitenotifier-2> [GlasgowEmbedded/glasgow] github-merge-queue[bot] pushed 2 commits to main [+0/-0/±2] https://github.com/GlasgowEmbedded/glasgow/compare/8dc3d8ff2945...05fd2d79e38f
<_whitenotifier-2> [GlasgowEmbedded/glasgow] whitequark b74fc92 - applet.interface.uart: modernize.
<_whitenotifier-2> [GlasgowEmbedded/glasgow] whitequark 05fd2d7 - CI: drop pypy-3.9.