ChanServ changed the topic of #glasgow to: glasgow interface explorer · code https://github.com/GlasgowEmbedded/glasgow · logs https://freenode.irclog.whitequark.org/glasgow · discord https://1bitsquared.com/pages/chat · production https://www.crowdsupply.com/1bitsquared/glasgow · CrowdSupply campaign is LIVE!
GNUmoon2 has quit [Remote host closed the connection]
GNUmoon2 has joined #glasgow
nicoo has quit [Ping timeout: 240 seconds]
nicoo has joined #glasgow
jstein has quit [Ping timeout: 272 seconds]
electronic_eel has quit [Ping timeout: 246 seconds]
electronic_eel has joined #glasgow
Snoop31232 has joined #glasgow
<Snoop31232> hello
Snoop31232 has left #glasgow [#glasgow]
PyroPeter_ has joined #glasgow
PyroPeter has quit [Ping timeout: 256 seconds]
PyroPeter_ is now known as PyroPeter
GNUmoon2 has quit [Ping timeout: 240 seconds]
GNUmoon2 has joined #glasgow
feldim2425 has quit [Ping timeout: 264 seconds]
feldim2425 has joined #glasgow
GNUmoon2 has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
DarthCloud has quit [Ping timeout: 240 seconds]
DarthCloud has joined #glasgow
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
<d1b2> <stefandeml> Hello every one, super interesting project and thanks for all the effort! quick question: how well could it be used as a logic analzyer? Like how much samples could be stored on device and fast can they be streamed to PC out the box? Is there planned support for Salea Logic? Thanks!
stefandeml has joined #glasgow
GNUmoon has quit [Remote host closed the connection]
<stefandeml> Hello every one,
<stefandeml> super interesting project and thanks for all the effort!
<stefandeml> quick question: how well could it be used as a logic analzyer?
<stefandeml> Like how much samples could be stored on device and fast can they be streamed to PC out the box?
<stefandeml> Is there planned support for Salea Logic?
<stefandeml> Thanks!
stefandeml has quit [Client Quit]
GNUmoon has joined #glasgow
<d1b2> <icb> Saleae's software is only meant to be used with their hardware. The logic analyzer applet writes VCD files that you can read with PulseView https://sigrok.org/wiki/PulseView and other open source software. The applet doesn't store samples on device, so is limited by USB throughput
<d1b2> <DX-MON> there is already the analyzer applet (glasgow run analyzer -h for more) which supports logic analysis and capture
<d1b2> <DX-MON> tbqh.. I suspect Glasgow's applet is more powerful than Saleae's analysers, or at least as powerful.. if nothing else than because you can extend the applet to do any kind of decode and triggering you like and you can use VCD viewers such as PulseView and GTKWave to apply any decoders you like.. not just the ones a company thought of for you, but any the community has written - or you are prepared to write and integrate into these tools.
futarisIRCcloud has joined #glasgow
<d1b2> <stefandeml> thanks for getting back! that looks promising. Just ordered one to play around 🙂 So I guess there is no plan to add any kind of flash which would allow storage of samples on device?
<d1b2> <DX-MON> there is flash on the board.. however that's for firmware and being able to sore a bitstream for the FPGA in case, for example, you want your Glasgow to boot as a tester for some thing and you don't want/need the PC connection so it can spit out some test sequence or test pattern and be quick-use used offline
<d1b2> <DX-MON> the two devices are labled "FX2MEM" and "ICE_MEM" fwiw
<d1b2> <DX-MON> usually, the "ICE_MEM" flash is empty though.
<d1b2> <icb> A RAM expansion board is being considered (scroll back in the channel history to see the discussion) that could buffer samples during bursts of activity. The FPGA also has a small amount of BRAM that could be used to buffer a small number of samples
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
<tomtastic> I think the Saleae stream their captures also, rather than storing anything in flash.
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
nicoo has quit [Ping timeout: 240 seconds]
alen_ has joined #glasgow
bvernoux has joined #glasgow
nicoo has joined #glasgow
nicoo has quit [Remote host closed the connection]
alen has quit [Ping timeout: 272 seconds]
GNUmoon has quit [Remote host closed the connection]
nicoo has joined #glasgow
GNUmoon has joined #glasgow
modwizcode has joined #glasgow
<kmc> DX-MON: for the record Saleae's software supports analysis plugins too https://support.saleae.com/saleae-api-and-sdk/protocol-analyzer-sdk
<d1b2> <DX-MON> til
<kmc> and they actually provide source for many (all?) of the bundled analyzers
<kmc> i've never tried to write one so I don't know how hard it is
<d1b2> <DX-MON> lots of thread-sync.. looks.. unpleasant but not unexpected
<d1b2> <DX-MON> also already spotted some really bad code in their USB analyser V_V
<d1b2> <TiltMeSenpai> oh no saelae
<d1b2> <DX-MON> definition-without-initialisation stuff
<d1b2> <TiltMeSenpai> I tried to write an LPC decoder at one point and
<d1b2> <TiltMeSenpai> not a good experience, their api documentation is pretty much "read existing decoders"
<d1b2> <TiltMeSenpai> combined with the fact that decoders are in C++, so a bug just crashes the program, not the most pleasant time
<d1b2> <DX-MON> oh.. even better.. definition of a variable in a way which actively pessimises it to be forced to the stack when it could have been registers and could even possibly been dead-code analysed out
<d1b2> <DX-MON> I'll.. close that before it drives me mad
<kmc> lol
<d1b2> <DX-MON> The decoders being written in C++ isn't itself a problem.. you can write good C++ that is hard to if not impossible to crash if you use the stdlib properly.. however.. what I've read so far there is not good C++
<d1b2> <DX-MON> it's C++ that's "good enough" to make a product while papering over the crimes they're committing
<d1b2> <TiltMeSenpai> well I have no doubt a more skilled c++ programmer would have less of a problem with them written in C++, but I barely count as competent
<d1b2> <DX-MON> ie, brittle
<d1b2> <TiltMeSenpai> I
<d1b2> <TiltMeSenpai> I'm aware of the syntax and sometimes write programs that don't crash
<d1b2> <DX-MON> heh, fair.. you should come watch my streams sometime as I write a lot of C++ and I aim for them to be educational
<kmc> stefandeml: your question about streaming samples to flash makes me wonder how hard it would be to attach a SATA drive to a Glasgow :)
<kmc> probably not that hard, since it's only 2 differential pairs
<d1b2> <DX-MON> probably doable via the LVDS header and a SERDES on an add-on board.. but I imagine it wouldn't be particularly fun to do
<kmc> yeah
<kmc> I guess the FPGA clock is too slow to do it directly
<d1b2> <DX-MON> it's "only" 2 diff pairs.. but they are rather fast at 1.5 or 3GHz IIRC
<d1b2> <DX-MON> (for gen 2, 3GiB/s, and gen 3 6GiB/s respectively)
<kmc> and there's no serdes built into the iCE40?
<d1b2> <DX-MON> if there is.. I don't recall it being exposed on the LVDS header.. and even then I wouldn't be surprised if it's not quite fast enough
<modwizcode> I was trying to nail down the actual signalling rates for SATA but it seems it's faster than GbE and whitequark already mentioned that that's not possible.
<mwk> 1.5gbps
<mwk> and yeah, not possible to directly interface
<d1b2> <DX-MON> yay, I did remember it correctly ^_^
<mwk> just stream to the host and let it save stuff to sata
<d1b2> <DX-MON> you can probably do it by LVDS signalling over 8 pairs in each direction to a SERDES.. because that's an effective data rate divide of 8
<d1b2> <DX-MON> but yeah.. stream to host.. easier, better
<d1b2> <TiltMeSenpai> I think the ice40's have a gearbox but not a full blown serdes
<d1b2> <TiltMeSenpai> like the ecp5 serdes also has rx cdr and stuff
<modwizcode> I can't keep lattice's product catalog straight
<d1b2> <TiltMeSenpai> also the ice40 gearbox wouldn't be anywhere close enough to handle 1.5gbps
<modwizcode> it's weird to me to see a device without any serdes peripherals
<d1b2> <TiltMeSenpai> or looking at the nmigen code, maybe ice40 only has ddr?
<mwk> nmigen has patchy support for xdr primitives either way, so don't trust it
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
<modwizcode> I couldn't find any docs on the Lattice site that implied any support beyond DDR primitives
<d1b2> <daveshah> Yeah only DDR is supported
blysmth has joined #glasgow
blysmth has left #glasgow ["Leaving"]
GNUmoon has quit [Ping timeout: 240 seconds]
bvernoux has quit [Quit: Leaving]
DarthCloud has quit [Ping timeout: 240 seconds]
DarthCloud has joined #glasgow
puckipedia has joined #glasgow
puck has quit [Ping timeout: 265 seconds]
puckipedia is now known as puck
egg|anbo|egg has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
<electronic_eel> just showed my glasgow to a friend and noticed that we do not have a url with more info on the pcb
<electronic_eel> googling yielded the city first
<electronic_eel> so how about putting a url on the back?
<electronic_eel> probably a github shortener
<electronic_eel> what i did was i gave them the pcb "here, you can solve your problem with it" and watched what they did and what problems they encountered
<electronic_eel> took them some unnecessary time finding the glasgow github page with the install instructions. this is what i'd like to improve with the url on the silkscreen
<electronic_eel> installing the python stuff and using it went well afterwards
<uberushaximus> https://git.io/JtvvZ ?
<electronic_eel> yeah, something like that
<kmc> could have a QR code as well
<kmc> wonder how much it would cost to buy glasgow.io
<d1b2> <Attie> esden registered glasgow-embedded.org, and aiui plans to transfer to whitequark after the cs campaign... would be my vote I think.