Skip to content
Snippets Groups Projects
Commit bee21a82 authored by Pepping's avatar Pepping
Browse files

Redirect to dop17

parent 9f265371
No related branches found
No related tags found
No related merge requests found
...@@ -149,7 +149,7 @@ def gen_bg_hex_files(c_framesize = 64, c_nof_streams = 4): ...@@ -149,7 +149,7 @@ def gen_bg_hex_files(c_framesize = 64, c_nof_streams = 4):
for j in range(c_framesize): for j in range(c_framesize):
data_in = fh.readline() data_in = fh.readline()
if data_in: if data_in:
stream_re.append(int(data_in)) stream_re.append(int(data_in,0))
else: else:
stream_re.append(99) stream_re.append(99)
data.append(stream_re) data.append(stream_re)
...@@ -190,8 +190,8 @@ dpotx.write(inst_nrs=STREAM_ID, registers=registers, regmap=dpotx.regmap) ...@@ -190,8 +190,8 @@ dpotx.write(inst_nrs=STREAM_ID, registers=registers, regmap=dpotx.regmap)
# From Compaan to DB: set dst MAC and IP of node[0] to MAC and IP of node[1] # From Compaan to DB: set dst MAC and IP of node[0] to MAC and IP of node[1]
dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', c_eth_dst_mac + 1)], regmap=dpotx_hdr_dat.regmap) #dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', c_eth_dst_mac + 1)], regmap=dpotx_hdr_dat.regmap)
dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('ip_dst_ip', c_eth_dst_ip + 1 +1)], regmap=dpotx_hdr_dat.regmap) #dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('ip_dst_ip', c_eth_dst_ip + 1 +1)], regmap=dpotx_hdr_dat.regmap)
# From BG to Compaan: set dst MAC and IP of node[0] to MAC and IP of node[1] # From BG to Compaan: set dst MAC and IP of node[0] to MAC and IP of node[1]
dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[1], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', c_eth_dst_mac + 0)], regmap=dpotx_hdr_dat.regmap) dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[1], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', c_eth_dst_mac + 0)], regmap=dpotx_hdr_dat.regmap)
...@@ -205,6 +205,10 @@ dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[1], inst_nrs=tc.gpNumbers, registers=[(' ...@@ -205,6 +205,10 @@ dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[1], inst_nrs=tc.gpNumbers, registers=[('
#dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', c_mac_jop63)], regmap=dpotx_hdr_dat.regmap) #dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', c_mac_jop63)], regmap=dpotx_hdr_dat.regmap)
#dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('ip_dst_addr', c_ip_jop63)], regmap=dpotx_hdr_dat.regmap) #dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('ip_dst_addr', c_ip_jop63)], regmap=dpotx_hdr_dat.regmap)
## From Compaan to DOP17
dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', 0x0030482D82A1)], regmap=dpotx_hdr_dat.regmap)
dpotx_hdr_dat.write(node_nrs=tc.nodeNrs[0], inst_nrs=tc.gpNumbers, registers=[('ip_dst_addr', 0x0A6300FE)], regmap=dpotx_hdr_dat.regmap)
# Now override the eth_dst_mac field so it is no longer read from the data path but from the MM register we've just written to. # Now override the eth_dst_mac field so it is no longer read from the data path but from the MM register we've just written to.
#dpotx_hdr_ovr.write(inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', 1)], regmap=dpotx_hdr_ovr.regmap) #dpotx_hdr_ovr.write(inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', 1)], regmap=dpotx_hdr_ovr.regmap)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment