freemint__ has joined #litex
freeemint has quit [Ping timeout: 245 seconds]
freemint__ has quit [Remote host closed the connection]
freemint__ has joined #litex
freemint__ has quit [Remote host closed the connection]
freemint__ has joined #litex
<xobs> mithro: Okay! I do think I'll adopt the suggestion of _florent_ and subclass it from CSRStorage/CSRStatus, and place all fields under an `f` property.
<xobs> By the way, does anyone use an ECP5 board and have the ability to test my toolchain?
<xobs> It's basically an ECP5-equivalent of the Fomu toolchain, built for the Hackaday badge that uses an ECP5: https://github.com/xobs/ecp5-toolchain
tpb has joined #litex
<xobs> ...I've been busy with Fomu lately so I haven't had a chance to get set up, but if anyone has an ECP5 handy that'd be really useful to know if it's working!
<John_K> I just got an ULX3S, should be able to give it a shot
freemint__ has quit [Quit: Leaving]
<xobs> John_K: thanks! Let me know how it goes. Everything should be statically built for linux and windows. Just set your PATH and go.
<xobs> ...whoops. Forgot to push the branch that filed nameplates. Fixed, so now it doesn't say "Fomu" anymore.
<John_K> so I just run build.sh? documents are unclear
<John_K> or is this repo just telling me to download a prebuilt toolchain?
rohitksingh has joined #litex
<John_K> trying to build spispy with it and ecppll is missing from ProjectTrellis
<John_K> @xobs: looks like you need to include some things from ProjectTrellis and it would be nice if there was a script to download the prebuilt for you (it seems you have most of the needed logic in build.sh anyway)
<xobs> John_K: It's missing? I thought I included it... Thanks for the report.
<John_K> at least not in the 1.4 version
<xobs> Are any of the other ecp tools installed? I might've just gotten the paths wrong.
<John_K> find returns no binaries starting with "ecp"
<xobs> John_K: I'm sorry, I think the page wasn't updated yet, so maybe you downloaded the fomu toolchain that's ice40-only. Did you get it from https://github.com/xobs/ecp5-toolchain/releases?
<tpb> Title: Releases · xobs/ecp5-toolchain · GitHub (at github.com)
<xobs> The latest version is 1.3.
<John_K> ah, no
<John_K> the readme linked to ice40
<John_K> I see you've updated it
<xobs> Yeah, git is weird. Especially when it comes to tags and branches. I messed up and only pushed the tag, not the branch.
<John_K> ahh yep, been bitten by that before
<John_K> xobs: ERROR: Unable to read chipdb /usr/share/nextpnr/ecp5/chipdb-25k.bin
<John_K> checking to make sure this isn't something weird with spispy build system
<John_K> looks like an error in nextpnr-ecp5 in your toolchain
<John_K> chipdb-25k.bin doesn't appear to exist either
<xobs> John_K: Okay, that's definitely an error. Apparently when you use an external chipdb, it doesn't include it in the binary.
rohitksingh has quit [Ping timeout: 245 seconds]
rohitksingh has joined #litex
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #litex
_whitelogger has joined #litex
rohitksingh has quit [Ping timeout: 245 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 245 seconds]
futarisIRCcloud has joined #litex
CarlFK has quit [Quit: Leaving.]
<xobs> _florent_: I redid it so now it's subclassed from csrstatus and csrstorage.
<tpb> Title: dreg/dcsr.py at master · xobs/dreg · GitHub (at github.com)
<tpb> Title: valentyusb/eptri.py at 8731739397e13d41a94b6dba428be9f854a28072 · xobs/valentyusb · GitHub (at github.com)
<keesj> https://theamphour.com/456-3-discussing-fomu-with-tim-ansell-and-sean-cross/ had some talk on the whole ecosystem (including litex)
<keesj> I know some stuff was discussed here (usb->withbone) but it was also nice to hear the "use case" typeish idea
futarisIRCcloud has quit [Quit: Connection closed for inactivity]
CarlFK has joined #litex
<_florent_> xobs: that seems fine, i'll have a closer look later, just regarding the API:
<_florent_> Field should probably be renamed to DCSRField (to avoid ambiguity when others Field objects are used)
rohitksingh has joined #litex
<_florent_> also to access field, could it be: status.have instead of status.w.have and ctrl.advance instead of ctrl.r.advance?
rohitksingh has quit [Ping timeout: 265 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 240 seconds]
rohitksingh has joined #litex
<xobs> _florent_: I'm about to go to bed right now, sorry. But I wanted a short name for Fields since they get used often.
<xobs> Also, to access a field depends on whether you're writing it or reading it. CSRStorage objects that have writr_from_dev support both reading and writing, so that syntax wouldn't work.
rohitksingh has quit [Ping timeout: 246 seconds]
<xobs> Maybe we could prefix them with w_ and r_ if they're readable and writable?
rohitksingh has joined #litex
forksand has joined #litex
goran-mahovlic_ has quit [Ping timeout: 268 seconds]
goran-mahovlic has joined #litex
rohitksingh has quit [Ping timeout: 240 seconds]
<_florent_> xobs: maybe only CSRStorage with write_from_dev should have a .w: status.have (written by the logic, read by the CPU), ctrl.advance ( written by the CPU, read by the logic) ctrl.advance.w (for write_from_dev)
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 245 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 245 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 240 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Ping timeout: 245 seconds]
rohitksingh has joined #litex
rohitksingh has quit [Remote host closed the connection]
rohitksingh has joined #litex
futarisIRCcloud has joined #litex
CarlFK has quit [Quit: Leaving.]