Advertisement
Guest User

Untitled

a guest
Mar 10th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. source = SimActor(counter(), ("source", Source, [("value", 16)]))
  2. conv = DownConverter(16, 1)
  3. i2s = I2S(1, lrclk, bclk, data)
  4.  
  5. g = DataFlowGraph()
  6. g.add_connection(source, conv)
  7. g.add_connection(conv, i2s)
  8. comp = CompositeActor(g)
  9. sim = Simulator(comp.get_fragment(), TopLevel("my.vcd"))
  10. sim.run(500)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement