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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [AsmTestCompiler.h] - Rev 2

Compare with Previous | Blame | View Log

/*
 * AsmTestCompiler.h
 *
 *  Created on: Oct 28, 2018
 *      Author: ballance
 */
 
#ifndef INCLUDED_ASM_TEST_COMPILER_H
#define INCLUDED_ASM_TEST_COMPILER_H
#include <string>
 
class AsmTestCompiler {
public:
	static bool compile(
			const std::string	&basename,
			const std::string 	&program,
			const std::string 	&out="ram.hex");
 
protected:
	AsmTestCompiler(
			const std::string	&basename,
			const std::string 	&program,
			const std::string 	&out="ram.hex");
 
	virtual ~AsmTestCompiler();
 
	virtual bool compile();
 
	bool tohex(const std::string &file_vlog, const std::string &file_hex);
 
private:
	std::string					m_basename;
	std::string					m_program;
	std::string					m_out;
};
 
#endif /* INCLUDED_ASM_TEST_COMPILER_H */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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