def visit_Sens(self, node):
        if node.type == 'posedge':
            sig = self.visit(node.sig)
            return vtypes.Posedge(sig)
        if node.type == 'negedge':
            sig = self.visit(node.sig)
            return vtypes.Negedge(sig)
        if node.type == 'all':
            return vtypes.SensitiveAll()
        if node.type == 'level':
            sig = self.visit(node.sig)
            return sig
        raise TypeError("Unsupported sensitivity type '%s'" % node.type)
dataset/ETHPy150Open PyHDI/veriloggen/veriloggen/verilog/from_verilog.py/VerilogReadVisitor.visit_Sens/original