# Path: hdmi/models/constants.py
# CONTROL_TOKEN = [int('1101010100', 2),  # 00
#                  int('0010101011', 2),  # 01
#                  int('0101010100', 2),  # 10
#                  int('1010101011', 2)]  # 11


from myhdl import Signal, intbv, always, always_comb, instances, block
from hdmi.models.constants import CONTROL_TOKEN
            control_end.next = (not control) & _control

        @always(self.clock.posedge)
        def sequential_logic():
            _control.next = control

            if control:
                video_period.next = 0
            elif control_end and self.video_preamble:
                video_period.next = 1

            if control:
                data_island_period.next = 0
            elif control_end and self.data_island_preamble:
                data_island_period.next = 1

            if self.data_in == CONTROL_TOKEN[0]:
                self.c0.next = 0
                self.c1.next = 0
                self.vde.next = 0
                self.ade.next = 0
                control.next = 1

            elif self.data_in == CONTROL_TOKEN[1]:
                self.c0.next = 1
                self.c1.next = 0
                self.vde.next = 0
                self.ade.next = 0
                control.next = 1


# Path: hdmi/models/constants.py
# CONTROL_TOKEN = [int('1101010100', 2),  # 00
#                  int('0010101011', 2),  # 01
#                  int('0101010100', 2),  # 10
#                  int('1010101011', 2)]  # 11


# Path: hdmi/models/decoder_model.py
from myhdl import Signal, intbv, always, always_comb, instances, block
from hdmi.models.constants import CONTROL_TOKEN

            control_end.next = (not control) & _control

        @always(self.clock.posedge)
        def sequential_logic():
            _control.next = control

            if control:
                video_period.next = 0
            elif control_end and self.video_preamble:
                video_period.next = 1

            if control:
                data_island_period.next = 0
            elif control_end and self.data_island_preamble:
                data_island_period.next = 1

            if self.data_in == CONTROL_TOKEN[0]:
                self.c0.next = 0
                self.c1.next = 0
                self.vde.next = 0
                self.ade.next = 0
                control.next = 1

            elif self.data_in == CONTROL_TOKEN[1]:
                self.c0.next = 1
                self.c1.next = 0
                self.vde.next = 0
                self.ade.next = 0
                control.next = 1


            elif self.data_in == CONTROL_TOKEN[2]: