examples/helloworld: use new nmigen read_port comb API

This commit is contained in:
Sebastien Bourdeauducq 2019-07-03 11:29:07 +08:00
parent 1c0c4cee1b
commit 5d5853d3f8
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class Top(Elaboratable):
string = "Hello World!\r\n" string = "Hello World!\r\n"
mem = Memory(width=8, depth=len(string), mem = Memory(width=8, depth=len(string),
init=[ord(c) for c in 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() wait = Signal()

View File

@ -22,7 +22,7 @@ class Top(Elaboratable):
string = "Hello World!\r\n" string = "Hello World!\r\n"
mem = Memory(width=8, depth=len(string), mem = Memory(width=8, depth=len(string),
init=[ord(c) for c in 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)) tx = uart.RS232TX(round(2**32*self.baudrate/156e6))
m.submodules.tx = tx m.submodules.tx = tx