comparison modules/bluespec/Pygar/core/Processor.bsv @ 15:a1833d9f6e3d pygar svn.16

[svn r16] Recent
author punk
date Tue, 27 Apr 2010 13:11:45 -0400
parents 394aa40fd812
children 9910c032f38d
comparison
equal deleted inserted replaced
14:ec9205107560 15:a1833d9f6e3d
46 // Local includes 46 // Local includes
47 //`include "asim/provides/processor_library.bsh" (included above directly) 47 //`include "asim/provides/processor_library.bsh" (included above directly)
48 `include "asim/rrr/remote_server_stub_AUDIOCORERRR.bsh" 48 `include "asim/rrr/remote_server_stub_AUDIOCORERRR.bsh"
49 `include "asim/provides/common_services.bsh" 49 `include "asim/provides/common_services.bsh"
50 `include "asim/dict/STATS_PROCESSOR.bsh" 50 `include "asim/dict/STATS_PROCESSOR.bsh"
51 `include "asim/provides/audio_pipe_types.bsh"
52 51
53 // Local includes. Look for the correspondingly named .awb files 52 // Local includes. Look for the correspondingly named .awb files
54 // workspace/labs/src/mit-6.375/modules/bluespec/mit-6.375/common/ 53 // workspace/labs/src/mit-6.375/modules/bluespec/mit-6.375/common/
55 // to find the actual Bluespec files which are used to generate 54 // to find the actual Bluespec files which are used to generate
56 // these includes. These files are specific to this audio processing 55 // these includes. These files are specific to this audio processing
73 72
74 // // Interface to host 73 // // Interface to host
75 // interface CPUToHost tohost; 74 // interface CPUToHost tohost;
76 75
77 // Interface to Audio Pipeline 76 // Interface to Audio Pipeline
78 interface AudioOut audioOut; 77 interface Get#(AudioProcessorUnit) sampleOutput;
79 78
80 endinterface 79 endinterface
81 80
82 //The full interface for this is as below in the common file for audioProcessorTypes.bsv 81 //The full interface for this is as below in the common file for audioProcessorTypes.bsv
83 interface AudioOut; 82 //interface AudioOut;
84 interface Get#(AudioProcessorUnit) audioSampleOutput; 83 // interface Get#(AudioProcessorUnit) audioSampleOutput;
85 endinterface 84 //endinterface
86 85
87 //interface AudioIn; 86 //interface AudioIn;
88 // interface Put#(AudioProcessorUnit) audioSampleInput; 87 // interface Put#(AudioProcessorUnit) audioSampleInput;
89 //endinterface 88 //endinterface
90 89
562 561
563 (* conservative_implicit_conditions *) 562 (* conservative_implicit_conditions *)
564 rule handleCPUToHost; 563 rule handleCPUToHost;
565 let req <- server_stub.acceptRequest_ReadCPUToHost(); 564 let req <- server_stub.acceptRequest_ReadCPUToHost();
566 case (req) 565 case (req)
567 0: server_stub.sendResponse_ReadCPUToHost(cp0_tohost); 566 0: server_stub.sendResponse_ReadCPUToHost(cp0_tohost);
568 1: server_stub.sendResponse_ReadCPUToHost(pc); 567 1: server_stub.sendResponse_ReadCPUToHost(pc);
569 2: server_stub.sendResponse_ReadCPUToHost(zeroExtend(pack(stage))); 568 2: server_stub.sendResponse_ReadCPUToHost(zeroExtend(pack(stage)));
570 endcase 569 endcase
571 endrule 570 endrule
572 571
617 // 2: zeroExtend(pack(stage)); 616 // 2: zeroExtend(pack(stage));
618 // endcase); 617 // endcase);
619 // endmethod 618 // endmethod
620 // endinterface 619 // endinterface
621 620
622 interface AudioOut audio; 621 interface Get sampleOutput;
623 interface audioSampleOutput = fifoToGet(outAudioFifo); 622 interface sampleOutput = fifoToGet(outAudioFifo);
624 endinterface 623 endinterface
625 624
626 625
627 endmodule 626 endmodule
628 627