*** tpb has joined #timvideos | 00:00 | |
*** hozer has quit IRC | 01:39 | |
*** hozer has joined #timvideos | 01:50 | |
*** hozer has quit IRC | 04:52 | |
*** hozer has joined #timvideos | 05:02 | |
*** rohitksingh has joined #timvideos | 05:04 | |
*** Bertl is now known as Bertl_zZ | 05:09 | |
*** vystrela has quit IRC | 06:42 | |
*** vystrela has joined #timvideos | 06:44 | |
*** mithro-work has joined #timvideos | 06:55 | |
*** mithro-work is now known as im-tomu | 06:55 | |
*** im-tomu has quit IRC | 06:58 | |
*** rohitksingh has quit IRC | 08:08 | |
mithro | _florent_: ping? | 08:46 |
---|---|---|
_florent_ | mithro: hi | 08:52 |
mithro | shenki: is currently trying to get the opsis-soc stuff working on the minispartan6 because he is too lazy to carry around an opsis | 08:52 |
cr1901_modern | Does shenki need help? | 08:55 |
_florent_ | mithro: ok, I'll work next week on the project, I can also try to get that working | 08:57 |
mithro | _florent_: Well, I'd like to concentrate on the opsis stuff - did you see the meeting invite for Thursday - is that something you could make? | 08:58 |
_florent_ | mithro: yes that's fine | 08:58 |
mithro | _florent_: My weeknights get busy pretty quickly, so wanted to block that off so we actually get around to doing it | 08:58 |
mithro | _florent_: The weirdness around CSR registers and status output things is probably the next thing I would look at tackling | 08:59 |
mithro | https://github.com/enjoy-digital/opsis-soc/issues/22 and https://github.com/enjoy-digital/opsis-soc/issues/28 | 09:00 |
tpb | Title: DDR status output is bogus · Issue #22 · enjoy-digital/opsis-soc · GitHub (at github.com) | 09:00 |
_florent_ | mithro: ok, I'll work on that (probably tomorrow) | 09:01 |
mithro | _florent_: Okay - I haven't looked into it very much | 09:07 |
shenki | BIOS> memtest | 10:29 |
shenki | Memtest bus failed: 128/256 errors | 10:29 |
shenki | Memtest data failed: 392998/524288 errors | 10:29 |
shenki | Memtest addr failed: 4096/8192 errors | 10:29 |
shenki | what does that look like? | 10:29 |
shenki | aside from about half errors | 10:30 |
mithro | shenki: Maybe go and look at what the bios code does? | 10:31 |
shenki | for(i=0;i<MEMTEST_BUS_SIZE/4;i++) { | 10:31 |
shenki | array[i] = ONEZERO; | 10:31 |
shenki | } | 10:31 |
shenki | volatile unsigned int *array = (unsigned int *)MAIN_RAM_BASE; | 10:32 |
shenki | it writes a word of 0xAAAAAAAA to each address starting at MAIN_RAM_BASE and going to MEMTEST_BUS_SIZE (aka 512) | 10:33 |
mithro | Be back in a bit, have to go find dinner and head home | 10:36 |
mithro | shenki: I wonder if it is something like the sdram is only being 16bits wide or something? | 10:36 |
mithro | _florent_ and cr1901_modern might know more | 10:37 |
mithro | cr1901_modern: Have you tried litedram with the minispartan6+ at all? | 10:37 |
mithro | shenki: might want to compare to | 10:42 |
mithro | https://github.com/enjoy-digital/litex/blob/master/litex/boards/targets/minispartan6.py | 10:42 |
tpb | Title: litex/minispartan6.py at master · enjoy-digital/litex · GitHub (at github.com) | 10:42 |
mithro | But I can see anything majorily different | 10:43 |
mithro | s/can/can't/ | 10:43 |
mithro | shenki: this is what the sim target does.. https://github.com/enjoy-digital/litex/blob/master/litex/boards/targets/sim.py#L36 | 10:45 |
tpb | Title: litex/sim.py at master · enjoy-digital/litex · GitHub (at github.com) | 10:45 |
shenki | i edited the memtest to print more info, and rebuilt | 10:45 |
shenki | but the changes aren't appearing on the hardware | 10:45 |
shenki | i saw it rebuild the source | 10:45 |
mithro | Did you reload it with openocd? | 10:47 |
mithro | The bios is embedded in the gateware | 10:48 |
shenki | yeah, i reloaded | 10:48 |
shenki | power cycled too | 10:48 |
shenki | ok, make clean worked | 10:50 |
shenki | mithro: the test has errors in it's calculation | 10:51 |
shenki | it is all fine if you have zero failures | 10:52 |
shenki | but the number of memory locations is incorrect | 10:52 |
mithro | Doesn't the make file rm -rf the whole build directory currently? | 10:52 |
shenki | yeah | 10:52 |
mithro | You remove that? | 10:53 |
shenki | no | 10:53 |
shenki | i did that | 10:53 |
shenki | and when i rebuilt the firmware was rebuilt properly | 10:54 |
shenki | anyway | 10:54 |
mithro | So where are the errors occurring? | 10:56 |
*** Bertl_zZ is now known as Bertl | 11:10 | |
shenki | hrmm, it's working now | 11:13 |
shenki | verrrry strange | 11:13 |
shenki | when it was failing, it was only a byte here and there in every word | 11:14 |
shenki | [FLTERM] Done. | 11:14 |
shenki | Executing booted program. | 11:14 |
shenki | Opsis CPU testing software built Oct 23 2016 21:33:03 | 11:14 |
shenki | RUNTIME> | 11:14 |
shenki | can't type any input | 11:14 |
mithro | shenki: hrm | 11:20 |
mithro | shenki: I wonder if there is some type of marginal timing issue with the sdram? | 11:21 |
mithro | The firmware is executing in a loop, so it's more likely to error out | 11:22 |
mithro | We really need a "ram hammer" type tests | 11:27 |
shenki | http://pastebin.com/raw/uKtc6pit | 11:27 |
shenki | yeah, when i regenerated it's broken | 11:27 |
shenki | so we aren't tight enough with some of our timing | 11:28 |
mithro | >>> bin(0x8e2d7602) | 11:28 |
mithro | '0b10001110001011010111011000000010' | 11:28 |
mithro | >>> bin(0x8ead7602) | 11:28 |
mithro | '0b10001110101011010111011000000010' | 11:28 |
mithro | That is a single bit flip? | 11:28 |
shenki | some of them are. some are more than one bit | 11:31 |
shenki | most of the time it's in the one byte | 11:31 |
mithro | shenki: want to port http://www.memtest86.com/ to misoc :-P | 11:37 |
tpb | Title: MemTest86 - Offical Site of the x86 Memory Testing Tool (at www.memtest86.com) | 11:37 |
mithro | Actually I wrote a bunch of stuff on that at https://github.com/timvideos/HDMI2USB-misoc-firmware/issues/153 | 11:38 |
tpb | Title: Create memory performance and error testing solution · Issue #153 · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com) | 11:38 |
mithro | The opsis_base.py does " self.platform.add_period_constraint(self.crg.cd_sys.clk, 1/clk_freq*1e9)" | 11:41 |
mithro | shenki: Probably need something like that in minispartan6_base.py too | 11:43 |
shenki | ok | 11:45 |
shenki | mithro: ./litex/boards/targets/minispartan6.py doesn't have the base50 clock that our board has | 11:50 |
mithro | I don't think base50 clock is used at all in _base.py? | 11:52 |
shenki | nup. i removed it | 11:54 |
mithro | shenki: something like https://github.com/mithro/opsis-soc/commit/112044bdd8b7646f2fc4ccbf905a514e51445bba | 11:54 |
tpb | Title: Adding period constraints. · mithro/opsis-soc@112044b · GitHub (at github.com) | 11:54 |
shenki | ok | 11:56 |
shenki | it managed to build a working bitstream again. still not accepting input | 11:56 |
mithro | Hrm | 11:59 |
shenki | can we blink a led in the mainloop or something? | 11:59 |
mithro | shenki: That is on the todo list :-P | 12:00 |
mithro | shenki: it should be pretty quick to edit the firmware and reload it | 12:00 |
mithro | shenki: Just hit the reset button rather then power cycling and flterm to load the new code | 12:00 |
shenki | ok | 12:03 |
shenki | we need to write a watchdog :) | 12:03 |
mithro | shenki: https://github.com/timvideos/HDMI2USB-misoc-firmware/pull/277/files and https://github.com/timvideos/HDMI2USB-misoc-firmware/pull/282/files | 12:05 |
tpb | Title: Make the ATX case panel LEDs/switch work on the Opsis by mithro · Pull Request #277 · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com) | 12:05 |
mithro | anyway, bed time for me | 12:21 |
shenki | mithro: night! thanks for your help | 12:31 |
shenki | crashing just after starting the firmware again | 13:20 |
shenki | if i revert the top commit, it goes ok | 13:20 |
shenki | https://github.com/shenki/opsis-soc/commits/minispartan6 | 13:20 |
tpb | Title: Commits · shenki/opsis-soc · GitHub (at github.com) | 13:20 |
shenki | [FLTERM] Upload complete (10.3KB/s). | 13:21 |
shenki | [FLTERM] Booting the device. | 13:21 |
shenki | [FLTERM] Done. | 13:21 |
shenki | Executing booted program. | 13:21 |
shenki | Opsis CPU testing software built | 13:21 |
shenki | (hangs there) | 13:21 |
*** rohitksingh has joined #timvideos | 14:23 | |
*** Bertl is now known as Bertl_oO | 15:38 | |
*** hozer has quit IRC | 16:23 | |
*** Guest38749 has quit IRC | 16:25 | |
*** sb0 has quit IRC | 16:29 | |
*** hozer has joined #timvideos | 16:35 | |
*** rohitksingh has quit IRC | 17:56 | |
*** rohitksingh has joined #timvideos | 18:11 | |
*** rohitksingh has quit IRC | 18:15 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!