add constructor with output to sim output artifact

This commit is contained in:
Fabian Posch 2024-01-29 15:26:00 -05:00
parent c370fbc209
commit 92da7dfb62
2 changed files with 11 additions and 2 deletions

View file

@ -179,8 +179,6 @@ struct testcase_t {
std::string top;
/** This simulation should be run by multiple noes */
bool parallelizable;
/** Maximum pipeline load factor that should be allowed */
float max_plf;
};
/**
@ -190,6 +188,7 @@ class SimConfigArtifact: public Artifact {
public:
SimConfigArtifact();
SimConfigArtifact(bool has_reference) { this->has_reference_ = has_reference; };
/**
* @brief Get the content of the artifact
@ -222,6 +221,8 @@ class SimConfigArtifact: public Artifact {
*/
long get_size() { return testcases.size(); };
const bool& has_reference = has_reference_;
/**
* @brief Can this simulation be handled by multiple nodes
*
@ -241,6 +242,7 @@ class SimConfigArtifact: public Artifact {
private:
bool has_reference_;
std::vector<testcase_t> testcases;
};
@ -295,6 +297,8 @@ class SignalListArtifact: public Artifact {
class SimOutputArtifact: public Artifact {
public:
SimOutputArtifact(const std::vector<std::string>& sim_log, const std::vector<std::string>& error_log);
/**
* @brief Get the content of the artifact
*

View file

@ -46,4 +46,9 @@ void SimOutputArtifact::add_err_output(std::string log_line) {
this->sim_err_log.emplace_back(log_line);
}
SimOutputArtifact::SimOutputArtifact(const std::vector<std::string>& sim_log, const std::vector<std::string>& error_log) {
this->sim_log = sim_log;
this->sim_err_log = error_log;
}
}