Mercurial > pygar
annotate modules/bluespec/Pygar/lab1/FIRFilter.bsv @ 13:6d461680c6d9 pygar svn.14
[svn r14] more stuff
author | punk |
---|---|
date | Tue, 27 Apr 2010 09:03:28 -0400 |
parents | 74716e9a81cc |
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 |