// The MIT License
|
// The MIT License
|
|
|
// Copyright (c) 2006-2007 Massachusetts Institute of Technology
|
// Copyright (c) 2006-2007 Massachusetts Institute of Technology
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
// of this software and associated documentation files (the "Software"), to deal
|
// of this software and associated documentation files (the "Software"), to deal
|
// in the Software without restriction, including without limitation the rights
|
// in the Software without restriction, including without limitation the rights
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
// copies of the Software, and to permit persons to whom the Software is
|
// copies of the Software, and to permit persons to whom the Software is
|
// furnished to do so, subject to the following conditions:
|
// furnished to do so, subject to the following conditions:
|
|
|
// The above copyright notice and this permission notice shall be included in
|
// The above copyright notice and this permission notice shall be included in
|
// all copies or substantial portions of the Software.
|
// all copies or substantial portions of the Software.
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
// THE SOFTWARE.
|
// THE SOFTWARE.
|
//**********************************************************************
|
//**********************************************************************
|
// H264 Main Module
|
// H264 Main Module
|
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
//
|
//
|
//
|
//
|
|
|
package mkH264;
|
package mkH264;
|
|
|
import H264Types::*;
|
import H264Types::*;
|
import IH264::*;
|
import IH264::*;
|
import INalUnwrap::*;
|
import INalUnwrap::*;
|
import IEntropyDec::*;
|
import IEntropyDec::*;
|
import IInverseTrans::*;
|
import IInverseTrans::*;
|
import IPrediction::*;
|
import IPrediction::*;
|
import IDeblockFilter::*;
|
import IDeblockFilter::*;
|
import IBufferControl::*;
|
import IBufferControl::*;
|
import mkNalUnwrap::*;
|
import mkNalUnwrap::*;
|
import mkEntropyDec::*;
|
import mkEntropyDec::*;
|
import mkInverseTrans::*;
|
import mkInverseTrans::*;
|
import mkPrediction::*;
|
import mkPrediction::*;
|
import mkDeblockFilter::*;
|
import mkDeblockFilter::*;
|
import mkBufferControl::*;
|
import mkBufferControl::*;
|
import DeblockParallel::*;
|
import DeblockParallel::*;
|
|
|
import Connectable::*;
|
import Connectable::*;
|
import GetPut::*;
|
import GetPut::*;
|
import ClientServer::*;
|
import ClientServer::*;
|
|
|
(* synthesize *)
|
(* synthesize *)
|
module mkH264( IH264 );
|
module mkH264( IH264 );
|
|
|
// Instantiate the modules
|
// Instantiate the modules
|
|
|
INalUnwrap nalunwrap <- mkNalUnwrap();
|
INalUnwrap nalunwrap <- mkNalUnwrap();
|
IEntropyDec entropydec <- mkEntropyDec();
|
IEntropyDec entropydec <- mkEntropyDec();
|
IInverseTrans inversetrans <- mkInverseTrans();
|
IInverseTrans inversetrans <- mkInverseTrans();
|
IPrediction prediction <- mkPrediction();
|
IPrediction prediction <- mkPrediction();
|
ParallelDeblockFilter deblockfilter <- mkDeblockFilterParallel();
|
ParallelDeblockFilter deblockfilter <- mkDeblockFilterParallel();
|
IBufferControl buffercontrol <- mkBufferControl();
|
IBufferControl buffercontrol <- mkBufferControl();
|
|
|
// Internal connections
|
// Internal connections
|
mkConnection( prediction.mem_client_buffer_luma, buffercontrol.inter_server_luma );
|
mkConnection( prediction.mem_client_buffer_luma, buffercontrol.inter_server_luma );
|
mkConnection( prediction.mem_client_buffer_chroma, buffercontrol.inter_server_chroma );
|
mkConnection( prediction.mem_client_buffer_chroma, buffercontrol.inter_server_chroma );
|
|
|
mkConnection( nalunwrap.ioout, entropydec.ioin );
|
mkConnection( nalunwrap.ioout, entropydec.ioin );
|
mkConnection( entropydec.ioout_InverseTrans, inversetrans.ioin );
|
mkConnection( entropydec.ioout_InverseTrans, inversetrans.ioin );
|
mkConnection( entropydec.ioout, prediction.ioin );
|
mkConnection( entropydec.ioout, prediction.ioin );
|
mkConnection( inversetrans.ioout, prediction.ioin_InverseTrans );
|
mkConnection( inversetrans.ioout, prediction.ioin_InverseTrans );
|
mkConnection( prediction.iooutchroma, deblockfilter.ioinchroma );
|
mkConnection( prediction.iooutchroma, deblockfilter.ioinchroma );
|
mkConnection( prediction.iooutluma, deblockfilter.ioinluma );
|
mkConnection( prediction.iooutluma, deblockfilter.ioinluma );
|
|
|
mkConnection( deblockfilter.ioout, buffercontrol.ioin);
|
mkConnection( deblockfilter.ioout, buffercontrol.ioin);
|
|
|
// Interface to input generator
|
// Interface to input generator
|
interface ioin = nalunwrap.ioin;
|
interface ioin = nalunwrap.ioin;
|
|
|
// Memory interfaces
|
// Memory interfaces
|
interface mem_clientED = entropydec.mem_client;
|
interface mem_clientED = entropydec.mem_client;
|
interface mem_clientP_intra = prediction.mem_client_intra;
|
interface mem_clientP_intra = prediction.mem_client_intra;
|
interface mem_clientP_inter = prediction.mem_client_inter;
|
interface mem_clientP_inter = prediction.mem_client_inter;
|
interface mem_clientD_data = deblockfilter.mem_client_data;
|
interface mem_clientD_data = deblockfilter.mem_client_data;
|
interface mem_clientD_parameter = deblockfilter.mem_client_parameter;
|
interface mem_clientD_parameter = deblockfilter.mem_client_parameter;
|
interface buffer_client_load1 = buffercontrol.buffer_client_load1;
|
interface buffer_client_load1 = buffercontrol.buffer_client_load1;
|
interface buffer_client_load2 = buffercontrol.buffer_client_load2;
|
interface buffer_client_load2 = buffercontrol.buffer_client_load2;
|
interface buffer_client_load3 = buffercontrol.buffer_client_load3;
|
interface buffer_client_load3 = buffercontrol.buffer_client_load3;
|
interface buffer_client_store = buffercontrol.buffer_client_store;
|
interface buffer_client_store = buffercontrol.buffer_client_store;
|
|
|
// Interface for output
|
// Interface for output
|
interface ioout = buffercontrol.ioout;
|
interface ioout = buffercontrol.ioout;
|
|
|
endmodule
|
endmodule
|
|
|
endpackage
|
endpackage
|
|
|