Move Token

This commit is contained in:
Sebastien Bourdeauducq 2012-12-14 15:54:16 +01:00
parent 3986790621
commit c44ff8941c
1 changed files with 2 additions and 1 deletions

View File

@ -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"]))