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!
<d1b2> <icb> And someone bought 100 boards
<d1b2> <Attie> O_O really?!
<d1b2> <icb> It was at 1314, refreshed and it's at 1414 now
<d1b2> <Attie> wow, quite a jump
<d1b2> <Attie> (don't forget the +200 early bird boards!)
<d1b2> <icb> Yup
FFY00 has quit [Ping timeout: 258 seconds]
FFY00 has joined #glasgow
<whitequark> wow
<d1b2> <davoid> thx for tips! true about the SPI needing multiple data lines. I'll see if I can manage to make a SPI ctrl variant to roll several data pins
oter has joined #glasgow
mndza has quit [Ping timeout: 246 seconds]
Emantor has quit [Quit: ZNC - http://znc.in]
Emantor has joined #glasgow
<sorear> o_O
* sorear really wants to know who and why
electronic_eel has quit [Ping timeout: 265 seconds]
electronic_eel has joined #glasgow
egg|laptop|egg_ has joined #glasgow
_whitelogger has joined #glasgow
PyroPeter_ has joined #glasgow
PyroPeter has quit [Ping timeout: 240 seconds]
PyroPeter_ is now known as PyroPeter
jstein has quit [Quit: quit]
egg|laptop|egg_ has quit [Remote host closed the connection]
milos61 has joined #glasgow
milos61 has quit [Quit: Connection closed]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
diverger has joined #glasgow
bgamari has quit [Remote host closed the connection]
bgamari has joined #glasgow
<d1b2> <mwick83> Hi everyone, I'm currently working on getting SWD supported in openocd (itself) and the jtag-openocd applet. Well, basically, I got it working, but I'm unable to get a pin treated as BiDi (TMS in this case, but tried with a non-jtag one, too) in the applet. Are there any restrictions? I had a look in the schematic, and I think that should work when the corresponding DIR-pin of the Levelshifter is driven properly. Any pointers where I should have a look
<d1b2> into?
<hell__> sorear: if it's about who bought 100 boards, I presume it's someone from an organization. As to why, I have no clue (although optimistic me likes to think it's to use them for development)
* hell__ is curious and really wants to know who and why as well
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #glasgow
oter has quit [Quit: Textual IRC Client: www.textualapp.com]
simukis_ has quit [Ping timeout: 240 seconds]
bgamari has quit [Remote host closed the connection]
bgamari has joined #glasgow
mndza has joined #glasgow
revolve has joined #glasgow
simukis_ has joined #glasgow
egg|laptop|egg_ has joined #glasgow
electronic_eel has quit [Ping timeout: 246 seconds]
electronic_eel has joined #glasgow
egg|laptop|egg has quit [Ping timeout: 265 seconds]
electronic_eel has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
electronic_eel has joined #glasgow
egg|laptop|egg has joined #glasgow
DarthCloud has quit [Remote host closed the connection]
DarthCloud has joined #glasgow
egg|laptop|egg has quit [Remote host closed the connection]
revolve has quit [Read error: Connection reset by peer]
egg|laptop|egg has joined #glasgow
egg|laptop|egg has quit [Remote host closed the connection]
<d1b2> <DX-MON> @mwick83 What you want to do is look in the applet and specifically at the usage of the pin nominated as TMS at how its .i, .o and .oe signals are being used - that's the incoming, outgoing and output enable data signals
flammit has quit [Ping timeout: 272 seconds]
Qyriad has quit [Read error: Connection reset by peer]
<d1b2> <DX-MON> even if the level shifter is driven perfectly, if the FPGA isn't also switching the pin to an input, then that'd explain why you were having trouble
Qyriad has joined #glasgow
flammit has joined #glasgow
<d1b2> <mwick83> @DX-MON Yeah, I know. I did that and modified the OE, O and I logic at the TMS pin. But I can only read back what is driven at O, even though OE is low, no matter what I do externally. And reading the RTLIL is a bit had for me... Reading a technology mapped Verilog netlist is easier for me 😉
<d1b2> <DX-MON> you want to read back via the .i pin
<d1b2> <DX-MON> *sub-pin
<d1b2> <DX-MON> which goes through an IBUF from the pad of the FPGA
<d1b2> <DX-MON> the .o pin is an input into an OBUF
<d1b2> <mwick83> @DX-MON: yes, I do: in the submodule "FFSynchronizer(pads.tms_t.i, self.tms_i),"
<d1b2> <DX-MON> ok
<d1b2> <mwick83> I have the feeling that the muxing logic around the I and OBUFs is wrong...
<d1b2> <mwick83> and thas for the O and OE in the comb section: pads.tms_t.oe.eq(~self.tms_z), pads.tms_t.o.eq(self.tms),"
<d1b2> <DX-MON> well the latter has no negative effect..
<d1b2> <DX-MON> if you're holding self.tms_z so that the output enable is low (off), the value of self.tms_i will be w/e is on the physical pin
<d1b2> <DX-MON> .oe.eq(1) enables the output, and .oe.eq(0) disables it
<d1b2> <mwick83> Ha... I got an idea... I think I might be driving tms_z wrong...
<d1b2> <mwick83> I'm not too used to nMigen yet... I guess I got combinatorical and synchonous logic wrong...
<d1b2> <DX-MON> self.tms_i is synchronous to the system clock
<d1b2> <DX-MON> the OE signal is being constantly driven
<d1b2> <DX-MON> you can make changes to self.tms_z synchronously and they will immediately be applied to the OE sub-pin
<d1b2> <DX-MON> but that ~ on the front makes it so self.tms_z is active-low
<d1b2> <DX-MON> doing a m.d.sync += [self.tms_z.eq(1)] will disable output
<d1b2> <mwick83> hm, I already did it right: "m.d.sync += bus.tms_z.eq(~out_fifo.r_data[:5])"
<d1b2> <DX-MON> not sure why bus there rather than self.. but ok
<d1b2> <DX-MON> also, if you're doing that.. make it tms_oe and get rid of the ~'s there and in the comb logic (m.d.comb += [pads.tms_t.oe.eq(self.tms_oe)]) so it's easier to reason about
<d1b2> <mwick83> that's how it's done in the code already there. bus is a local shorthand vriable, which is also assigned to self.bus
<d1b2> <mwick83> yes, I would prefer oe also, bit the JTAGBus uses _z for the trst, so I wanted to be in line with the code that is already there
<d1b2> <DX-MON> that way you can say "if tms_oe is enabled, then the value in tms_o is on the pin, otherwise", etc
<d1b2> <mwick83> JTAGProbeBus is what I meant
<d1b2> <DX-MON> which applet is this exactly again?
<d1b2> <DX-MON> I'll give it a look over and see if that helps me provide any more useful advise
Stephanie has quit [Quit: Fuck this shit, I'm out!]
<d1b2> <Attie> have a look at another applet that uses the pin for bidi... e.g: I2C?
Stephie has joined #glasgow
<d1b2> <Attie> ... I2C will set the O low, and toggle OE (effectively open drain), but the concept should hold aside from that
<d1b2> <mwick83> @Attie: I already did, that's why I'm a bit puzzled, but I think I got it... My command decoding was wrong, I guess. Just checking that out
<d1b2> <Attie> nice
<d1b2> <DX-MON> looks like the person who wrote the JTAGProbeBus type was thinking in terms of 'is high-z' rather than the more natural 'is output enabled'
<d1b2> <mwick83> yes, that was it... damn ASCII codes 😉
<d1b2> <DX-MON> I think it's quite safe to depart from that way of thinking and use the nMigen way
<d1b2> <mwick83> sorry, for the noise. But talking about it often helps 😉
<d1b2> <DX-MON> aye, that's fine
<d1b2> <DX-MON> this channel is for Glasgow dev, so 🙂
analprolapse has quit [Ping timeout: 260 seconds]
<d1b2> <DX-MON> actually rather nice to hear of someone else who's working on new and improving existing applets for Glasgow
cqc has quit [Ping timeout: 260 seconds]
<d1b2> <mwick83> yeah, as an ASIC design, I usually also think about o and oe rather than high-z-ing something 😉
<d1b2> <DX-MON> b/c it's easier and less brain load, right?
analprolapse has joined #glasgow
cqc has joined #glasgow
<d1b2> <mwick83> could be, or it is just what one is used to / trained for 😉
<d1b2> <DX-MON> heh, fair
<d1b2> <mwick83> I actually plan to submit a pull request, once I got it in shape
egg|laptop|egg has joined #glasgow
egg|laptop|egg has quit [Remote host closed the connection]
egg|laptop|egg has joined #glasgow
oeuf has quit [Ping timeout: 272 seconds]
oeuf has joined #glasgow
m42uko_ is now known as m42uko
umarcor has joined #glasgow
samlittlewood has quit [Read error: Connection reset by peer]
samlittlewood has joined #glasgow
oeuf has quit [Read error: Connection reset by peer]
umarcor|2 has quit [Ping timeout: 246 seconds]
egg|laptop|egg has quit [Remote host closed the connection]
mndza has quit [Read error: Connection reset by peer]
mndza has joined #glasgow
ktemkin has quit [Read error: Connection reset by peer]
deanforbes has quit [Read error: Connection reset by peer]
ktemkin has joined #glasgow
yuriks has quit [Read error: Connection reset by peer]
deanforbes has joined #glasgow
yuriks has joined #glasgow
evck_ has quit [Ping timeout: 240 seconds]
evck_ has joined #glasgow
jstein has joined #glasgow
egg|laptop|egg has joined #glasgow
egg|laptop|egg has quit [Remote host closed the connection]
<_whitenotifier> [glasgow] mwick83 opened pull request #266: applet.interface.jtag_openocd: Add SWD support - https://git.io/Jt4AF
<_whitenotifier> [glasgow] mwick83 opened pull request #267: applet.interface.jtag_openocd: Add option to ignore unsupported commands - https://git.io/Jt4xz