Commit 4869fee2 authored by Siyuan Niu's avatar Siyuan Niu

simulator seems ok

parent 677ff8c1
......@@ -251,6 +251,8 @@ class TMLTransaction {
inline unsigned int getTransactCoreNumber() {return _transactCoreNumber;}
inline void setTransactCoreNumber(unsigned int num) {_transactCoreNumber=num;}
inline void setTransVcdOutPutState(vcdTransVisState n) {_transVcdOutputState=n;}
// inline void setCurrDevice(SchedulableDevice* device) {_currDevice=device;}
// inline SchedulableDevice* getCurrDevice() {return _currDevice;}
// inline void setPreviousTransEndTime(unsigned int n) {_previousTransEndTime=n;}
//inline unsigned int getPreviousTransEndTime() {return _previousTransEndTime;}
inline vcdTransVisState getTransVcdOutPutState() {return _transVcdOutputState;}
......@@ -278,6 +280,8 @@ class TMLTransaction {
bool _endState;
///previous end time for the cpu VCD output
// unsigned int _previousTransEndTime;
//device executes the current device
// SchedulableDevice* currDevice;
#ifdef PENALTIES_ENABLED
///Idle penalty
TMLTime _idlePenalty;
......
......@@ -154,6 +154,7 @@ public:
inline void setCycleTime (unsigned int t) { _cycleTime =t; }
inline unsigned int getCycleTime() { return _cycleTime; }
inline std::string getName() {return _name;}
protected:
///Unique ID of the device
ID _ID;
......
......@@ -293,13 +293,13 @@ protected:
\param oResultDevice Pointer to the CPU which is running the returned transaction
\return Pointer to transaction with lowest end time
*/
TMLTransaction* getTransLowestEndTimeCPU(SchedulableDevice*& oResultDevice) const;
TMLTransaction* getTransLowestEndTime(SchedulableDevice*& oResultDevice) const;
///Returns a pointer to the transaction with the lowest end time proposed by FPGA schedulers
/**
\param oResultDevice Pointer to the FPGA which is running the returned transaction
\return Pointer to transaction with lowest end time
*/
TMLTransaction* getTransLowestEndTimeFPGA(SchedulableDevice*& oResultDevice) const;
//TMLTransaction* getTransLowestEndTimeFPGA(SchedulableDevice*& oResultDevice) const;
///Decodes a simulation command
/**
\param iCmd Pointer to the command
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment