frontend/stream: Apply convert_ip to ip_address.

This commit is contained in:
Florent Kermarrec 2021-09-22 11:14:01 +02:00
parent 27a0b99e54
commit 9b88c0f299
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@ class LiteEthStream2UDPTX(Module):
# # # # # #
ip_address = convert_ip(ip_address)
if fifo_depth is None: if fifo_depth is None:
assert send_level == 1 assert send_level == 1
self.comb += [ self.comb += [
@ -65,6 +67,8 @@ class LiteEthUDP2StreamRX(Module):
# # # # # #
ip_address = convert_ip(ip_address)
valid = Signal() valid = Signal()
self.comb += valid.eq( self.comb += valid.eq(
(sink.ip_address == ip_address) & (sink.ip_address == ip_address) &