Exemplo n.º 1
0
def mantle_test():
    """
    Clear the circuit cache before running, allows name reuse across tests
    without collisions
    """
    import magma.config
    magma.config.set_compile_dir('callee_file_dir')
    magma_clear_circuit_cache()
    clear_cachedFunctions()
Exemplo n.º 2
0
def mantle_test():
    """
    Clear the circuit cache before running, allows name reuse across tests
    without collisions
    """
    import magma.config
    magma.config.set_compile_dir('callee_file_dir')
    fault.config.set_test_dir('callee_file_dir')
    CoreIRContextSingleton().reset_instance()
    clear_cachedFunctions()
Exemplo n.º 3
0
def mantle_test():
    """
    Clear the circuit cache before running, allows name reuse across tests
    without collisions
    """
    import magma.config
    magma.config.set_compile_dir('callee_file_dir')

    from magma import clear_cachedFunctions
    clear_cachedFunctions()

    from magma.circuit import magma_clear_circuit_cache
    magma_clear_circuit_cache()

    magma.backend.coreir_.__reset_context()
Exemplo n.º 4
0
def magma_test():
    clear_cachedFunctions()
    coreir_.__reset_context()
def magma_test():
    import magma.config
    clear_cachedFunctions()
    magma.backend.coreir_.CoreIRContextSingleton().reset_instance()
Exemplo n.º 6
0
def magma_test():
    magma_clear_circuit_cache()
    clear_cachedFunctions()
    coreir_.__reset_context()
Exemplo n.º 7
0
def magma_test():
    clear_cachedFunctions()
    coreir_.CoreIRContextSingleton().reset_instance()
    clear_generator_cache()
Exemplo n.º 8
0
def magma_test():
    import magma.config
    magma.config.set_compile_dir('callee_file_dir')
    clear_cachedFunctions()
    magma.backend.coreir_.CoreIRContextSingleton().reset_instance()
Exemplo n.º 9
0
def magma_test():
    import magma.config
    magma.config.set_compile_dir('callee_file_dir')
    clear_cachedFunctions()
    magma.backend.coreir_.__reset_context()
Exemplo n.º 10
0
def magma_test():
    clear_cachedFunctions()
    magma.backend.coreir_.__reset_context()
Exemplo n.º 11
0
def magma_test():
    clear_generator_cache()
    magma.clear_cachedFunctions()
    magma.frontend.coreir_.ResetCoreIR()
    magma.generator.reset_generator_cache()
Exemplo n.º 12
0
def build_module_from_magma(mod_name, magma_circuit):
    m.compile(mod_name, magma_circuit, output="coreir")
    m.clear_cachedFunctions()
    os_cmd("coreir -i " + mod_name + ".json" + " -o " + mod_name + ".v")
    add_verilator_warn_silencing(mod_name + ".v")
    build_module(mod_name)
Exemplo n.º 13
0
def magma_test():
    clear_cachedFunctions()
    magma.backend.coreir_.CoreIRContextSingleton().reset_instance()
    logging.getLogger().setLevel(logging.DEBUG)
Exemplo n.º 14
0
def kratos_test():
    clear_cachedFunctions()
    magma.frontend.coreir_.ResetCoreIR()
    clear_context()