<##//////////////////////////////////////////////////////////////////
|
<##//////////////////////////////////////////////////////////////////
|
//// ////
|
//// ////
|
//// 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 ////
|
//// ////
|
//// ////
|
//////////////////////////////////////////////////////////////////##>
|
//////////////////////////////////////////////////////////////////##>
|
|
|
SWAP MODEL_NAME AXI2AHB bridge
|
SWAP.GLOBAL MODEL_NAME AXI2AHB bridge
|
|
|
VERIFY ((DATA_BITS==32) || (DATA_BITS==64))
|
VERIFY ((DATA_BITS==32) || (DATA_BITS==64))
|
|
|
GROUP AXI_A is {
|
GROUP AXI_A is {
|
ID ID_BITS input
|
ID ID_BITS input
|
ADDR ADDR_BITS input
|
ADDR ADDR_BITS input
|
LEN 4 input
|
LEN 4 input
|
SIZE 2 input
|
SIZE 2 input
|
VALID 1 input
|
VALID 1 input
|
READY 1 output
|
READY 1 output
|
}
|
}
|
|
|
GROUP AXI_W is {
|
GROUP AXI_W is {
|
ID ID_BITS input
|
ID ID_BITS input
|
DATA DATA_BITS input
|
DATA DATA_BITS input
|
STRB DATA_BITS/8 input
|
STRB DATA_BITS/8 input
|
LAST 1 input
|
LAST 1 input
|
VALID 1 input
|
VALID 1 input
|
READY 1 output
|
READY 1 output
|
}
|
}
|
|
|
GROUP AXI_B is {
|
GROUP AXI_B is {
|
ID ID_BITS output
|
ID ID_BITS output
|
RESP 2 output
|
RESP 2 output
|
VALID 1 output
|
VALID 1 output
|
READY 1 input
|
READY 1 input
|
}
|
}
|
|
|
GROUP AXI_R is {
|
GROUP AXI_R is {
|
ID ID_BITS output
|
ID ID_BITS output
|
DATA DATA_BITS output
|
DATA DATA_BITS output
|
RESP 2 output
|
RESP 2 output
|
LAST 1 output
|
LAST 1 output
|
VALID 1 output
|
VALID 1 output
|
READY 1 input
|
READY 1 input
|
}
|
}
|
|
|
GROUP AXI joins {
|
GROUP AXI joins {
|
GROUP AXI_A prefix_AW
|
GROUP AXI_A prefix_AW
|
GROUP AXI_W prefix_W
|
GROUP AXI_W prefix_W
|
GROUP AXI_B prefix_B
|
GROUP AXI_B prefix_B
|
GROUP AXI_A prefix_AR
|
GROUP AXI_A prefix_AR
|
GROUP AXI_R prefix_R
|
GROUP AXI_R prefix_R
|
}
|
}
|
|
|
|
|
GROUP AHB is {
|
GROUP AHB is {
|
HADDR ADDR_BITS input
|
HADDR ADDR_BITS input
|
HBURST 3 input
|
HBURST 3 input
|
HSIZE 2 input
|
HSIZE 2 input
|
HTRANS 2 input
|
HTRANS 2 input
|
HWRITE 1 input
|
HWRITE 1 input
|
HWDATA DATA_BITS input
|
HWDATA DATA_BITS input
|
HRDATA DATA_BITS output
|
HRDATA DATA_BITS output
|
HREADY 1 output
|
HREADY 1 output
|
HRESP 1 output
|
HRESP 1 output
|
}
|
}
|
|
|