sorear changed the topic of #riscv to: RISC-V instruction set architecture | https://riscv.org | Logs: https://libera.irclog.whitequark.org/riscv
gioyik has joined #riscv
gioyik has quit [Ping timeout: 276 seconds]
jwillikers has quit [Remote host closed the connection]
tgamblin has quit [Ping timeout: 260 seconds]
jacklsw has joined #riscv
tgamblin has joined #riscv
gioyik has joined #riscv
gioyik has quit [Ping timeout: 276 seconds]
<xentrac> I guess you could implement division with an illegal instruction fault
<jrtc27> that's fine in U-mode and S-mode, but gets hairy in M-mode if you're not very careful
tgamblin has quit [Read error: Connection reset by peer]
tgamblin has joined #riscv
<xentrac> yeah, that was what I meant
___nick___ has joined #riscv
gioyik has joined #riscv
gioyik has quit [Ping timeout: 276 seconds]
PyroPeter has quit [Ping timeout: 260 seconds]
arlen_ has quit [Ping timeout: 260 seconds]
PyroPeter has joined #riscv
[itchyjunk] has quit [Quit: Leaving]
gioyik has joined #riscv
vagrantc has quit [Quit: leaving]
gioyik has quit [Ping timeout: 276 seconds]
zumbi has quit [*.net *.split]
pho has quit [*.net *.split]
mithro has quit [*.net *.split]
olofj has quit [*.net *.split]
EmanuelLoos[m] has quit [*.net *.split]
psydroid has quit [*.net *.split]
englishm has quit [*.net *.split]
kaddkaka[m] has quit [*.net *.split]
EV45 has quit [*.net *.split]
AhmedCharles[m] has quit [*.net *.split]
jcm has quit [*.net *.split]
smaeul has quit [*.net *.split]
englishm has joined #riscv
zumbi has joined #riscv
EV45 has joined #riscv
jcm has joined #riscv
smaeul has joined #riscv
olofj has joined #riscv
mithro has joined #riscv
gioyik has joined #riscv
kaddkaka[m] has joined #riscv
AhmedCharles[m] has joined #riscv
EmanuelLoos[m] has joined #riscv
pho has joined #riscv
psydroid has joined #riscv
moto-timo has quit [*.net *.split]
danielinux has quit [*.net *.split]
linkliu60 has quit [*.net *.split]
kaji has quit [*.net *.split]
ln5 has quit [*.net *.split]
khilman has quit [*.net *.split]
danielinux has joined #riscv
linkliu60 has joined #riscv
ln5 has joined #riscv
khilman has joined #riscv
ln5 is now known as Guest6567
moto-timo has joined #riscv
kaji has joined #riscv
riff-IRC has quit [Remote host closed the connection]
riff-IRC has joined #riscv
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
gioyik has quit [Quit: WeeChat 3.1]
BOKALDO has joined #riscv
winterflaw has joined #riscv
valentin has joined #riscv
BOKALDO_ has joined #riscv
hendursa1 has joined #riscv
BOKALDO has quit [Read error: Connection reset by peer]
hendursaga has quit [Ping timeout: 276 seconds]
pecastro has joined #riscv
smartin has joined #riscv
jacklsw has quit [Ping timeout: 252 seconds]
valentin has quit [Remote host closed the connection]
valentin has joined #riscv
[itchyjunk] has joined #riscv
leah2 has quit [Remote host closed the connection]
leah2 has joined #riscv
jwillikers has joined #riscv
ats has joined #riscv
BOKALDO_ has quit [Quit: Leaving]
rsalveti has joined #riscv
fabs has joined #riscv
BOKALDO has joined #riscv
fabs has quit [Remote host closed the connection]
X-Scale` has joined #riscv
X-Scale has quit [Ping timeout: 265 seconds]
X-Scale` is now known as X-Scale
fabs has joined #riscv
arlen_ has joined #riscv
jacklsw has joined #riscv
nvmd has quit [Ping timeout: 252 seconds]
compscipunk has joined #riscv
ahs3|afk is now known as ahs3
freakazoid343 has joined #riscv
freakazoid333 has quit [Ping timeout: 268 seconds]
[itchyjunk] has quit [Quit: Leaving]
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #riscv
* gordonDrogon wonders if anyone here has implemented RISC-V on the Cmod-A7 device? I've seen some "how to's" but just wondering if anyone has any first-hand hints and/or tips, or even just a "yea, works fine" sort of thing ...
leah2 has quit [Remote host closed the connection]
leah2 has joined #riscv
GenTooMan has quit [Read error: No route to host]
GenTooMan has joined #riscv
Maylay has quit [Quit: Pipe Terminated]
Maylay has joined #riscv
peepsalot has joined #riscv
peeps[zen] has quit [Ping timeout: 260 seconds]
aredridel has quit [Quit: The Lounge - https://thelounge.chat]
aredridel has joined #riscv
aredridel has quit [Client Quit]
aredridel has joined #riscv
mahmutov has joined #riscv
peeps[zen] has joined #riscv
peepsalot has quit [Ping timeout: 265 seconds]
jacklsw has quit [Quit: Back to the real life]
peeps[zen] is now known as peepsalot
Starfoxxes has quit [Ping timeout: 268 seconds]
freakazoid12345 has joined #riscv
freakazoid343 has quit [Ping timeout: 264 seconds]
Starfoxxes has joined #riscv
nvmd has joined #riscv
valentin has quit [Quit: Leaving]
mahmutov has quit [Ping timeout: 260 seconds]
freakazoid333 has joined #riscv
rvalles has quit [Quit: rvalles]
freakazoid12345 has quit [Ping timeout: 268 seconds]
TMM_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
TMM_ has joined #riscv
mahmutov has joined #riscv
freakazoid343 has joined #riscv
freakazoid333 has quit [Ping timeout: 264 seconds]
vagrantc has joined #riscv
BOKALDO has quit [Quit: Leaving]
nvmd has quit [Quit: Later, nerds.]
<geist> hmm, looks like the cmod-a7 is an artix 35klut device
<geist> no reason that couldn't punch out a sizable riscv core (or more than one)
gioyik has joined #riscv
smartin has quit [Quit: smartin]
gioyik has quit [Remote host closed the connection]
<palmer1> geist: I'm not really an FPGA guy, but assuming that's the a7-35t then it should be pretty straight-forward to put a RISC-V core on it but if you're looking for more than one or a lot of peripherals you'll need an FPGA-optimized hardware stack
gioyik has joined #riscv
<gordonDrogon> thanks - just playing with ideas - and yes, the -35t unit and maye even squeeze a VGA output on it too using the internal block ram.
<gordonDrogon> the 32-bit core with hardware mul/div is all I'm after - for now, anyway.
nvmd has joined #riscv
jimwilson_ has joined #riscv
jimwilson has quit [Remote host closed the connection]
<geist> yah based on past experience with punching out 32bit cores it should fit really easily
<geist> but as palmer1 says the peripherals you want may add enough
<palmer1> if you've got an FPGA-optimized system then just a 32-bit core should be easy and as long as it has a way to turn down the mul/div unit you should be fine
gioyik has quit [Ping timeout: 276 seconds]
pecastro has quit [Ping timeout: 246 seconds]
<gordonDrogon> it's new ground for me - essentially I want RISC-V, some GPIO like SPI to external storage, blinkenlights, and if at all possible VGA video output.
<gordonDrogon> I don't need (not want) the "IoT" stuff on other small boards and a big board that can run Linux is way OTT. This is what I'm looking at:
gioyik has joined #riscv
<somlo> what is the expectation for SMP harts' state (specifically, I have a 4-core 64-bit Rocket) right before entering BBL? Is it the same as for SMP linux (where they are expected to jump to the entry point at the same time, with a0 containing the hart id)? I.e., what should the bootcode/bios do on SMP right before entering BBL?
<somlo> I've read https://www.sifive.com/blog/all-aboard-part-6-booting-a-risc-v-linux-kernel but it covers what BBL does before starting linux, and I need to know what to do before starting BBL itself...
<palmer1> somlo: there's nothing in RISC-V for that, it's up to the SOC vendor
<palmer1> essentially anything goes in M-mode
nvmd has quit [Ping timeout: 264 seconds]
nvmd has joined #riscv
<somlo> palmer1: thanks! I'm using LiteX with the Rocket Chip (https://github.com/litex-hub/linux-on-litex-rocket), and I'm trying to write the LiteX bios bits that load and launch a BBL blob which contains an embedded DT and Linux kernel image
<somlo> so I'm trying to figure out how to line up four Rocket harts so they end up doing the right thing when entering BBL, after the blob is loaded (e.g. from sdcard or over tftp)
<palmer1> is there a reason you can't just use opensbi?
<palmer1> https://github.com/litex-hub/linux-on-litex-vexriscv#readme is 4 months old, it's vexriscv and IDK how different that will be from rocket
cwebber has quit [Ping timeout: 260 seconds]
<somlo> the only way my fpga (nexys4ddr) has enough room for more than one hart is if I leave out the FPU; I know BBL does fpu emulation in M-mode, and opensbi did not, last time I checked
<palmer1> can't you just run a rv64imac system?
<jrtc27> to answer your earlier question, bbl and opensbi both expect all harts to just jump to the entry point
<jrtc27> (which is *not* the case for linux/freebsd any more, recent sbi specs have a more sophisticated approach of having the OS ask for other harts to start at a given address)
<jrtc27> with a0=mhartid a1=dtb
<somlo> so right now I have non-zero-hartID cores spin while the bios loads a blob into main ram, then everyone jumps to the blob (bbl) start with a0 set to the hart id and a1 set to 0 (bbl has a compiled-in DTB and vmlinux)
<somlo> symptom is linux boots, but only hart 3 is available; getting PLIC and hart init errors during boot for the other harts
gioyik has quit [Ping timeout: 276 seconds]
<somlo> if I'm lucky, I screwed something up in the DTS I use with BBL (had to adapt it from what Rocket's chisel elaboration generates automatically, might have missed something)
<jrtc27> if you upload it somewhere I can take a look
chripo has quit [Quit: ""]
chripo has joined #riscv
chripo has quit [Client Quit]
chripo has joined #riscv
winterflaw has quit [Ping timeout: 276 seconds]
gioyik has joined #riscv
mahmutov has quit [Ping timeout: 264 seconds]
gioyik has quit [Ping timeout: 276 seconds]
chripo has quit [Quit: ""]
chripo has joined #riscv
gioyik has joined #riscv
drmpeg has quit [Ping timeout: 268 seconds]
jwillikers has quit [Remote host closed the connection]
drmpeg has joined #riscv
<somlo> jrtc27: thanks!
<somlo> interesting bits are in the last two commits (bios support, and keeping hart id in a0 for all non-boot cores)