punk@33: // The MIT License punk@33: punk@33: // Copyright (c) 2009 Massachusetts Institute of Technology punk@33: punk@33: // Permission is hereby granted, free of charge, to any person obtaining a copy punk@33: // of this software and associated documentation files (the "Software"), to deal punk@33: // in the Software without restriction, including without limitation the rights punk@33: // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell punk@33: // copies of the Software, and to permit persons to whom the Software is punk@33: // furnished to do so, subject to the following conditions: punk@33: punk@33: // The above copyright notice and this permission notice shall be included in punk@33: // all copies or substantial portions of the Software. punk@33: punk@33: // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR punk@33: // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, punk@33: // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE punk@33: // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER punk@33: // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, punk@33: // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN punk@33: // THE SOFTWARE. punk@33: punk@33: import Connectable::*; punk@33: import GetPut::*; punk@33: import ClientServer::*; punk@33: import Processor::*; punk@33: import MemArb::*; punk@33: import MemTypes::*; punk@33: punk@33: //AWB includes punk@33: `include "asim/provides/low_level_platform_interface.bsh" punk@33: `include "asim/provides/soft_connections.bsh" punk@33: `include "asim/provides/common_services.bsh" punk@33: punk@33: // Local includes punk@33: `include "asim/provides/processor_library.bsh" punk@33: `include "asim/provides/processor.bsh" punk@33: `include "asim/provides/audio_pipe_types.bsh" punk@33: punk@33: interface Core; punk@33: punk@33: // Interface from core to main memory punk@33: interface Client#(MainMemReq,MainMemResp) mmem_client; punk@33: punk@33: interface Get#(AudioProcessorUnit) sampleOutput; punk@33: punk@33: endinterface punk@33: punk@33: module [CONNECTED_MODULE] mkCore( Core ); punk@33: punk@33: // Instantiate the modules punk@33: punk@33: Proc proc <- mkProc(); punk@33: ICache#(InstReq,InstResp) icache <- mkInstCache(); punk@33: DCache#(DataReq,DataResp) dcache <- mkDataCache(); punk@33: MemArb marb <- mkMemArb(); punk@33: punk@33: // Internal connections punk@33: punk@33: interface sampleOutput = proc.sampleOutput; punk@33: punk@33: endmodule