diff --git a/applications/compaan/designs/compaan_unb1_dp_offload/tb/python/dev.py b/applications/compaan/designs/compaan_unb1_dp_offload/tb/python/dev.py index 5fdba58cd7208c4c590c772241cee519bf0963bb..b9770b97f06275cf9ef8070cf0401936fc8dfd01 100644 --- a/applications/compaan/designs/compaan_unb1_dp_offload/tb/python/dev.py +++ b/applications/compaan/designs/compaan_unb1_dp_offload/tb/python/dev.py @@ -149,7 +149,7 @@ def gen_bg_hex_files(c_framesize = 64, c_nof_streams = 4): for j in range(c_framesize): data_in = fh.readline() if data_in: - stream_re.append(int(data_in)) + stream_re.append(int(data_in,0)) else: stream_re.append(99) data.append(stream_re) @@ -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] -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=[('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) # 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) @@ -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=[('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. #dpotx_hdr_ovr.write(inst_nrs=tc.gpNumbers, registers=[('eth_dst_mac', 1)], regmap=dpotx_hdr_ovr.regmap)