예제 #1
0
def dump_to_p4_P4FieldList(self, hlir):
    entries = []
    for entry in self.entries:
        entries.append(entry.dump_to_p4(hlir))
    g_field_list = p4_field_list(hlir,
                                 self.name,
                                 fields=entries,
                                 filename=self.filename,
                                 lineno=self.lineno)
    g_field_list._pragmas = self._pragmas.copy()
예제 #2
0
def dump_to_p4_P4FieldList(self, hlir):
    entries = []
    for entry in self.entries:
        entries.append(entry.dump_to_p4(hlir))
    g_field_list = p4_field_list(
        hlir,
        self.name, fields = entries,
        filename = self.filename, lineno = self.lineno
    )
    g_field_list._pragmas = self._pragmas.copy()