comparison modules/bluespec/Pygar/core/audioCorePipeline.bsv @ 37:0475235d1513 pygar svn.38

[svn r38] fixed audiocorepipe
author punk
date Tue, 04 May 2010 19:25:30 -0400
parents 99519a031813
children 05598d745f99
comparison
equal deleted inserted replaced
36:99519a031813 37:0475235d1513
105 endcase 105 endcase
106 endrule 106 endrule
107 107
108 //***** SERVER Side ***** 108 //***** SERVER Side *****
109 109
110 (* conservative_implicit_conditions *)
111 rule handleCPUToHost;
112 let req <- server_stub.acceptRequest_ReadCPUToHost();
113 case (req)
114 0: server_stub.sendResponse_ReadCPUToHost(cp0_tohost);
115 1: server_stub.sendResponse_ReadCPUToHost(pc);
116 2: server_stub.sendResponse_ReadCPUToHost(zeroExtend(pack(stage)));
117 endcase
118 endrule
119
110 rule feedInput; 120 rule feedInput;
111 let command <- server_stub.acceptRequest_SendUnprocessedStream(); 121 let command <- server_stub.acceptRequest_SendUnprocessedStream();
112 AudioProcessorControl ctrl = unpack(truncate(command.ctrl)); 122 AudioProcessorControl ctrl = unpack(truncate(command.ctrl));
113 if(ctrl == EndOfFile) 123 if(ctrl == EndOfFile)
114 begin 124 begin