annotate modules/bluespec/Pygar/lab1/FIRFilter.bsv @ 72:34fc182a1daa pygar svn.73

[svn r73] fixed bad code
author punk
date Wed, 12 May 2010 00:40:01 -0400
parents 90197e3375e2
children
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@23 13 $display("\n\n\n\n\nFIRFILTER-FIR copies a data\n\n\n\n");
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