def etherbone_packet_user_description(dw): layout = etherbone_packet_header.get_layout() layout = _remove_from_layout(layout, "magic", "portsize", "addrsize", "version") layout += user_description(dw).payload_layout return stream.EndpointDescription(layout)
def etherbone_mmap_description(dw): layout = [ ("we", 1), ("count", 8), ("base_addr", 32), ("be", dw//8), ("addr", 32), ("data", dw) ] return stream.EndpointDescription(layout)
def user_description(dw): layout = [ ("data", 32), ("length", 32) ] return stream.EndpointDescription(layout)
def phy_description(dw): layout = [("data", dw)] return stream.EndpointDescription(layout)
def etherbone_record_description(dw): layout = etherbone_record_header.get_layout() layout += [("data", dw)] return stream.EndpointDescription(layout)