Mercurial > pygar
annotate modules/bluespec/Pygar/lab1/FIRFilter.bsv @ 11:50af57801d6e pygar svn.12
[svn r12] working on getting audio pipe processor working
author | punk |
---|---|
date | Sun, 25 Apr 2010 08:31:47 -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 |