Commit 4a808e98 authored by Siyuan Niu's avatar Siyuan Niu

small problem of no penalty for fpga

parent 7655a1e2
......@@ -506,12 +506,14 @@ void Simulator::schedule2VCD(std::string& iTraceFileName) const{
}
else if((*i)->toShortString().substr(0,4) == "fpga"){
for(TaskList::const_iterator j = _simComp->getTaskList().begin(); j != _simComp->getTaskList().end(); j++){
std::cout<<"name of fpga is : "<< (*i)->toShortString() << "_" << (*j)->toString() << std::endl;
myfile << "$var wire 1 " << (*i)->toShortString() << "_" << (*j)->toString() << " " << (*i)->toString() << "_" << (*j)->toString() << " $end\n";
aTopElement = new SignalChangeData();
aTopElement->_taskFPGA=(*j);
(*i)->getNextSignalChange(true, aTopElement);
aQueue.push(aTopElement);
if(aTopElement->_device){
std::cout<<"name of fpga is : "<< (*i)->toShortString() << "_" << (*j)->toString() << std::endl;
myfile << "$var wire 1 " << (*i)->toShortString() << "_" << (*j)->toString() << " " << (*i)->toString() << "_" << (*j)->toString() << " $end\n";
aQueue.push(aTopElement);
}
}
}
else{
......
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