Mercurial > pygar
diff 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 |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/modules/bluespec/Pygar/lab1/FIRFilter.bsv Fri Apr 23 02:32:05 2010 -0400 1.3 @@ -0,0 +1,21 @@ 1.4 +import ClientServer::*; 1.5 +import GetPut::*; 1.6 +import FIFO::*; 1.7 + 1.8 +import AC97Common::*; 1.9 + 1.10 +module FIRFilter (Server#(AC97Sample)); 1.11 + FIFO#(AC97Sample) infifo <- mkFIFO; 1.12 + FIFO#(AC97Sample) outfifo <- mkFIFO; 1.13 + 1.14 + // for now, we don't do anything. 1.15 + rule connectReqResp; 1.16 + $display("FIR copies a data"); 1.17 + outfifo.enq(infifo.first); 1.18 + outfifo.deq; 1.19 + endrule 1.20 + 1.21 + 1.22 + interface request = fifoToPut(infifo); 1.23 + interface response = fifoToGet(outfifo); 1.24 +endmodule 1.25 \ No newline at end of file