lab5: add print_stats() per requirements
This commit is contained in:
@@ -59,6 +59,7 @@ private:
|
||||
std::vector<Command> *program_memory;
|
||||
std::array<MemCell, DYN_PIPELINE_MEM_SIZE> data_memory;
|
||||
std::array<int, DYN_PIPELINE_LAYERS> layer_cmd {-1};
|
||||
std::vector<std::pair<int, int>> layer_util;
|
||||
unsigned int pc {0};
|
||||
unsigned int system_time;
|
||||
|
||||
@@ -72,6 +73,7 @@ private:
|
||||
public:
|
||||
void init(const std::vector<Command> * const prg, const std::array<double, DYN_PIPELINE_MEM_SIZE>& mem, const int init_mem_size);
|
||||
void run(void);
|
||||
void print_stats(void) const;
|
||||
};
|
||||
|
||||
class SystemOOE
|
||||
@@ -80,6 +82,7 @@ private:
|
||||
std::vector<CommandOOE> *program_memory;
|
||||
std::array<MemCell, DYN_PIPELINE_MEM_SIZE> data_memory;
|
||||
std::array<int, DYN_PIPELINE_LAYERS> layer_cmd {-1};
|
||||
std::vector<std::pair<int, int>> layer_util;
|
||||
unsigned int system_time;
|
||||
|
||||
void print_program_memory(void) const;
|
||||
@@ -92,6 +95,7 @@ private:
|
||||
public:
|
||||
void init(const std::vector<CommandOOE> * const prg, const std::array<double, DYN_PIPELINE_MEM_SIZE>& mem, const int init_mem_size);
|
||||
void run(void);
|
||||
void print_stats(void) const;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user