Move Token
This commit is contained in:
parent
3986790621
commit
c44ff8941c
|
@ -1,6 +1,7 @@
|
||||||
from migen.fhdl.structure import *
|
from migen.fhdl.structure import *
|
||||||
from migen.flow.actor import *
|
from migen.flow.actor import *
|
||||||
from migen.flow.network import *
|
from migen.flow.network import *
|
||||||
|
from migen.flow.transactions import *
|
||||||
from migen.flow import plumbing
|
from migen.flow import plumbing
|
||||||
from migen.actorlib import misc, dma_asmi, structuring, sim, spi
|
from migen.actorlib import misc, dma_asmi, structuring, sim, spi
|
||||||
from migen.bank.description import *
|
from migen.bank.description import *
|
||||||
|
@ -158,7 +159,7 @@ class FIFO(Actor):
|
||||||
|
|
||||||
def sim_fifo_gen():
|
def sim_fifo_gen():
|
||||||
while True:
|
while True:
|
||||||
t = sim.Token("dac")
|
t = Token("dac")
|
||||||
yield t
|
yield t
|
||||||
print("H/V:" + str(t.value["hsync"]) + str(t.value["vsync"])
|
print("H/V:" + str(t.value["hsync"]) + str(t.value["vsync"])
|
||||||
+ " " + str(t.value["r"]) + " " + str(t.value["g"]) + " " + str(t.value["b"]))
|
+ " " + str(t.value["r"]) + " " + str(t.value["g"]) + " " + str(t.value["b"]))
|
||||||
|
|
Loading…
Reference in New Issue