comparison modules/bluespec/Pygar/core/Processor.bsv @ 53:2991344775f8 pygar svn.54

[svn r54] mixer integrated
author punk
date Sun, 09 May 2010 10:58:40 -0400
parents 9fe5ed4af92d
children 1d5cbb5343d2
comparison
equal deleted inserted replaced
52:49049f97312c 53:2991344775f8
499 // not actually an ALU instruction but don't have the format otherwise 499 // not actually an ALU instruction but don't have the format otherwise
500 5'd10 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(cp0_statsEn)) }); 500 5'd10 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(cp0_statsEn)) });
501 5'd20 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_fromhost }); 501 5'd20 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_fromhost });
502 5'd21 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_tohost }); 502 5'd21 : wbQ.enq(tagged WB_ALU {dest:it.rdst, data:cp0_tohost });
503 5'd25 : begin 503 5'd25 : begin
504 $display( "**** EOF Requested\n "); 504 // $display( "**** EOF Requested\n ");
505 let sample = inAudioFifo.first(); 505 let sample = inAudioFifo.first();
506 case (sample) matches 506 case (sample) matches
507 tagged EndOfFile : 507 tagged EndOfFile :
508 begin 508 begin
509 $display("PROCESSOR sent toC EOF"); 509 $display("PROCESSOR sent toC EOF");
513 tagged Sample .data: 513 tagged Sample .data:
514 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(False)) }); // Reading clears bit 514 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(False)) }); // Reading clears bit
515 endcase 515 endcase
516 end 516 end
517 5'd28 : begin 517 5'd28 : begin
518 $display( "***** Reqesting Sample \n"); 518 // $display( "***** Reqesting Sample \n");
519 let sample = inAudioFifo.first(); // is this going to cause perf. delay? 519 let sample = inAudioFifo.first(); // is this going to cause perf. delay?
520 if (sample matches tagged Sample .audio) // if it is EOF another rule sets the cp0_audioEOF 520 if (sample matches tagged Sample .audio) // if it is EOF another rule sets the cp0_audioEOF
521 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(audio)) }); // do I need pack? 521 wbQ.enq(tagged WB_ALU {dest:it.rdst, data:zext(pack(audio)) }); // do I need pack?
522 else $display ( "Audio File EOF Reached. Invalid sample request."); 522 else $display ( "Audio File EOF Reached. Invalid sample request.");
523 inAudioFifo.deq(); 523 inAudioFifo.deq();