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

[svn r16] Recent
author punk
date Tue, 27 Apr 2010 13:11:45 -0400
parents 6d461680c6d9
children 9910c032f38d
comparison
equal deleted inserted replaced
14:ec9205107560 15:a1833d9f6e3d
36 `include "asim/provides/processor_library.bsh" 36 `include "asim/provides/processor_library.bsh"
37 `include "asim/provides/mem_arb.bsh" 37 `include "asim/provides/mem_arb.bsh"
38 `include "asim/provides/instruction_cache.bsh" 38 `include "asim/provides/instruction_cache.bsh"
39 `include "asim/provides/data_cache.bsh" 39 `include "asim/provides/data_cache.bsh"
40 `include "asim/provides/processor.bsh" 40 `include "asim/provides/processor.bsh"
41 `include "asim/provides/audio_pipe_types.bsh"
42
41 43
42 interface Core; 44 interface Core;
43 45
44 // Interface from core to main memory 46 // Interface from core to main memory
45 interface Client#(MainMemReq,MainMemResp) mmem_client; 47 interface Client#(MainMemReq,MainMemResp) mmem_client;
46 48
47 interface AudioOut audio; 49 interface Get#(AudioProcessorUnit) sampleOutput;
48 50
49 endinterface 51 endinterface
50
51 interface AudioOut;
52 // interface Put#(AudioProcessorUnit) sampleInput;
53 interface Get#(AudioProcessorUnit) sampleOutput;
54 endinterface
55 52
56 module [CONNECTED_MODULE] mkCore( Core ); 53 module [CONNECTED_MODULE] mkCore( Core );
57 54
58 // Instantiate the modules 55 // Instantiate the modules
59 56
72 mkConnection( dcache.mmem_client, marb.cache1_server ); 69 mkConnection( dcache.mmem_client, marb.cache1_server );
73 70
74 // Methods 71 // Methods
75 72
76 interface mmem_client = marb.mmem_client; 73 interface mmem_client = marb.mmem_client;
77 74
78 interface AudioOut audio = proc.audioOut; 75 interface sampleOutput = proc.sampleOutput;
76 // interface sampleOutput = proc.audioOut;
77 // interface AudioOut audio = proc.audioOut;
78
79 79
80 endmodule 80 endmodule