*** tpb has joined #tomu | 00:00 | |
*** xkapastel has joined #tomu | 00:40 | |
xobs | vesim: Hooray! Glad it's working -- that's a big improvement :) | 01:07 |
---|---|---|
xobs | Sadly, I don't think the clock can go much faster. From synthesis: `Info: Max frequency for clock 'clk12_$glb_clk': 16.03 MHz (PASS at 12.00 MHz)` | 01:07 |
xobs | Make sure you're building with `-Os`, and that you put any hot functions in RAM. | 01:08 |
*** pizzapim has joined #tomu | 01:43 | |
futarisIRCcloud | vesim: umull (ARM) -> mul (RISC-V) ? | 01:44 |
*** pizzapim has quit IRC | 01:44 | |
*** cedric has quit IRC | 02:07 | |
*** cedric has joined #tomu | 02:07 | |
*** cedric has joined #tomu | 02:07 | |
xobs | If anyone wants to work on the Random block, that would be a Good First Issue. | 02:16 |
xobs | Copy https://github.com/im-tomu/foboot/blob/master/hw/foboot-bitstream.py and remove most of the stuff, then make it so it builds without a CPU (only DummyUSB), then fill in a basic Ring Oscillator. Then you can debug it with wishbone-util. | 02:18 |
tpb | Title: foboot/foboot-bitstream.py at master · im-tomu/foboot · GitHub (at github.com) | 02:18 |
xobs | vesim: in case you're curious, the CPU definition is at https://github.com/xobs/VexRiscv-verilog/blob/master/src/main/scala/vexriscv/GenFomuCrypto.scala (with the CPU actually at https://github.com/xobs/VexRiscv-verilog/blob/master/VexRiscv_Fomu_Crypto.v) | 02:22 |
tpb | Title: VexRiscv-verilog/GenFomuCrypto.scala at master · xobs/VexRiscv-verilog · GitHub (at github.com) | 02:22 |
*** rohitksingh has joined #tomu | 03:55 | |
*** bluebugs has joined #tomu | 06:25 | |
*** bluebugs has joined #tomu | 06:25 | |
*** cedric has quit IRC | 06:25 | |
*** emeb has quit IRC | 06:47 | |
*** xkapastel has quit IRC | 07:20 | |
*** cdmatter has quit IRC | 08:03 | |
*** cdmatter has joined #tomu | 08:04 | |
*** rohitksingh has quit IRC | 09:34 | |
*** rohitksingh has joined #tomu | 09:50 | |
*** wrtlprnft has quit IRC | 09:52 | |
*** wrtlprnft has joined #tomu | 09:53 | |
*** rohitksingh has quit IRC | 09:59 | |
*** wrtlprnft has quit IRC | 10:07 | |
*** wrtlprnft has joined #tomu | 10:08 | |
*** rohitksingh has joined #tomu | 10:36 | |
*** auscompgeek has quit IRC | 10:40 | |
*** migy has quit IRC | 10:41 | |
*** migy has joined #tomu | 10:49 | |
*** rohitksingh has quit IRC | 10:57 | |
vesim | xobs: i've moved everything related to crypto to ram and use -O3, that is giving the best performance | 11:07 |
*** bluebugs has quit IRC | 11:21 | |
*** rohitksingh has joined #tomu | 11:21 | |
*** cedric has joined #tomu | 11:22 | |
*** cedric has joined #tomu | 11:22 | |
*** cedric has quit IRC | 12:03 | |
*** cedric has joined #tomu | 12:04 | |
*** cedric has joined #tomu | 12:04 | |
mithro | xobs: What does rm mean? | 12:13 |
mithro | vesim: Ariane is a very poor fit to FPGAs | 12:13 |
xobs | Reference Manual | 12:17 |
gurke_ | i'm still digging into all that stuff which is quite new for me - so please excuse silly looking questions | 12:28 |
mithro | xobs: Can you keep rs in the name of https://github.com/im-tomu/fomu-pac ? | 12:28 |
tpb | Title: im-tomu/fomu-pac · GitHub (at github.com) | 12:28 |
gurke_ | to me it looks like vexrisc-v and picorv are sometimes used interchangeably - how do both compare? | 12:32 |
gurke_ | also, the bootloader seems to contain some code for both | 12:33 |
xobs | mithro: sure, the actual Rust crate name will be `fomu-pac`, but the git repo address is now `fomu-rs-pac`. | 12:33 |
xobs | gurke_: they're both flavours of riscv core. Some of the foboot code is taken from litex, which supports 5-6 CPU cores including both vexriscv and picorv32. | 12:34 |
xobs | picorv32 is written entirely in Verilog, and is very approachable and easy to understand. | 12:34 |
mithro | xobs: Great! that works for me | 12:35 |
xobs | Vexriscv is written in Scala, and is super extensible (it scales from Fomu all the way up to Linux), but is harder to understand. | 12:35 |
mithro | picorv32 was designed from to try and get a very high fmax -- even at the expense for actual performance -- it's designed to run in the same clock domain as a peripheral it is controlling so you don't have to pay CDC stuff | 12:36 |
* mithro is slowly catching up on all the email he has been ignoring | 12:37 | |
gurke_ | ok, so regarding fomu, both are basically exchangeable? how do they compare regarding required "gate space" (or how is that called?) | 12:38 |
gurke_ | mithro: ok, thx - what is CDC ? | 12:38 |
mithro | Clock DOmain Crossing | 12:42 |
xobs | Fomu uses vexriscv. We use it in a small configuration with only two pipeline stages, no multiply or divide unit, but with an MMU and a 2048-byte icache. | 12:42 |
xobs | But yesterday I made a configuration of the cpu for vesim that had no MMU or debugger, but with a multiply, divide, and single-cycle shifter. | 12:43 |
david-sawatzke[m | xobs: Small nitpick, but isn't the common rust repo naming pattern adding "-rs" at the end of the repo name? | 12:49 |
xobs | david-sawatzke: Sure, so change it to fomu-pac-rs? | 12:50 |
gurke_ | ok, in the bootloader, there are a few references to picorv32, mainly a control register and some SPI stuff - so this isn't actually used? | 12:50 |
david-sawatzke[m | Yeah | 12:50 |
david-sawatzke[m | Should i just push my commits? | 12:51 |
xobs | Yes please. I changed the URL to https://github.com/im-tomu/fomu-pac-rs | 12:51 |
tpb | Title: im-tomu/fomu-pac-rs · GitHub (at github.com) | 12:51 |
xobs | gurke_: Yeah, vexriscv has a different IRQ CSR than picorv32. | 12:52 |
xobs | The picorv32 code isn't actually used, and could safely be removed. | 12:52 |
gurke_ | ok, thx | 12:53 |
*** rohitksingh has quit IRC | 13:09 | |
*** rohitksingh has joined #tomu | 13:28 | |
vesim | xobs: is there a space to enable MMU? | 13:41 |
xobs | vesim: Can't fit the MMU + multiply unit currently. | 13:41 |
xobs | Also, I've never actually tried enabling it. But the `satp` register is there. | 13:41 |
vesim | :( | 13:44 |
*** xkapastel has joined #tomu | 13:59 | |
mithro | xobs: Does https://github.com/litex-hub/litex-boards/pull/30/files look right? | 14:00 |
tpb | Title: Updating the templates for Fomu. by mithro · Pull Request #30 · litex-hub/litex-boards · GitHub (at github.com) | 14:00 |
xobs | mithro: it does, in that it is a copy of the fix _florent_ did in foboot. | 14:01 |
xobs | So I'd say it looks good! | 14:02 |
mithro | xobs: I'll leave you in charge of https://github.com/im-tomu/fomu-workshop/pull/94 ? | 14:05 |
tpb | Title: Add Rust example by Tiwalun · Pull Request #94 · im-tomu/fomu-workshop · GitHub (at github.com) | 14:05 |
mithro | xobs: https://github.com/im-tomu/fomu-workshop/pull/108/files ? | 14:09 |
tpb | Title: Remove old riscv-usb-cdcacm code example. by mithro · Pull Request #108 · im-tomu/fomu-workshop · GitHub (at github.com) | 14:09 |
xobs | mithro: good idea. I was never a fan of that example. And tinyusb does it so much better. | 14:10 |
tiwalun | xobs: can you please make a new release of the fomu-rt crate? Then I can remove the patch from the workshop example | 14:24 |
xobs | Sure, let me do that. | 14:24 |
tiwalun | Thanks | 14:25 |
xobs | Published 0.0.4. | 14:27 |
*** cedric has quit IRC | 14:36 | |
*** cedric has joined #tomu | 14:37 | |
*** cedric has joined #tomu | 14:37 | |
tiwalun | I removed the patch, should be ready to review now | 14:40 |
mithro | xobs: Should we add rm to the workshop? | 14:43 |
*** emeb has joined #tomu | 15:08 | |
*** emeb has quit IRC | 16:56 | |
*** xkapastel has quit IRC | 17:08 | |
vesim | [error] (update) sbt.librarymanagement.ResolveException: unresolved dependency: default#vexriscv_2.11;0.1.0-SNAPSHOT: not found | 18:00 |
vesim | how i can fix thix issue? | 18:00 |
*** rohitksingh_ has joined #tomu | 18:00 | |
vesim | that's when i try to compile vexriscv core | 18:00 |
vesim | from your repo | 18:00 |
*** rohitksingh has quit IRC | 18:03 | |
*** rohitksingh_ has quit IRC | 18:05 | |
*** rohitksingh has joined #tomu | 18:08 | |
*** rohitksingh_ has joined #tomu | 18:09 | |
*** rohitksingh__ has joined #tomu | 18:10 | |
*** rohitksingh has quit IRC | 18:13 | |
*** rohitksingh_ has quit IRC | 18:14 | |
*** rohitksingh__ has quit IRC | 18:15 | |
*** rohitksingh has joined #tomu | 18:18 | |
*** rohitksingh_ has joined #tomu | 18:20 | |
*** rohitksingh has quit IRC | 18:20 | |
*** rohitksingh has joined #tomu | 18:21 | |
*** rohitksingh__ has joined #tomu | 18:22 | |
*** rohitksingh___ has joined #tomu | 18:23 | |
*** rohitksingh____ has joined #tomu | 18:24 | |
*** rohitksingh_ has quit IRC | 18:24 | |
*** rohitksingh has quit IRC | 18:25 | |
*** rohitksingh_ has joined #tomu | 18:25 | |
*** rohitksingh has joined #tomu | 18:27 | |
*** rohitksingh__ has quit IRC | 18:27 | |
*** rohitksingh has quit IRC | 18:27 | |
*** rohitksingh__ has joined #tomu | 18:28 | |
*** rohitksingh___ has quit IRC | 18:28 | |
*** rohitksingh____ has quit IRC | 18:29 | |
*** rohitksingh_ has quit IRC | 18:30 | |
*** rohitksingh has joined #tomu | 18:31 | |
*** rohitksingh has joined #tomu | 18:32 | |
*** rohitksingh__ has quit IRC | 18:33 | |
*** rohitksingh_ has joined #tomu | 18:34 | |
*** rohitksingh__ has joined #tomu | 18:35 | |
*** rohitksingh has quit IRC | 18:37 | |
*** rohitksingh has joined #tomu | 18:38 | |
*** rohitksingh_ has quit IRC | 18:38 | |
*** rohitksingh has joined #tomu | 18:39 | |
*** rohitksingh__ has quit IRC | 18:39 | |
*** rohitksingh has quit IRC | 18:39 | |
*** rohitksingh has joined #tomu | 18:40 | |
*** rohitksingh has quit IRC | 18:45 | |
*** rohitksingh has joined #tomu | 18:47 | |
*** rohitksingh_ has joined #tomu | 18:49 | |
*** rohitksingh has quit IRC | 18:52 | |
*** rohitksingh_ has quit IRC | 18:53 | |
*** rohitksingh has joined #tomu | 18:54 | |
*** rohitksingh_ has joined #tomu | 18:55 | |
*** rohitksingh has quit IRC | 18:56 | |
*** rohitksingh has joined #tomu | 18:57 | |
*** rohitksingh has quit IRC | 18:57 | |
*** rohitksingh_ has quit IRC | 19:00 | |
*** TomKeddie has quit IRC | 19:03 | |
*** rohitksingh has joined #tomu | 19:07 | |
*** rohitksingh_ has joined #tomu | 19:08 | |
*** rohitksingh__ has joined #tomu | 19:09 | |
*** rohitksingh has quit IRC | 19:12 | |
*** rohitksingh_ has quit IRC | 19:13 | |
*** rohitksingh__ has quit IRC | 19:14 | |
*** rohitksingh has joined #tomu | 19:15 | |
*** rohitksingh_ has joined #tomu | 19:16 | |
*** rohitksingh__ has joined #tomu | 19:17 | |
*** rohitksingh___ has joined #tomu | 19:18 | |
*** rohitksingh has quit IRC | 19:19 | |
*** rohitksingh___ has joined #tomu | 19:19 | |
*** rohitksingh has joined #tomu | 19:21 | |
*** rohitksingh_ has quit IRC | 19:21 | |
*** rohitksingh__ has quit IRC | 19:22 | |
*** rohitksingh_ has joined #tomu | 19:22 | |
*** rohitksingh___ has quit IRC | 19:24 | |
*** rohitksingh_ has quit IRC | 19:25 | |
*** rohitksingh_ has joined #tomu | 19:25 | |
*** rohitksingh has quit IRC | 19:25 | |
*** rohitksingh has joined #tomu | 19:26 | |
*** rohitksingh_ has quit IRC | 19:30 | |
*** rohitksingh has quit IRC | 19:31 | |
*** rohitksingh has joined #tomu | 19:34 | |
*** rohitksingh_ has joined #tomu | 19:36 | |
*** rohitksingh__ has joined #tomu | 19:37 | |
*** rohitksingh___ has joined #tomu | 19:38 | |
*** rohitksingh____ has joined #tomu | 19:39 | |
*** rohitksingh has quit IRC | 19:39 | |
*** rohitksingh_ has quit IRC | 19:40 | |
*** rohitksingh__ has quit IRC | 19:42 | |
*** rohitksingh___ has quit IRC | 19:43 | |
*** rohitksingh____ has quit IRC | 19:44 | |
*** rohitksingh_ has joined #tomu | 19:47 | |
*** rohitksingh_ has quit IRC | 19:52 | |
*** rohitksingh has joined #tomu | 20:01 | |
*** rohitksingh_ has joined #tomu | 20:02 | |
*** rohitksingh__ has joined #tomu | 20:03 | |
*** rohitksingh___ has joined #tomu | 20:04 | |
*** rohitksingh has quit IRC | 20:06 | |
*** rohitksingh_ has quit IRC | 20:07 | |
*** rohitksingh has joined #tomu | 20:08 | |
*** rohitksingh__ has quit IRC | 20:08 | |
*** rohitksingh_ has joined #tomu | 20:09 | |
*** rohitksingh__ has joined #tomu | 20:10 | |
*** rohitksingh___ has joined #tomu | 20:11 | |
*** rohitksingh has quit IRC | 20:13 | |
*** rohitksingh____ has joined #tomu | 20:13 | |
*** rohitksingh_ has quit IRC | 20:14 | |
*** rohitksingh__ has quit IRC | 20:15 | |
*** rohitksingh___ has quit IRC | 20:16 | |
*** rohitksingh____ has quit IRC | 20:17 | |
*** rohitksingh has joined #tomu | 20:18 | |
*** rohitksingh_ has joined #tomu | 20:20 | |
*** rohitksingh__ has joined #tomu | 20:21 | |
*** rohitksingh___ has joined #tomu | 20:22 | |
*** rohitksingh has quit IRC | 20:23 | |
*** rohitksingh has joined #tomu | 20:23 | |
*** rohitksingh_ has quit IRC | 20:24 | |
*** rohitksingh_ has joined #tomu | 20:24 | |
*** rohitksingh__ has quit IRC | 20:25 | |
*** rohitksingh___ has quit IRC | 20:26 | |
*** rohitksingh__ has joined #tomu | 20:26 | |
*** rohitksingh has quit IRC | 20:28 | |
*** rohitksingh___ has joined #tomu | 20:28 | |
*** rohitksingh has joined #tomu | 20:29 | |
*** rohitksingh_ has quit IRC | 20:30 | |
*** rohitksingh__ has quit IRC | 20:31 | |
*** rohitksingh_ has joined #tomu | 20:32 | |
*** rohitksingh___ has quit IRC | 20:32 | |
*** rohitksingh has quit IRC | 20:33 | |
*** rohitksingh has joined #tomu | 20:33 | |
*** rohitksingh__ has joined #tomu | 20:34 | |
*** rohitksingh___ has joined #tomu | 20:36 | |
*** rohitksingh____ has joined #tomu | 20:37 | |
*** rohitksingh_ has quit IRC | 20:37 | |
vesim | yaay, i've got UART working over touch pads | 20:37 |
CarlFK | wut? | 20:37 |
vesim | i thought that it will be more painful :D | 20:37 |
*** rohitksingh has quit IRC | 20:38 | |
*** rohitksingh__ has quit IRC | 20:39 | |
*** rohitksingh___ has quit IRC | 20:40 | |
vesim | https://gist.github.com/vesim987/734104f80ad06a2f6faeec4c8946aeb1 | 20:41 |
tpb | Title: fomu uart · GitHub (at gist.github.com) | 20:41 |
*** rohitksingh____ has quit IRC | 20:41 | |
*** rohitksingh has joined #tomu | 20:45 | |
*** im-tomu has left #tomu | 20:46 | |
*** im-tomu has joined #tomu | 20:46 | |
vesim | so i can connect ft232r to the two side touch pads and have side channel to debug my u2f implementation | 20:47 |
*** rohitksingh has quit IRC | 20:49 | |
*** rohitksingh has joined #tomu | 20:51 | |
*** rohitksingh_ has joined #tomu | 20:52 | |
*** rohitksingh__ has joined #tomu | 20:53 | |
*** rohitksingh___ has joined #tomu | 20:54 | |
*** rohitksingh has quit IRC | 20:55 | |
*** rohitksingh has joined #tomu | 20:55 | |
*** rohitksingh_ has quit IRC | 20:56 | |
*** rohitksingh_ has joined #tomu | 20:56 | |
vesim | and by debug i mean "print debugging" :P | 20:57 |
*** rohitksingh__ has quit IRC | 20:57 | |
*** rohitksingh___ has quit IRC | 20:59 | |
*** rohitksingh has quit IRC | 21:00 | |
*** rohitksingh_ has quit IRC | 21:01 | |
CarlFK | that's pretty awesome | 21:02 |
CarlFK | print and pprint are my python debugging tools | 21:02 |
*** rohitksingh_ has joined #tomu | 21:04 | |
*** rohitksingh__ has joined #tomu | 21:06 | |
*** rohitksingh has joined #tomu | 21:08 | |
*** rohitksingh___ has joined #tomu | 21:09 | |
*** rohitksingh_ has quit IRC | 21:10 | |
*** rohitksingh_ has joined #tomu | 21:10 | |
*** rohitksingh___ has joined #tomu | 21:11 | |
*** rohitksingh__ has quit IRC | 21:11 | |
*** rohitksingh has quit IRC | 21:12 | |
*** rohitksingh_ has quit IRC | 21:14 | |
*** rohitksingh___ has quit IRC | 21:16 | |
*** wrtlprnft has quit IRC | 21:16 | |
*** rohitksingh has joined #tomu | 21:17 | |
*** wrtlprnft has joined #tomu | 21:17 | |
*** rohitksingh_ has joined #tomu | 21:19 | |
*** rohitksingh__ has joined #tomu | 21:20 | |
*** rohitksingh___ has joined #tomu | 21:21 | |
*** rohitksingh has quit IRC | 21:22 | |
*** rohitksingh has joined #tomu | 21:23 | |
*** rohitksingh_ has quit IRC | 21:24 | |
*** rohitksingh_ has joined #tomu | 21:24 | |
*** rohitksingh__ has quit IRC | 21:25 | |
*** rohitksingh____ has joined #tomu | 21:25 | |
*** wrtlprnft has quit IRC | 21:26 | |
*** wrtlprnft has joined #tomu | 21:26 | |
*** rohitksingh__ has joined #tomu | 21:26 | |
*** rohitksingh___ has quit IRC | 21:26 | |
*** rohitksingh has quit IRC | 21:27 | |
*** rohitksingh_ has quit IRC | 21:28 | |
*** rohitksingh____ has quit IRC | 21:30 | |
*** rohitksingh__ has quit IRC | 21:30 | |
*** rohitksingh has joined #tomu | 21:32 | |
*** rohitksingh_ has joined #tomu | 21:33 | |
*** rohitksingh__ has joined #tomu | 21:34 | |
*** rohitksingh has quit IRC | 21:37 | |
*** rohitksingh_ has quit IRC | 21:38 | |
*** wrtlprnft has quit IRC | 21:38 | |
*** rohitksingh__ has quit IRC | 21:39 | |
*** wrtlprnft has joined #tomu | 21:39 | |
*** rohitksingh has joined #tomu | 21:42 | |
*** rohitksingh_ has joined #tomu | 21:43 | |
*** rohitksingh__ has joined #tomu | 21:45 | |
*** rohitksingh has quit IRC | 21:47 | |
*** rohitksingh__ has quit IRC | 21:47 | |
*** rohitksingh has joined #tomu | 21:47 | |
*** rohitksingh_ has quit IRC | 21:48 | |
*** rohitksingh_ has joined #tomu | 21:48 | |
*** rohitksingh has quit IRC | 21:52 | |
*** rohitksingh_ has quit IRC | 21:53 | |
*** rohitksingh has joined #tomu | 21:59 | |
*** rohitksingh_ has joined #tomu | 21:59 | |
*** rohitksingh__ has joined #tomu | 22:01 | |
*** rohitksingh___ has joined #tomu | 22:02 | |
*** rohitksingh____ has joined #tomu | 22:03 | |
*** rohitksingh has quit IRC | 22:03 | |
*** rohitksingh_ has quit IRC | 22:04 | |
*** rohitksingh__ has quit IRC | 22:05 | |
*** rohitksingh___ has quit IRC | 22:06 | |
*** rohitksingh____ has quit IRC | 22:07 | |
*** rohitksingh_ has joined #tomu | 22:09 | |
*** rohitksingh_ has quit IRC | 22:13 | |
*** rohitksingh has joined #tomu | 22:16 | |
*** rohitksingh_ has joined #tomu | 22:17 | |
*** rohitksingh__ has joined #tomu | 22:18 | |
*** rohitksingh has quit IRC | 22:20 | |
*** rohitksingh_ has quit IRC | 22:22 | |
*** rohitksingh__ has quit IRC | 22:23 | |
gurke_ | just redoing the workshop in order to see if i can document/fix more things... | 22:34 |
gurke_ | on my fomu, spi.id() (in micropython) returns 0 for a pvt fomu - is that correct / expected? | 22:35 |
gurke_ | also, the workshop says "If we look at the generated Fomu header files, [...]" - I think a link would make sense...? Which headers should I link to? | 22:37 |
futarisIRCcloud | https://www.cnx-software.com/2020/01/02/polos-gd32v-alef-tiny-risc-v-mcu-board/ | 22:56 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!