<mithro>
sb0_: oh, I have a couple of small fixes for your HDMI core + SDRAM to fix some timing issue complaints
<sb0_>
seriously
<ysionneau>
what is even the point of those delays in the mind of the developer?
<sb0_>
this is "assign wa_d = wa + 1", with the most crappy code possible, and possibly a bug
<sb0_>
I laughed really hard when I found that in the appnote...
<mithro>
sb0_: well, I
<mithro>
bah
<sb0_>
and it's followed by flip-flop instances. this horrible mess is actually just a counter...
<mithro>
sb0_: well, if I can get your misoc working on our boards then maybe we can reuse some of your work
<sb0_>
this appnote sucks and I wonder why you are not using misoc
<mithro>
sb0_: we didn't know about misoc when we started
<mithro>
sb0_: anyway, you know hindsight is 20-20 :P
<sb0_>
DisplayPort is less hacky than HDMI... but you'll have to use the transceivers, which are worse than the serdes...
<mithro>
sb0_: yeah
<sb0_>
ysionneau, if in verilog you write always @(clk) y <= x; always @(clk) z <= y;
<sb0_>
people who don't understand delta-cycles believe that there is a possibility that x goes directly to z in one clk cycle, if the second always block is executed after the first
<ysionneau>
wow
<ysionneau>
ok ...
<sb0_>
writing instead "always @(clk) y <= #1 x; always @(clk) z <= #1 y;" removes that ambiguity
<ysionneau>
when you understand it as an electronic circuit, then it's clear that x cannot go to z
<sb0_>
the thing is, when you write "<=" the assignment is already delayed by one delta-cycle
<sb0_>
and the verilog simulator runs all always blocks currently triggered in the current delta cycle before going to the next
<sb0_>
so x->z is always 2 clk cycles, and the explicit delays are unneccessary (and generally harmful as a source of misunderstandings, messy vcd files, messy code, and bugs)
<ysionneau>
ok thanks for the explanation
<sb0_>
obviously, you can still get hired by xilinx if you don't understand delta cycles
<sb0_>
which is a bit weird imo
kilae has joined #m-labs
fengling has quit [Read error: Connection reset by peer]
fengling has joined #m-labs
kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 32.0.1/20140911151253]]