<tnt> lol ... icecube doesn't recognize PIN_TYPE(6'd52) ... only works with PIN_TYPE(6'b110100)
<daveshah> I remember this issue when trying to get Yosys synthesised designs to build in icecube
<daveshah> It's very fussy about data types
emeb has left ##openfpga [##openfpga]
catplant has quit [Ping timeout: 268 seconds]
catplant has joined ##openfpga
unixb0y has quit [Ping timeout: 250 seconds]
unixb0y has joined ##openfpga
Miyu has quit [Ping timeout: 246 seconds]
balrog has quit [Quit: Bye]
balrog has joined ##openfpga
catplant has quit [Ping timeout: 246 seconds]
balrog has quit [Ping timeout: 268 seconds]
balrog has joined ##openfpga
catplant has joined ##openfpga
rohitksingh_work has joined ##openfpga
fibmod is now known as fmod
<catplant> +
fmod is now known as fibmod
<SolraBizna> cursed idea #22: slightly increasing supply voltage to the CPU on one edge of the clock, to slightly improve the address setup time
<SolraBizna> bah, doesn't help enough
Flea86 has joined ##openfpga
rohitksingh_wor1 has joined ##openfpga
rohitksingh_work has quit [Ping timeout: 244 seconds]
Bike has quit [Quit: Lost terminal]
SpaceCoaster has quit [Ping timeout: 268 seconds]
SpaceCoaster has joined ##openfpga
futarisIRCcloud has joined ##openfpga
rohitksingh_work has joined ##openfpga
rohitksingh_wor1 has quit [Ping timeout: 250 seconds]
sgstair has quit [Read error: Connection reset by peer]
sgstair has joined ##openfpga
laintoo has quit [Ping timeout: 245 seconds]
GuzTech has joined ##openfpga
laintoo has joined ##openfpga
Stary has quit [Quit: ZNC - http://znc.in]
Stary has joined ##openfpga
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
<RaYmAn> whitequark: do you have a "golden sample" firmware hex? I think something is going wrong with my self-built. I haven't succeeded in flashing the eeprom with glasgow after it broke, but I just tried with fx2tool and it wrote the eeprom just fine (with the glasgow hex. I suspect if I write the config too, it'd actually boot)
<tnt> Glasgow uses slave-fifo synchronous mode right ?
<RaYmAn> whitequark: bingo, used the one you posted for miek yesterday. Now it flashes oO
sgstair has quit [Disconnected by services]
sgstair has joined ##openfpga
<whitequark> tnt: yes
<whitequark> RaYmAn: which sdcc version?
<RaYmAn> my original version when it sort of worked was Ubuntu version (3.6 I think). latest I admit I built with 3.8 which I guess isn't supported
<RaYmAn> it's just really bizarre it mostly worked except apparently flashing
<RaYmAn> thinks were behaving so weird I went WTF I guess.
<whitequark> RaYmAn: 3.8 is definitely suported
<whitequark> *supported
<whitequark> I build with 3.8
m_t has joined ##openfpga
<RaYmAn> then I'm Lost
<RaYmAn> I took the ihex you posted and everything instantly worked
<whitequark> hmmm
<whitequark> interesting
<whitequark> how did flashing break?
m_t has quit [Max SendQ exceeded]
m_t has joined ##openfpga
<RaYmAn> after verifying with fx2tool, it claimed to have flashed, verification failed, but literally nothing was written
<whitequark> hm
<whitequark> which python-libusb version do you have?
<RaYmAn> I saw the discussion from yesterday and installed latest from pip
<whitequark> ok
m_t has quit [Max SendQ exceeded]
<whitequark> weird.
<RaYmAn> quite
m_t has joined ##openfpga
Richard_Simmons has quit [Remote host closed the connection]
Bob_Dole has joined ##openfpga
<tnt> whitequark: after carefully looking at the timings for both the ice and the fx2 ... I think the only option is to capture data from the fx2 on the falling edge.
<whitequark> tnt: yeah, i tried that, actually
<whitequark> but it broke really badly
<whitequark> probably because of no SB_GB_IO
<whitequark> tnt: can you please write your findings down in the issue?
<tnt> This is the output timings: https://i.imgur.com/JMSbv2P.png so that works fine the FX2 capture window is right into the ice_out data valid window.
<whitequark> ouch, transparent background
<whitequark> tnt: so, i'm doing something else right now and don't have the context ready
<whitequark> think you could put it on github or anywhere at all
<whitequark> ?
<tnt> Yeah, I'll fill it out in the issue.
<whitequark> thanks!
pie__ has joined ##openfpga
<_whitenotifier> [Glasgow] smunaut commented on issue #89: Use SB_GB_IO instead of SB_IO+SB_GB - https://git.io/fpM60
<whitequark> tnt: this is extremely helpful
<whitequark> and moreover this explains the weird behavor I'm observing with SB_GB_IO
<tnt> tx. Yeah external interfacing is always tricky in fpga because ... delays everywhere :p
<whitequark> yeah
<tnt> will you be at ccc btw ?
rohitksingh_work has quit [Read error: Connection reset by peer]
<whitequark> tnt: i don't know unfortunately
Miyu has joined ##openfpga
rohitksingh has joined ##openfpga
Flea86 has quit [Quit: Goodbye and thanks for all the dirty sand ;-)]
rohitksingh has quit [Ping timeout: 250 seconds]
m4ssi has joined ##openfpga
<tnt> So .. the CDONE pin is a global clock input .... very useful. But the SPI_SCK pin isn't. Seriously ?
<whitequark> lol
<daveshah> tnt: which ice40 is this?
<tnt> up5k. But that was actually uwg30 package.
<daveshah> oh, I wonder how that works
<daveshah> CDONE is a dedicated pin on the sg48
<daveshah> do they physically tie it together with another pin as part of the WLCSP packaging...
<tnt> Yeah no idea. And how do you use it ?
<tnt> like how do you select between cdone and user function ?
<daveshah> CDONE is open drain
<daveshah> so it is pulled low during config and then released as tristate aftwards
<tnt> Oh ... right.
<daveshah> this makes it of questionable value as an input though
<tnt> yeah ... maybe a global reset input.
<whitequark> yep
<whitequark> i actually should make it a global reset on glasgow
azonenberg_work has quit [Ping timeout: 246 seconds]
genii has joined ##openfpga
m_t has quit [Remote host closed the connection]
ym has joined ##openfpga
emeb has joined ##openfpga
rohitksingh has joined ##openfpga
emily has quit [Quit: down for repairs]
azonenberg_work has joined ##openfpga
GuzTech has quit [Quit: Leaving]
azonenberg_work has quit [Ping timeout: 250 seconds]
rohitksingh has quit [Ping timeout: 250 seconds]
emily has joined ##openfpga
pie_ has quit [Ping timeout: 256 seconds]
emily has quit [Ping timeout: 264 seconds]
emily has joined ##openfpga
azonenberg_work has joined ##openfpga
m4ssi has quit [Remote host closed the connection]
ZipCPU has quit [Quit: ZNC 1.6.4 - http://znc.in]
mumptai has joined ##openfpga
mumptai has quit [Read error: Connection reset by peer]
mumptai has joined ##openfpga
ZipCPU has joined ##openfpga
ZipCPU|Alt has joined ##openfpga
ZipCPU|Alt has quit [Remote host closed the connection]
ZipCPU|Alt has joined ##openfpga
ZipCPU|Alt has quit [Remote host closed the connection]
pie___ has joined ##openfpga
pie__ has quit [Remote host closed the connection]
eightdot has quit [Quit: leaving]
eightdot has joined ##openfpga
eightdot has quit [Client Quit]
eightdot has joined ##openfpga
eightdot has quit [Client Quit]
emily has quit [Quit: Reconnecting]
emily has joined ##openfpga
eightdot has joined ##openfpga
eightdot has quit [Client Quit]
<tnt> Do relative constraint work on 'reg' ? i.e. without having to instanciate primitives, I'd like to tell it that (1) those 8 registers need to be in 1 slice and (2) they need to be right next those other 8 registers ?
<daveshah> If it's nextpnr you are talking about
<daveshah> Yosys should hopefully keep these attributes
<daveshah> But nextpnr doesn't have any attribute for relative constraints yet
<whitequark> yosys might have them on the wrong entity
<whitequark> wire instead of reg
<whitequark> we had to tackle that for gp4par
<tnt> daveshah: oh, I thought nextpnr had relative constraints ...
<daveshah> It does
* tnt is confused
<daveshah> It just doesn't expose them externally yet
<tnt> Oh ok.
<daveshah> If nothing else because they are a bit tricky to describe generically
<tnt> I'm wondering if I can easily generate attributes value in a 'generate' look. (i.e. construct the string from a genvar)
<tnt> (going back to just instanciating DFFs )
<daveshah> I'm pretty sure last I looked at something like this I ended up just writing a Python script
<daveshah> To generate the Verilog
genii has quit [Read error: Connection reset by peer]
genii has joined ##openfpga
pie___ has quit [Remote host closed the connection]
pie___ has joined ##openfpga
Hamilton has joined ##openfpga
<tnt> yeah ... all I find on the internet doesn't seem to work with yosys. When doing things like "0" + i the attribute is no longer a string but becomes an integer / binary string.
Hamilton has quit [Quit: Leaving]
genii has quit [Read error: Connection reset by peer]