diff options
Diffstat (limited to 'uarch/fetch.h')
| -rw-r--r-- | uarch/fetch.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/uarch/fetch.h b/uarch/fetch.h new file mode 100644 index 0000000..452b207 --- /dev/null +++ b/uarch/fetch.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <memory> | ||
| 4 | |||
| 5 | #include "aisa/aisa.h" | ||
| 6 | #include "aisa/simple-models.h" | ||
| 7 | #include "sim/sim.h" | ||
| 8 | #include "sim/queue.h" | ||
| 9 | #include "uarch/types.h" | ||
| 10 | |||
| 11 | namespace uarch { | ||
| 12 | |||
| 13 | struct FetchStage : public sim::Schedulable, aisa::TaskStack, aisa::VectorRF { | ||
| 14 | sim::Queue<FillReq> &fillreqq; | ||
| 15 | sim::Queue<Fill> &fillq; | ||
| 16 | sim::Queue<Uop> &uopq; | ||
| 17 | |||
| 18 | std::unique_ptr<const aisa::Step> step; | ||
| 19 | aisa::Wires wires; | ||
| 20 | bool outstanding_fill = false; | ||
| 21 | bool fill_complete = false; | ||
| 22 | |||
| 23 | FetchStage(sim::Scheduler &scheduler, const aisa::ISA &isa, sim::Queue<FillReq> &fillreqq, sim::Queue<Fill> &fillq, sim::Queue<Uop> &uopq); | ||
| 24 | |||
| 25 | void clock() override; | ||
| 26 | }; | ||
| 27 | |||
| 28 | } | ||
