comparison modules/bluespec/Pygar/core/Processor.bsv @ 65:cf8bb3038cbd pygar svn.66

[svn r66] sim passes
author punk
date Tue, 11 May 2010 09:05:22 -0400
parents 1d5cbb5343d2
children 44cc00df1168
comparison
equal deleted inserted replaced
64:bf08daea854e 65:cf8bb3038cbd
567 // not actually an ALU instruction but don't have the format otherwise 567 // not actually an ALU instruction but don't have the format otherwise
568 5'd10 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(cp0_statsEn)) }); 568 5'd10 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(cp0_statsEn)) });
569 5'd20 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_fromhost }); 569 5'd20 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_fromhost });
570 5'd21 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_tohost }); 570 5'd21 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_tohost });
571 5'd25 : begin 571 5'd25 : begin
572 // $display( "**** EOF Requested\n "); 572 // $display( "**** EOF Requested");
573 let sample = inAudioFifo.first(); 573 let sample = inAudioFifo.first();
574 case (sample) matches 574 case (sample) matches
575 tagged EndOfFile : 575 tagged EndOfFile :
576 begin 576 begin
577 $display("PROCESSOR sent toC EOF"); 577 $display("PROCESSOR sent toC EOF");
581 tagged Sample .data: 581 tagged Sample .data:
582 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(False)) }); // Reading clears bit 582 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(False)) }); // Reading clears bit
583 endcase 583 endcase
584 end 584 end
585 5'd28 : begin 585 5'd28 : begin
586 // $display( "***** Reqesting Sample \n"); 586 $display( "***** Reqesting Sample");
587 let sample = inAudioFifo.first(); // is this going to cause perf. delay? 587 let sample = inAudioFifo.first(); // is this going to cause perf. delay?
588 if (sample matches tagged Sample .audio) // if it is EOF another rule sets the cp0_audioEOF 588 if (sample matches tagged Sample .audio) // if it is EOF another rule sets the cp0_audioEOF
589 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(audio)) }); // do I need pack? 589 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(audio)) }); // do I need pack?
590 else $display ( "Audio File EOF Reached. Invalid sample request."); 590 else $display ( "Audio File EOF Reached. Invalid sample request.");
591 inAudioFifo.deq(); 591 inAudioFifo.deq();