#timvideos

/

      • _florent_
      • tpb
        Title: HDMI2USB-firmware-prebuilt/opsis_hdmi2usb-hdmi2usbsoc-opsis.bit at master · timvideos/HDMI2USB-firmware-prebuilt · GitHub (at github.com)
      • mithro
        _florent_: I'm thinking so too
      • _florent_
        but that's strange it's working with pre-production board and not with production boards
      • mithro
        _florent_: Using the other input https://goo.gl/photos/4stPm84zBXep6pfBA
      • _florent_: "WARNING:Par:468 - Your design did not meet timing. The following are some suggestions to assist you to meet timing in your design."
      • _florent_: TS_hdmi2usbsoc_crg_pll_5_
      • _florent_: this is on the firmware I'm using on the Atlys
      • Placer: Placement generated during map.
      • Routing: Completed - No errors found.
      • Timing: Completed - 4 errors found.
      • _florent_: however, the Opsis doesn't have any issues
      • _florent_: okay, I need to test your serial thing on an Opsis right?
      • _florent_
        yes
      • this way we will be able to run the same bitstreams
      • mithro
        _florent_: Did you see I merged seaLne's "make download-prebuilt" ?
      • _florent_
        no
      • what is is doing?
      • mithro
        _florent_: means you can download the travis built firmware
      • _florent_
        ah ok cool
      • mithro
        _florent_: UART is working for me on git commit: 9ac8965527d26eb9f763080531cf7650f7cc7946
      • _florent_: shall we merge it?
      • _florent_
        yes
      • it's working here too
      • mithro
        _florent_: great
      • _florent_
        so I'm going to merge it
      • mithro
        _florent_, seaLne's download-prebuilt was how I tracked down the romboot failure to https://github.com/timvideos/HDMI2USB-misoc-fir...
      • tpb
        Title: targets: Move common stuff in targets files to a common file. · timvideos/HDMI2USB-misoc-firmware@ca3f01c · GitHub (at github.com)
      • _florent_
        yes that's really a good idea to have that!
      • Bertl is now known as Bertl_oO
      • tvCommitBot joined the channel
      • tvCommitBot
        [13streaming-system] 15mithro closed pull request #110: Update for LCA2016, more bootstrap (06master...06master) 02https://git.io/vzSM9
      • tvCommitBot has left the channel
      • mithro
        _florent_: BTW If you have anything else which does rombooting, take a look at https://github.com/timvideos/HDMI2USB-misoc-fir...
      • tpb
        Title: gateware/targets: Make firmware a real gateware object. · timvideos/HDMI2USB-misoc-firmware@254c281 · GitHub (at github.com)
      • mithro
        _florent_: FYI, the Opsis production boards actually have a pin header on the SD card - so it is easy of other people to connect serial port there
      • _florent_
        good
      • ok except understanding the strange behaviour on the hdmi inputs, what are the plans now?
      • are you going to do some capture tests with the HV30?
      • (or maybe sleep too...)
      • mithro
        _florent_: I have no plans at the moment except helping figure out the issues with the HDMI inputs
      • _florent_: btw, did you get shipping notification from Crowd Supply about the prod board?
      • _florent_
        yes
      • I got the notification, but the board are not already there
      • mithro
        _florent_: how long ago?
      • _florent_
        let me check that
      • mithro
        _florent_: would be interested to know if/when they might possibly turn up
      • _florent_
        6 days ago
      • mithro
        any idea how long shipping might take? :P
      • I would guess minimum 7, maximum 14?
      • so likely to turn up Friday next week just when its no longer useful :P
      • _florent_
        but I don't understand why behaviour is not similare between pre-prod and prob boards
      • was is re-routed?
      • or are there some changes on hdmi input buffers?
      • mithro
        _florent_: there should have only been minor changes to the HDMI (connecting the power supplies correctly)
      • seaLne
        my production opsis boards got to uk customs this morning
      • so _florent_ might not be long either
      • mithro
        _florent_: shall I try and see if I can drop the Atlys frequency to 50MHz from the 75MHz?
      • _florent_
        yes if you want
      • cr1901_modern
        back. Found a nice bug in my freq counter module that made it essentially wasted silicon. Let's see what happens now...
      • Okay, I now have something that works :D
      • mithro
        _florent_: what are you looking into?
      • _florent_
        nothing for now, others things
      • mithro
        _florent_: Is there anything you can do regarding the hdmi inputs?
      • _florent_
        since my hardware seems to be working fine that's a bit difficult
      • on your side, it would be interesting to do a bisect with prebuild bitstream and a configuration that is not working correctly now
      • mithro
        _florent_: is there any extra debugging we can add to gateware/hdmi_in/chansync.py || gateware/hdmi_in/charsync.py which would give insight into where things are going wrong / it is loosing sync?
      • _florent_
        I'll look at that
      • cr1901_modern
        mithro: I have a working frequency counter on my end. It's giving fairly accurate results, but something's a bit off
      • E.g. I'm feeding a 40MHz signal into one of the inputs. The frequency that's being read back is consistently 40040960 Hz
      • I mean, that's 0.1% error I think? But I would've expected 0% error
      • mithro
        _florent_: question, why do the misoclib.soc.SoCs have a integrated_rom_size argument?
      • _florent_: is that for the bios?
      • _florent_
        yes for the bios
      • mithro
        _florent_: should the firmware ROM be read only?
      • _florent_: (doesn't it make a difference?)
      • cr1901_modern
        I think creating a ROM on FPGA is just using a block RAM and not connecting the write signals
      • mithro
        _florent_: also, why does the Atlys have 1024 FIFOs but the Opsis only 512? - is that just an oversight?
      • _florent_
        IIRC it was needed because the Atlys have less DDR throughput
      • mithro
        _florent_: that would increase the difficult in routing right?
      • _florent_
        maybe but that's not sure (maybe 1024 fits in a single bram, if so then there is no difference between 512 and 1024)
      • se6astian is now known as se6astian|away
      • cr1901_modern
        mithro: https://gist.github.com/cr1901/0ae23f42867c6703... First version of the patch. Try playing with this
      • tpb
        Title: HDMI2USB Frequency Counter Patch · GitHub (at gist.github.com)
      • cr1901_modern
        I'm curious to see if you get the same 0.1% error that I do on one of your boards...
      • mithro
        cr1901_modern: send a pull request?
      • _florent_: dropping the frequency of the Atlys board seems to have made things worse....
      • cr1901_modern
        mithro: Not sure if I should do that right now b/c: A. Idk if there's a bug or not, and B. The code that I added to minispartan6 is a debug target that probably shouldn't actually be used by anyone else right now
      • mithro
        _florent_: Timing: Completed - 17 errors found.
      • cr1901_modern
        Do you want me to send a pull request anyway and we'll fix bugs/remove the debug code later?
      • mithro
        _florent_: I added something to the ci to re-enable the debug print from the input
      • _florent_
        ok
      • mithro
      • tpb
        Title: Ubuntu Pastebin (at paste.ubuntu.com)
      • mithro
        _florent_: I'm not 100% sure how to read it - but it seems like the charsync is true but chansync doesn't appear to lock?
      • I assume the first 3 ph numbers are the phase adjustment of the rgb channels?
      • I would guess WER is some type of W??? Error Rate?
      • _florent_: this is what I'm seeing with the HV30 camera connected with my "good" cable -> http://paste.ubuntu.com/14680059/
      • tpb
        Title: Ubuntu Pastebin (at paste.ubuntu.com)
      • mithro
        _florent_: okay, it seems like the PLL is getting lock, even when no signal is getting through
      • _florent_
        it seems WER counts errors in the transitions, but I'm not well aware of the lower layers of HDMI
      • rohitksingh has quit
      • mithro
      • tpb
        Title: Ubuntu Pastebin (at paste.ubuntu.com)
      • cyrozap-ZNC joined the channel
      • cyrozap has quit
      • mithro
        _florent_: so, any ideas were we go from here?
      • rohitksingh joined the channel
      • ahh, WER == Word Error Rate
      • _florent_: is there any chance that the lm32 running at 50MHz is too slow at servicing the hdmi_in0_adjust_phase stuff?
      • _florent_
        sorry mithro, I'm doing some administrative stuff
      • first we should do a bisect to see if it was working before
      • (because I don't think we saw that before on the atlys)
      • it will maybe give use some indications
      • mithro
        _florent_: you don't have an Atlys board any more, right?
      • GAH?! How can having *less* logic in your design cause *more* timing errors....
      • _florent_
        I have it... but not working...
      • ISE is sometimes a bit difficult to predict...
      • mithro
        _florent_: I disabled the ethernet on the HDMI2USB target on the Atlys, I went from 2 timing errors to 12 :(
      • _florent_
        arf...
      • mithro
        I probably need to got to sleep soon
      • it's 4am here...
      • _florent_
        yes probably
      • have a good night
      • mithro
        Not yet, I'm trying another build
      • The Atlys firmware does only take 5 minutes to report those errors now though...
      • so, with the current gateware the PLL doesn't get lock on input0 on the Atlys board at all
      • I'd really like to fix https://github.com/timvideos/HDMI2USB-misoc-fir... and then turn timing errors back on....
      • tpb
        Title: Fix CLOCK_DEDICATED_ROUTE disable on the HDMI outputs · Issue #191 · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com)
      • mithro
        input1 is working fine
      • It's clear in the error message that the timing failure is on input0's PLL I believe?
      • _florent_
        the error is for the output no?
      • mithro
        _florent_: oh you are correct - it is unrelated here to inputs
      • _florent_
        mithro: best thing to do first is probably to test old bitstreams
      • I'm pretty sure this was working before
      • we probably introduced something that cause this
      • mithro
        _florent_: problem seems to exist all the way back too Fri Oct 9 18:28:35 2015 +1100
      • _florent_
        ok
      • mithro
        _florent_: then I start running out of prebuilt firmware to download
      • _florent_
        so that's something that is quite old
      • but I don't remember having these kind of issues at that time
      • mithro
        I do remember Ryan / Carl having issues with one of the inputs
      • and us discovering something having to be done with the jumpers
      • _florent_
        yes, you have the link?
      • I did a capture
      • CarlFK put it somewhere but I don't remember where exactly
      • mithro
        Wasn't that the SCL/SDA issue?
      • _florent_
        yes I think
      • mithro
      • _florent_
        what are you trying by the way? a computer or the HV30?