Browse Source

examples/helloworld: use new nmigen read_port comb API

pull/1/head
parent
commit
5d5853d3f8
  1. 2
      examples/helloworld_ecp5.py
  2. 2
      examples/helloworld_kintex7.py

2
examples/helloworld_ecp5.py

@ -20,7 +20,7 @@ class Top(Elaboratable):
string = "Hello World!\r\n"
mem = Memory(width=8, depth=len(string),
init=[ord(c) for c in string])
m.submodules.rdport = rdport = mem.read_port(synchronous=False)
m.submodules.rdport = rdport = mem.read_port(domain="comb")
wait = Signal()

2
examples/helloworld_kintex7.py

@ -22,7 +22,7 @@ class Top(Elaboratable):
string = "Hello World!\r\n"
mem = Memory(width=8, depth=len(string),
init=[ord(c) for c in string])
m.submodules.rdport = rdport = mem.read_port(synchronous=False)
m.submodules.rdport = rdport = mem.read_port(domain="comb")
tx = uart.RS232TX(round(2**32*self.baudrate/156e6))
m.submodules.tx = tx

Loading…
Cancel
Save