framebuffer: register output of FIFO
This commit is contained in:
parent
309124711f
commit
8ba3118a83
|
@ -191,7 +191,6 @@ class FIFO(Actor):
|
||||||
clkport="clk_write")
|
clkport="clk_write")
|
||||||
t = self.token("dac")
|
t = self.token("dac")
|
||||||
return Fragment([
|
return Fragment([
|
||||||
Cat(self.vga_hsync_n, self.vga_vsync_n, self.vga_r, self.vga_g, self.vga_b).eq(asfifo.outs["data_out"]),
|
|
||||||
asfifo.ins["read_en"].eq(1),
|
asfifo.ins["read_en"].eq(1),
|
||||||
|
|
||||||
self.endpoints["dac"].ack.eq(~asfifo.outs["full"]),
|
self.endpoints["dac"].ack.eq(~asfifo.outs["full"]),
|
||||||
|
@ -200,7 +199,10 @@ class FIFO(Actor):
|
||||||
|
|
||||||
self.busy.eq(0),
|
self.busy.eq(0),
|
||||||
asfifo.ins["rst"].eq(0)
|
asfifo.ins["rst"].eq(0)
|
||||||
], instances=[asfifo])
|
], [
|
||||||
|
Cat(self.vga_hsync_n, self.vga_vsync_n, self.vga_r, self.vga_g, self.vga_b).eq(asfifo.outs["data_out"])
|
||||||
|
],
|
||||||
|
instances=[asfifo])
|
||||||
|
|
||||||
class Framebuffer:
|
class Framebuffer:
|
||||||
def __init__(self, address, asmiport):
|
def __init__(self, address, asmiport):
|
||||||
|
|
Loading…
Reference in New Issue