Mercurial > pygar
annotate modules/bluespec/Pygar/lab1/FIRFilter.bsv @ 61:74d2fe78f36a pygar svn.62
[svn r62] synthesis boundaries
author | punk |
---|---|
date | Mon, 10 May 2010 20:31:25 -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 |