--- Log opened Tue Apr 26 00:00:38 2016 | ||
_franck_ | mithro: the purpose of jtag verilator is to debug the debug ecosystem so it doesn't matter if it is not fast | 01:21 |
---|---|---|
mithro | _franck_: I want to use it so I can connect gdb to the simulator in the same way I can the real hardware and then debug firmware running on the softcpu, hence the simulator performance is quite important. | 01:26 |
olofk | mithro, _franck_ : I agree. It's a great feature to run debug in realtime on a sim target. If it's the verilator sim that is slow, I think it's just a matter of doing the serialization in verilog, so we don't have to call do_jtag every cycle | 01:59 |
mithro | I think it's the cost of doing the syscall to check if there is any data on the socket but haven't looked at it closely. | 02:09 |
mithro | Our target runs the mor1k at about 1MHz on a modern CPU but with the JTAG is seems closer to 1kHz or slower. | 02:12 |
olofk | mithro: Ah yes. that might be the biggest cycle stealer | 02:13 |
mithro | My next test will be to only call it every X cycles | 02:14 |
olofk | That could be a good solution. We don't need to have the data available the exact same cycle that it appears on the socket | 02:16 |
olofk | I think the verilog/VPI version only calls it every 1000 cycles or so | 02:17 |
olofk | Anyone good with DDR3 memories? Is there any command to set them in some kind of sleep mod? | 04:02 |
olofk | s/mod/mode | 04:02 |
LoneTech_ | I'd expect them to have a self refresh mode, but do you mean intentional decay? | 04:10 |
-!- LoneTech_ is now known as LoneTech | 04:10 | |
olofk | LoneTech: I'm thinking of some kind of power-saving mode | 04:11 |
olofk | It doesn't have to retain data | 04:12 |
LoneTech | you can find quite a bit of information in Micron's datasheet 09005aef83021ee3 (JSF16C256x64H.fm) | 04:13 |
LoneTech | not sure if that in particular is in there, been some time since I looked at it | 04:14 |
LoneTech | there's a shutdown mode in the config register | 04:14 |
LoneTech | oops, that was for the temp sensor. that's what I get for looking at a DIMM rather than a memory chip | 04:14 |
mithro | olofk: I know there area bunch of low power modes on Laptop DDR3 - dunno how that compares to DDR generally | 04:17 |
SMDwrk | What type of ram controller is used in openrisc: a custom one or sort of vendor(xilinx/altera)? | 04:20 |
LoneTech | either can be used. I think the orpsoc design used one of the opencores controllers | 04:21 |
olofk | I think lpddr has sleep modes, but I'm not sure about regular ddr. | 04:36 |
olofk | SMDwrk: For SDRAM we generally use an open source verilog controller. For DDR memories, we generally use the one the the FPGA vendor supplies, but there has been some work on open source ddr controllers too | 04:38 |
olofk | It would be great if the FPGA vendors would support DFI properly | 04:39 |
wallento | shorne: no, or1k-src is not needed anymore, except for sim, which I will hopefully do soon | 05:31 |
shorne | i see thanks. I dont know much about it, but how much can the verilator simulator do that the or1ksim can? | 06:15 |
shorne | or is the gap too big? | 06:15 |
shorne | i.e. or1ksim has gdb server | 06:15 |
olofk | shorne: You can run gdb on a verilated model as well | 06:19 |
olofk | _franck__ did some experiments where he used or1ksim to model the CPU and verilated RTL code for the peripherals | 06:19 |
olofk | or1ksim is most likely faster than verilator, but if you need some custom RTL code, you can't use it | 06:20 |
shorne | olofk: I am running gdb tests on or1ksim | 09:12 |
SMDwrk | Does anyone need some computation resourses i.e. for running tests on regular basis? I think I can share a rig w/ 16 amd cores and 32gb ram | 09:27 |
olofk | SMDwrk: That could be useful. I think I need to test the bitcoin-mining abilities of my latest CPU :) | 09:53 |
olofk | shorne: Ah. Cool. Is it working? Many failed tests? | 09:53 |
olofk | SMDwrk: It would be great to have the ability to run more regression-tests on both the toolchain and the RTL code, but I don't think we have any easy way to set up the infrastructure yet | 09:56 |
SMDwrk | olofk: I see, and is there any testing anything for orisk toolchain/cpu/soc? | 09:59 |
olofk | SMDwrk: wallento has been running a jenkins instance for the toolchain. | 10:00 |
olofk | We have been trying to consolidate all OpenRISC tests from or1ksim, mor1kx development and so on in an or1k-tests repository, but we still haven't done anything with it yet | 10:01 |
mafm | olofk: if it helps, you can get some inspiration from: https://github.com/riscv/riscv-tests | 10:09 |
shorne | olofk: hmm, I am trying to run the tests on the remote simulator using remote debug, but I am not sure if it works. | 10:27 |
shorne | I need to setup gdb 'boards' explaining how to connect and load gdbserver on the target, but the simulator is already running gdbserver | 10:27 |
shorne | I am doing something completely wrong, but a lot of tests that dont load run code are passing | 10:29 |
SMDwrk | olofk: Ok, I think some sort of testing infra is a must have. I.e. at work we do have common infra in which everything is built and run | 10:39 |
shorne | fyi, in case anyone knows anything about gdb testsuite, this is what I am running https://gist.github.com/stffrdhrn/67e2ea46df6090ebbf9b3b6d36846aa5 | 10:51 |
_franck__ | shorne: I think what I did was not to connect to gdbserver on the target. I think I added or1ksim as an internal gdb sim and then run tests without any connection to the remote. | 11:01 |
_franck__ | see: https://github.com/fjullien/or1k-src/commits/prepare_patch2 | 11:01 |
_franck__ | well, you can also find this commits in the main repo | 11:03 |
_franck__ | shorne and others, this the slides of the presentation I did about gdb status at orconf 2013: https://www.dropbox.com/s/9axcnekm7goxh8d/gdb_new.pdf?dl=0 | 11:20 |
olofk | mafm: We have a similar repo to riscv-tests. Just that we don't anything with it :( | 16:15 |
olofk | shorne: I see you got help from _franck__. The other person to talk to would be jeremybennett. | 16:17 |
mafm | olofk: ah ok, I thought that you didn't have the tests themselves | 16:51 |
shorne | _franck__: thanks, excellent, I knew something was wrong with my approach | 17:30 |
olofk | mafm: https://github.com/openrisc/or1k-tests | 17:34 |
mafm | olofk: ah, nice | 17:37 |
shorne | _franck__: I guess the reason I was having problems is binutils-gdb doesnt have sim support merged from or1k-src as wallento explained earlier. Trying to work on that now | 18:07 |
mithro | Is there an IRC channel which is good for discussing things like "How to efficiently implement XYZ on a Xilinx FPGA?" etc? | 21:14 |
--- Log closed Wed Apr 27 00:00:40 2016 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!