| 1 |
2 |
eyalhoc |
<##//////////////////////////////////////////////////////////////////
|
| 2 |
|
|
//// ////
|
| 3 |
|
|
//// Author: Eyal Hochberg ////
|
| 4 |
|
|
//// eyal@provartec.com ////
|
| 5 |
|
|
//// ////
|
| 6 |
|
|
//// Downloaded from: http://www.opencores.org ////
|
| 7 |
|
|
/////////////////////////////////////////////////////////////////////
|
| 8 |
|
|
//// ////
|
| 9 |
|
|
//// Copyright (C) 2010 Provartec LTD ////
|
| 10 |
|
|
//// www.provartec.com ////
|
| 11 |
|
|
//// info@provartec.com ////
|
| 12 |
|
|
//// ////
|
| 13 |
|
|
//// This source file may be used and distributed without ////
|
| 14 |
|
|
//// restriction provided that this copyright statement is not ////
|
| 15 |
|
|
//// removed from the file and that any derivative work contains ////
|
| 16 |
|
|
//// the original copyright notice and the associated disclaimer.////
|
| 17 |
|
|
//// ////
|
| 18 |
|
|
//// This source file is free software; you can redistribute it ////
|
| 19 |
|
|
//// and/or modify it under the terms of the GNU Lesser General ////
|
| 20 |
|
|
//// Public License as published by the Free Software Foundation.////
|
| 21 |
|
|
//// ////
|
| 22 |
|
|
//// This source is distributed in the hope that it will be ////
|
| 23 |
|
|
//// useful, but WITHOUT ANY WARRANTY; without even the implied ////
|
| 24 |
|
|
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR ////
|
| 25 |
|
|
//// PURPOSE. See the GNU Lesser General Public License for more////
|
| 26 |
|
|
//// details. http://www.gnu.org/licenses/lgpl.html ////
|
| 27 |
|
|
//// ////
|
| 28 |
|
|
//////////////////////////////////////////////////////////////////##>
|
| 29 |
|
|
|
| 30 |
|
|
INCLUDE def_axi_master_static.txt
|
| 31 |
|
|
|
| 32 |
|
|
SWAP.GLOBAL #FFD #1 ##Flip-Flop simulation delay
|
| 33 |
|
|
|
| 34 |
|
|
SWAP PREFIX axi_master ##prefix for all module and file names
|
| 35 |
|
|
|
| 36 |
|
|
SWAP ID_BITS 4 ##AXI ID bits
|
| 37 |
|
|
SWAP ADDR_BITS 32 ##AXI address bits
|
| 38 |
|
|
SWAP DATA_BITS 64 ##AXI data bits
|
| 39 |
|
|
SWAP LEN_BITS 4 ##AXI LEN bits
|
| 40 |
|
|
SWAP SIZE_BITS 2 ##AXI SIZE bits
|
| 41 |
|
|
|
| 42 |
|
|
SWAP CMD_DEPTH 4 ##AXI command depth for read and write
|
| 43 |
|
|
|
| 44 |
|
|
SWAP ID_NUM 3 ##Number of IDs (internal masters)
|
| 45 |
|
|
SWAP ID0_VAL ID_BITS'b0011 ##AXI ID0
|
| 46 |
|
|
SWAP ID1_VAL ID_BITS'b0010 ##AXI ID1
|
| 47 |
|
|
SWAP ID2_VAL ID_BITS'b1010 ##AXI ID2
|
| 48 |
|
|
|