diff modules/bluespec/Pygar/core/Processor.bsv @ 25:220c14f5963c pygar svn.26

[svn r26] Not fully connected but passes audio successfully
author punk
date Wed, 28 Apr 2010 12:01:37 -0400
parents 90197e3375e2
children f5dfbe28fa59
line wrap: on
line diff
     1.1 --- a/modules/bluespec/Pygar/core/Processor.bsv	Wed Apr 28 08:29:04 2010 -0400
     1.2 +++ b/modules/bluespec/Pygar/core/Processor.bsv	Wed Apr 28 12:01:37 2010 -0400
     1.3 @@ -21,7 +21,6 @@
     1.4  // THE SOFTWARE.
     1.5  
     1.6  
     1.7 -
     1.8  import Connectable::*;
     1.9  import GetPut::*;
    1.10  import ClientServer::*;
    1.11 @@ -573,7 +572,7 @@
    1.12  
    1.13   // for now, we don't do anything.
    1.14    rule connectAudioReqResp;
    1.15 -    $display("rlm: PROCESSOR copies a datum\n");
    1.16 +//    $display("rlm: PROCESSOR copies a datum\n");
    1.17      outAudioFifo.enq(inAudioFifo.first());
    1.18      inAudioFifo.deq;
    1.19    endrule
    1.20 @@ -583,13 +582,14 @@
    1.21     rule feedInput;
    1.22       let command <- server_stub.acceptRequest_SendUnprocessedStream();
    1.23       AudioProcessorControl ctrl = unpack(truncate(command.ctrl));
    1.24 -      $display("rlm: PROCESSOR: recieved data\n");
    1.25       if(ctrl == EndOfFile)
    1.26 -	begin  
    1.27 +	begin
    1.28 +//	  $display("lsp: PROCESSOR received EOF   ");
    1.29            inAudioFifo.enq(tagged EndOfFile);
    1.30         end
    1.31       else 
    1.32 -       begin
    1.33 +	begin
    1.34 +//	  $display("lsp: PROCESSOR received Data   ");
    1.35            inAudioFifo.enq(tagged Sample unpack(truncate(command.sample)));
    1.36         end
    1.37     endrule