Commit 00c74615 authored by Siyuan Niu's avatar Siyuan Niu

fpga simple mode vcd is ok

parent 4a808e98
......@@ -282,22 +282,21 @@ void FPGA::getNextSignalChange(bool iInit, SignalChangeData* oSigData){
// std::cout<<"transaction core number is "<< (*i)->getTransFpgaNumber()<<std::endl;
// std::cout<<"cpu core number "<< oSigData->_transNumberVcd<<std::endl;
if( (*i)-> getCommand()->getTask() == oSigData->_taskFPGA){
if((*i)-> getCommand()->getTask() == oSigData->_taskFPGA){
std::cout<<"bingo!!"<<(*i)->toShortString()<<std::endl;
if (iInit){
_posTrasactListVCD= i;
_previousTransEndTime=0;
(*i)->setTransVcdOutPutState(END_IDLE_TRANS);
std::cout<<"init"<<std::endl;
std::cout<<"init start time "<<(*_posTrasactListVCD)->getStartTime()<<std::endl;
if (_posTrasactListVCD != _transactList.end() && (*_posTrasactListVCD)->getStartTime()!=0){
std::cout<<"next idle"<<std::endl;
new (oSigData) SignalChangeData(END_IDLE_TRANS, 0, this);
(*i)->setTransVcdOutPutState(END_IDLE_TRANS);
return;
}
}
if ((*i)->getEndState() == true){
std::cout<<"end trans"<<(*i)->getEndTime()<<std::endl;
new (oSigData) SignalChangeData(END_IDLE_TRANS, (*i)->getEndTime(), this);
......@@ -313,7 +312,7 @@ void FPGA::getNextSignalChange(bool iInit, SignalChangeData* oSigData){
_previousTransEndTime=(*_posTrasactListVCD)->getEndTime();
_posTrasactListVCD++;
while(_posTrasactListVCD != _transactList.end()){
if((*_posTrasactListVCD)->getTransactCoreNumber() == oSigData->_coreNumberVcd)
if((*_posTrasactListVCD)->getCommand()->getTask() == oSigData->_taskFPGA)
break;
else
_posTrasactListVCD++;
......
......@@ -521,7 +521,6 @@ void Simulator::schedule2VCD(std::string& iTraceFileName) const{
myfile << "$var wire 2 " << (*i)->toShortString() << " " << (*i)->toString() << " $end\n";
else
myfile << "$var wire 1 " << (*i)->toShortString() << " " << (*i)->toString() << " $end\n";
std::cout<<"in trans!!!"<<std::endl;
aTopElement = new SignalChangeData();
(*i)->getNextSignalChange(true, aTopElement);
aQueue.push(aTopElement);
......
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