123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #include "timebuf.hh"
- #include <vector>
- #include <cstdint>
- typedef struct
- {
- uint32_t data[16];
- } TReg;
- struct WriteData
- {
- bool valid;
- int idx;
- TReg data;
- };
- struct WriteBuf
- {
- TimeBuffer<WriteData> buf;
- int latency;
- WriteBuf(int lat): buf(0,9), latency(lat)
- {}
- };
- class BIU
- {
- std::vector<WriteBuf> toSHU;
- public:
- BIU()
- {
- for (int i = 0; i < 100; i++) {
- toSHU.emplace_back(1);
- }
- }
- };
- int main()
- {
- BIU biu;
- while (1);
- }
|