comparison modules/bluespec/Pygar/core/Processor.bsv @ 37:0475235d1513 pygar svn.38

[svn r38] fixed audiocorepipe
author punk
date Tue, 04 May 2010 19:25:30 -0400
parents 99519a031813
children ced2ebd41347
comparison
equal deleted inserted replaced
36:99519a031813 37:0475235d1513
78 // Interface to Audio Pipeline 78 // Interface to Audio Pipeline
79 interface Get#(AudioProcessorUnit) sampleOutput; 79 interface Get#(AudioProcessorUnit) sampleOutput;
80 interface Put#(AudioProcessorUnit) sampleInput; 80 interface Put#(AudioProcessorUnit) sampleInput;
81 81
82 endinterface 82 endinterface
83
84 //The full interface for this is as below in the common file for audioProcessorTypes.bsv
85 //interface AudioOut;
86 // interface Get#(AudioProcessorUnit) audioSampleOutput;
87 //endinterface
88
89 //interface AudioIn;
90 // interface Put#(AudioProcessorUnit) audioSampleInput;
91 //endinterface
92 83
93 typedef enum { PCgen, Exec, Writeback } Stage deriving(Eq,Bits); 84 typedef enum { PCgen, Exec, Writeback } Stage deriving(Eq,Bits);
94 85
95 //----------------------------------------------------------- 86 //-----------------------------------------------------------
96 // Register file module 87 // Register file module
583 // outAudioFifo.enq(inAudioFifo.first()); 574 // outAudioFifo.enq(inAudioFifo.first());
584 // inAudioFifo.deq; 575 // inAudioFifo.deq;
585 // endrule 576 // endrule
586 577
587 rule flagAudioEnd (inAudioFifo.first() matches tagged EndOfFile); 578 rule flagAudioEnd (inAudioFifo.first() matches tagged EndOfFile);
588 $display (" Proc Says End Audio Flag Set "); 579 $display (" PROCESSOR End Audio Flag Set ");
589 cp0_audioEOF <= True; 580 cp0_audioEOF <= True;
590 inAudioFifo.deq; 581 inAudioFifo.deq;
591 endrule 582 endrule
592 583
593 rule sendAudioEnd (cp0_progComp); 584 rule sendAudioEnd (cp0_progComp);