Mercurial > pygar
comparison modules/bluespec/Pygar/core/audioCorePipeline.bsv @ 39:5a30f173bbac pygar svn.40
[svn r40] no longer cpu terminating dependent
author | punk |
---|---|
date | Tue, 04 May 2010 19:32:25 -0400 |
parents | 05598d745f99 |
children | 16ba43f0a7c3 |
comparison
equal
deleted
inserted
replaced
38:05598d745f99 | 39:5a30f173bbac |
---|---|
47 `include "asim/rrr/remote_server_stub_AUDIOCORERRR.bsh" | 47 `include "asim/rrr/remote_server_stub_AUDIOCORERRR.bsh" |
48 | 48 |
49 module [CONNECTED_MODULE] mkConnectedApplication (); | 49 module [CONNECTED_MODULE] mkConnectedApplication (); |
50 Core core <- mkCore; | 50 Core core <- mkCore; |
51 Reg#(int) cycle <- mkReg(0); | 51 Reg#(int) cycle <- mkReg(0); |
52 | |
53 // Reg#(Bit#(32)) ac_fini <- mkReg(0); | |
52 | 54 |
53 //External memory | 55 //External memory |
54 // I'm not comfortable assuming that the memory subsystem is in order | 56 // I'm not comfortable assuming that the memory subsystem is in order |
55 // So I'll insert a completion buffer here. | 57 // So I'll insert a completion buffer here. |
56 MEMORY_IFC#(Bit#(18), Bit#(32)) memory <- mkScratchpad(`VDEV_SCRATCH_MEMORY, SCRATCHPAD_CACHED); //Services Memory items | 58 MEMORY_IFC#(Bit#(18), Bit#(32)) memory <- mkScratchpad(`VDEV_SCRATCH_MEMORY, SCRATCHPAD_CACHED); //Services Memory items |
105 endcase | 107 endcase |
106 endrule | 108 endrule |
107 | 109 |
108 //***** SERVER Side ***** | 110 //***** SERVER Side ***** |
109 | 111 |
110 (* conservative_implicit_conditions *) | 112 /* (* conservative_implicit_conditions *) |
111 rule handleCPUToHost; | 113 rule handleCPUToHost; |
112 let req <- server_stub.acceptRequest_ReadCPUToHost(); | 114 let req <- server_stub.acceptRequest_ReadCPUToHost(); |
113 case (req) | 115 case (req) |
114 0: server_stub.sendResponse_ReadCPUToHost(cp0_tohost); | 116 0: server_stub.sendResponse_ReadCPUToHost(cp0_tohost); |
115 endcase | 117 endcase |
116 endrule | 118 endrule |
117 | 119 */ |
118 rule feedInput; | 120 rule feedInput; |
119 let command <- server_stub.acceptRequest_SendUnprocessedStream(); | 121 let command <- server_stub.acceptRequest_SendUnprocessedStream(); |
120 AudioProcessorControl ctrl = unpack(truncate(command.ctrl)); | 122 AudioProcessorControl ctrl = unpack(truncate(command.ctrl)); |
121 if(ctrl == EndOfFile) | 123 if(ctrl == EndOfFile) |
122 begin | 124 begin |