annotate modules/bluespec/Pygar/lab1/FIRFilter.bsv @ 8:74716e9a81cc pygar svn.9

[svn r9] Pygar now has the proper directory structure to play nicely with awb. Also, the apm file for audio-core willcompile successfully.
author rlm
date Fri, 23 Apr 2010 02:32:05 -0400
parents
children 90197e3375e2
rev   line source
rlm@8 1 import ClientServer::*;
rlm@8 2 import GetPut::*;
rlm@8 3 import FIFO::*;
rlm@8 4
rlm@8 5 import AC97Common::*;
rlm@8 6
rlm@8 7 module FIRFilter (Server#(AC97Sample));
rlm@8 8 FIFO#(AC97Sample) infifo <- mkFIFO;
rlm@8 9 FIFO#(AC97Sample) outfifo <- mkFIFO;
rlm@8 10
rlm@8 11 // for now, we don't do anything.
rlm@8 12 rule connectReqResp;
rlm@8 13 $display("FIR copies a data");
rlm@8 14 outfifo.enq(infifo.first);
rlm@8 15 outfifo.deq;
rlm@8 16 endrule
rlm@8 17
rlm@8 18
rlm@8 19 interface request = fifoToPut(infifo);
rlm@8 20 interface response = fifoToGet(outfifo);
rlm@8 21 endmodule