def to_module(self, name, clock='CLK', reset='RST'):
        
        m = Module(name)
        clk = m.Input(clock)
        rst = m.Input(reset)

        m = self.implement(m, clk, rst)

        return m

    #---------------------------------------------------------------------------
test that an expression which is dependent on object state is
dataset/ETHPy150Open PyHDI/veriloggen/veriloggen/dataflow/dataflow.py/Dataflow.to_module--crossover with--dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_session.py/SessionStateTest.test_autoflush_expressions