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>
...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?
<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]