examples/helloworld: use new nmigen read_port comb API
This commit is contained in:
parent
1c0c4cee1b
commit
5d5853d3f8
@ -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()
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user