/////////////////////////////////////////////////////////////////////
|
<##//////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Author: Eyal Hochberg ////
|
//// Author: Eyal Hochberg ////
|
//// eyal@provartec.com ////
|
//// eyal@provartec.com ////
|
//// ////
|
//// ////
|
//// Downloaded from: http://www.opencores.org ////
|
//// Downloaded from: http://www.opencores.org ////
|
/////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// Copyright (C) 2010 Provartec LTD ////
|
//// Copyright (C) 2010 Provartec LTD ////
|
//// www.provartec.com ////
|
//// www.provartec.com ////
|
//// info@provartec.com ////
|
//// info@provartec.com ////
|
//// ////
|
//// ////
|
//// This source file may be used and distributed without ////
|
//// This source file may be used and distributed without ////
|
//// restriction provided that this copyright statement is not ////
|
//// restriction provided that this copyright statement is not ////
|
//// removed from the file and that any derivative work contains ////
|
//// removed from the file and that any derivative work contains ////
|
//// the original copyright notice and the associated disclaimer.////
|
//// the original copyright notice and the associated disclaimer.////
|
//// ////
|
//// ////
|
//// This source file is free software; you can redistribute it ////
|
//// This source file is free software; you can redistribute it ////
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
//// Public License as published by the Free Software Foundation.////
|
//// Public License as published by the Free Software Foundation.////
|
//// ////
|
//// ////
|
//// This source is distributed in the hope that it will be ////
|
//// This source is distributed in the hope that it will be ////
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
//// PURPOSE. See the GNU Lesser General Public License for more////
|
//// PURPOSE. See the GNU Lesser General Public License for more////
|
//// details. http://www.gnu.org/licenses/lgpl.html ////
|
//// details. http://www.gnu.org/licenses/lgpl.html ////
|
//// ////
|
//// ////
|
/////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////##>
|
|
|
OUTFILE PREFIX.v
|
OUTFILE PREFIX.v
|
|
|
INCLUDE def_ahb_slave.txt
|
INCLUDE def_ahb_slave.txt
|
|
|
module PREFIX(PORTS);
|
module PREFIX(PORTS);
|
|
|
parameter SLAVE_NUM = 0;
|
parameter SLAVE_NUM = 0;
|
|
|
input clk;
|
input clk;
|
input reset;
|
input reset;
|
|
|
revport GROUP_STUB_AHB;
|
revport GROUP_STUB_AHB;
|
|
|
|
|
|
|
wire GROUP_STUB_MEM;
|
wire GROUP_STUB_MEM;
|
|
|
|
|
|
|
CREATE ahb_slave_ram.v
|
CREATE ahb_slave_ram.v
|
PREFIX_ram PREFIX_ram(
|
PREFIX_ram PREFIX_ram(
|
.clk(clk),
|
.clk(clk),
|
.reset(reset),
|
.reset(reset),
|
.GROUP_STUB_AHB(GROUP_STUB_AHB),
|
.GROUP_STUB_AHB(GROUP_STUB_AHB),
|
.GROUP_STUB_MEM(GROUP_STUB_MEM),
|
.GROUP_STUB_MEM(GROUP_STUB_MEM),
|
STOMP ,
|
STOMP ,
|
);
|
);
|
|
|
|
|
CREATE ahb_slave_mem.v
|
CREATE ahb_slave_mem.v
|
PREFIX_mem PREFIX_mem(
|
PREFIX_mem PREFIX_mem(
|
.clk(clk),
|
.clk(clk),
|
.reset(reset),
|
.reset(reset),
|
.GROUP_STUB_MEM(GROUP_STUB_MEM),
|
.GROUP_STUB_MEM(GROUP_STUB_MEM),
|
STOMP ,
|
STOMP ,
|
);
|
);
|
|
|
|
|
|
|
IFDEF TRACE
|
IFDEF TRACE
|
CREATE ahb_slave_trace.v
|
CREATE ahb_slave_trace.v
|
PREFIX_trace #(SLAVE_NUM)
|
PREFIX_trace #(SLAVE_NUM)
|
PREFIX_trace(
|
PREFIX_trace(
|
.clk(clk),
|
.clk(clk),
|
.reset(reset),
|
.reset(reset),
|
.GROUP_STUB_MEM(GROUP_STUB_MEM),
|
.GROUP_STUB_MEM(GROUP_STUB_MEM),
|
STOMP ,
|
STOMP ,
|
);
|
);
|
|
|
ENDIF TRACE
|
ENDIF TRACE
|
|
|
endmodule
|
endmodule
|
|
|
|
|
|
|