|
OpenASIP 2.2
|
#include <ImplementationSimulator.hh>


Public Member Functions | |
| ImplementationSimulator (std::string tbFile, std::vector< std::string > hdlFiles, bool verbose, bool leaveDirty) | |
| virtual | ~ImplementationSimulator () |
| virtual bool | compile (std::vector< std::string > &errors)=0 |
| virtual bool | simulate (std::vector< std::string > &errors)=0 |
Protected Member Functions | |
| virtual std::string | createWorkDir () |
| void | setWorkDir (std::string dir) |
| std::string | workDir () const |
| std::string | tbDirectory () const |
| std::string | tbFile () const |
| int | hdlFileCount () const |
| std::string | file (int index) const |
| bool | verbose () |
| void | parseErrorMessages (std::vector< std::string > &inputMsg, std::vector< std::string > &errors) |
Private Member Functions | |
| ImplementationSimulator () | |
Private Attributes | |
| std::string | tbFile_ |
| Testbench file name with path. | |
| std::vector< std::string > | hdlFiles_ |
| Vector containing other vhdl files needed to compile testbench. | |
| std::string | baseDir_ |
| Directory path of testbench file. | |
| std::string | workDir_ |
| Working directory where testbench is compiled and simulated. | |
| std::string | oldCwd_ |
| Old current working directory (before changing to workDir_) | |
| bool | verbose_ |
| Enable verbose output. | |
| bool | leaveDirty_ |
| Don't delete work dir. | |
Definition at line 39 of file ImplementationSimulator.hh.
| ImplementationSimulator::ImplementationSimulator | ( | std::string | tbFile, |
| std::vector< std::string > | hdlFiles, | ||
| bool | verbose, | ||
| bool | leaveDirty | ||
| ) |
Definition at line 42 of file ImplementationSimulator.cc.
References baseDir_, FileSystem::currentWorkingDir(), FileSystem::directoryOfPath(), oldCwd_, and tbFile().

|
virtual |
Definition at line 55 of file ImplementationSimulator.cc.
References FileSystem::changeWorkingDir(), FileSystem::fileExists(), leaveDirty_, oldCwd_, FileSystem::removeFileOrDirectory(), and workDir_.

|
private |
|
pure virtual |
Implemented in GhdlSimulator, and ModelsimSimulator.
Referenced by ImplementationTester::simulateTestbench().
|
protectedvirtual |
Reimplemented in ModelsimSimulator.
Definition at line 66 of file ImplementationSimulator.cc.
References baseDir_, FileSystem::createDirectory(), FileSystem::DIRECTORY_SEPARATOR, and workDir_.
Referenced by GhdlSimulator::compile().

|
protected |
Definition at line 95 of file ImplementationSimulator.cc.
References hdlFiles_.
Referenced by GhdlSimulator::compile(), ModelsimSimulator::compile(), ModelsimSimulator::compileOneFile(), and GhdlSimulator::importFile().
|
protected |
Definition at line 91 of file ImplementationSimulator.cc.
References hdlFiles_.
Referenced by GhdlSimulator::compile(), and ModelsimSimulator::compile().
|
protected |
Definition at line 104 of file ImplementationSimulator.cc.
References FileSystem::fileOfPath(), and tbFile_.
Referenced by GhdlSimulator::simulate(), and ModelsimSimulator::simulate().

|
protected |
Definition at line 75 of file ImplementationSimulator.cc.
References workDir_.
Referenced by ModelsimSimulator::createWorkDir().
|
pure virtual |
Implemented in GhdlSimulator, and ModelsimSimulator.
Referenced by ImplementationTester::simulateTestbench().
|
protected |
Definition at line 83 of file ImplementationSimulator.cc.
References baseDir_.
Referenced by GhdlSimulator::compile(), ModelsimSimulator::compile(), ModelsimSimulator::createWorkDir(), and GhdlSimulator::simulate().
|
protected |
Definition at line 87 of file ImplementationSimulator.cc.
References tbFile_.
Referenced by GhdlSimulator::compile(), ModelsimSimulator::compile(), and ImplementationSimulator().
|
protected |
Definition at line 99 of file ImplementationSimulator.cc.
References verbose_.
Referenced by GhdlSimulator::compileDesign(), ModelsimSimulator::compileOneFile(), ModelsimSimulator::createWorkDir(), GhdlSimulator::importFile(), GhdlSimulator::simulate(), and ModelsimSimulator::simulate().
|
protected |
Definition at line 79 of file ImplementationSimulator.cc.
References workDir_.
Referenced by GhdlSimulator::compile(), ModelsimSimulator::compile(), GhdlSimulator::compileDesign(), GhdlSimulator::importFile(), and GhdlSimulator::simulate().
|
private |
Directory path of testbench file.
Definition at line 82 of file ImplementationSimulator.hh.
Referenced by createWorkDir(), ImplementationSimulator(), and tbDirectory().
|
private |
Vector containing other vhdl files needed to compile testbench.
Definition at line 80 of file ImplementationSimulator.hh.
Referenced by file(), and hdlFileCount().
|
private |
Don't delete work dir.
Definition at line 90 of file ImplementationSimulator.hh.
Referenced by ~ImplementationSimulator().
|
private |
Old current working directory (before changing to workDir_)
Definition at line 86 of file ImplementationSimulator.hh.
Referenced by ImplementationSimulator(), and ~ImplementationSimulator().
|
private |
Testbench file name with path.
Definition at line 78 of file ImplementationSimulator.hh.
Referenced by parseErrorMessages(), and tbFile().
|
private |
Enable verbose output.
Definition at line 88 of file ImplementationSimulator.hh.
Referenced by verbose().
|
private |
Working directory where testbench is compiled and simulated.
Definition at line 84 of file ImplementationSimulator.hh.
Referenced by createWorkDir(), setWorkDir(), workDir(), and ~ImplementationSimulator().