OpenCores
URL https://opencores.org/ocsvn/fwrisc/fwrisc/trunk

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [AsmTestCompiler.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
/*
2
 * AsmTestCompiler.h
3
 *
4
 *  Created on: Oct 28, 2018
5
 *      Author: ballance
6
 */
7
 
8
#ifndef INCLUDED_ASM_TEST_COMPILER_H
9
#define INCLUDED_ASM_TEST_COMPILER_H
10
#include <string>
11
 
12
class AsmTestCompiler {
13
public:
14
        static bool compile(
15
                        const std::string       &basename,
16
                        const std::string       &program,
17
                        const std::string       &out="ram.hex");
18
 
19
protected:
20
        AsmTestCompiler(
21
                        const std::string       &basename,
22
                        const std::string       &program,
23
                        const std::string       &out="ram.hex");
24
 
25
        virtual ~AsmTestCompiler();
26
 
27
        virtual bool compile();
28
 
29
        bool tohex(const std::string &file_vlog, const std::string &file_hex);
30
 
31
private:
32
        std::string                                     m_basename;
33
        std::string                                     m_program;
34
        std::string                                     m_out;
35
};
36
 
37
#endif /* INCLUDED_ASM_TEST_COMPILER_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.