Mercurial > pygar
comparison modules/bluespec/Pygar/core/Processor.bsv @ 49:61f6267cb3db pygar svn.50
[svn r50] removed problematic stats stuff
author | rlm |
---|---|
date | Wed, 05 May 2010 14:40:48 -0400 |
parents | 4d87fa55a776 |
children | 2b18894f75e2 |
comparison
equal
deleted
inserted
replaced
48:a139cc07b773 | 49:61f6267cb3db |
---|---|
260 // Reg#(Stat) num_cycles <- mkReg(0); | 260 // Reg#(Stat) num_cycles <- mkReg(0); |
261 // Reg#(Stat) num_inst <- mkReg(0); | 261 // Reg#(Stat) num_inst <- mkReg(0); |
262 | 262 |
263 //Or: | 263 //Or: |
264 // Statistics state | 264 // Statistics state |
265 STAT num_cycles <- mkStatCounter(`STATS_PROCESSOR_CYCLE_COUNT); | 265 |
266 STAT num_inst <- mkStatCounter(`STATS_PROCESSOR_INST_COUNT); | 266 //rlm: removing these to avoid their broken stupidness. |
267 //STAT num_cycles <- mkStatCounter(`STATS_PROCESSOR_CYCLE_COUNT); | |
268 //STAT num_inst <- mkStatCounter(`STATS_PROCESSOR_INST_COUNT); | |
267 | 269 |
268 //----------------------------------------------------------- | 270 //----------------------------------------------------------- |
269 // Rules | 271 // Rules |
270 | 272 |
271 (* descending_urgency = "exec, pcgen" *) | 273 (* descending_urgency = "exec, pcgen" *) |
533 pcQ.clear(); | 535 pcQ.clear(); |
534 pc <= newPC; | 536 pc <= newPC; |
535 end | 537 end |
536 else | 538 else |
537 pcQ.deq(); | 539 pcQ.deq(); |
538 | 540 //rlm: removing |
539 if ( cp0_statsEn ) | 541 // if ( cp0_statsEn ) |
540 num_inst.incr(); | 542 // num_inst.incr(); |
541 | 543 |
542 endrule | 544 endrule |
543 | 545 |
544 rule writeback; // ( stage == Writeback ); | 546 rule writeback; // ( stage == Writeback ); |
545 traceTiny("mkProc", "writeback","W"); | 547 traceTiny("mkProc", "writeback","W"); |
559 tagged WB_Host .dat : noAction; | 561 tagged WB_Host .dat : noAction; |
560 endcase | 562 endcase |
561 | 563 |
562 endrule | 564 endrule |
563 | 565 |
564 rule inc_num_cycles; | 566 //rlm remove |
565 if ( cp0_statsEn ) | 567 // rule inc_num_cycles; |
566 num_cycles.incr(); | 568 // if ( cp0_statsEn ) |
567 endrule | 569 // num_cycles.incr(); |
570 // endrule | |
568 | 571 |
569 /* | 572 /* |
570 // for now, we don't do anything. | 573 // for now, we don't do anything. |
571 rule connectAudioReqResp; | 574 rule connectAudioReqResp; |
572 $display("rlm: PROCESSOR copies a datum\n"); | 575 $display("rlm: PROCESSOR copies a datum\n"); |