Skip to content

Commit

Permalink
framebuffer: remove workaround for asyncfifo bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Bourdeauducq committed Jul 16, 2013
1 parent 8c44c72 commit 7e3b84a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions milkymist/framebuffer/lib.py
Expand Up @@ -146,14 +146,13 @@ def __init__(self):
self.vga_hsync_n.eq(~fifo_out.hsync),
self.vga_vsync_n.eq(~fifo_out.vsync),
If(pix_parity,
# FIXME: p0/p1 should be the other way around. Clarify this.
self.vga_r.eq(fifo_out.p0.r),
self.vga_g.eq(fifo_out.p0.g),
self.vga_b.eq(fifo_out.p0.b)
).Else(
self.vga_r.eq(fifo_out.p1.r),
self.vga_g.eq(fifo_out.p1.g),
self.vga_b.eq(fifo_out.p1.b)
).Else(
self.vga_r.eq(fifo_out.p0.r),
self.vga_g.eq(fifo_out.p0.g),
self.vga_b.eq(fifo_out.p0.b)
)
]
self.comb += fifo.re.eq(pix_parity)
Expand Down

0 comments on commit 7e3b84a

Please sign in to comment.