comparison modules/bluespec/Pygar/core/Processor.bsv @ 23:90197e3375e2 pygar svn.24

[svn r24] added testing, but something is wrong with our c++ file.
author rlm
date Wed, 28 Apr 2010 08:19:09 -0400
parents cffe0829ce14
children 220c14f5963c
comparison
equal deleted inserted replaced
22:0cfbb1e2de22 23:90197e3375e2
571 endcase 571 endcase
572 endrule 572 endrule
573 573
574 // for now, we don't do anything. 574 // for now, we don't do anything.
575 rule connectAudioReqResp; 575 rule connectAudioReqResp;
576 $display("FIR copies a data"); 576 $display("rlm: PROCESSOR copies a datum\n");
577 outAudioFifo.enq(inAudioFifo.first); 577 outAudioFifo.enq(inAudioFifo.first());
578 outAudioFifo.deq; 578 inAudioFifo.deq;
579 endrule 579 endrule
580 580
581 // Server items & rules: 581 // Server items & rules:
582 582
583 rule feedInput; 583 rule feedInput;
584 let command <- server_stub.acceptRequest_SendUnprocessedStream(); 584 let command <- server_stub.acceptRequest_SendUnprocessedStream();
585 AudioProcessorControl ctrl = unpack(truncate(command.ctrl)); 585 AudioProcessorControl ctrl = unpack(truncate(command.ctrl));
586 586 $display("rlm: PROCESSOR: recieved data\n");
587 if(ctrl == EndOfFile) 587 if(ctrl == EndOfFile)
588 begin 588 begin
589 inAudioFifo.enq(tagged EndOfFile); 589 inAudioFifo.enq(tagged EndOfFile);
590 end 590 end
591 else 591 else