Skip to content

Commit

Permalink
core/arp: Fix mem_wr_port alias direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Oct 13, 2023
1 parent 9d13f61 commit 09d31b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions liteeth/core/arp.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def __init__(self, entries, clk_freq):
mem_wr_port_ip_address = Signal(32)
mem_wr_port_mac_address = Signal(48)
self.comb += [
mem_wr_port_valid.eq(mem_wr_port.dat_w[80]),
mem_wr_port_ip_address.eq(mem_wr_port.dat_w[0:32]),
mem_wr_port_mac_address.eq(mem_wr_port.dat_w[32:80]),
mem_wr_port.dat_w[80].eq(mem_wr_port_valid),
mem_wr_port.dat_w[0:32].eq(mem_wr_port_ip_address),
mem_wr_port.dat_w[32:80].eq(mem_wr_port_mac_address),
]

# Memory rd_port aliases.
Expand Down

0 comments on commit 09d31b5

Please sign in to comment.