//  Copyright 2011 Actel Corporation.  All rights reserved.
// ANY USE OR REDISTRIBUTION IN PART OR IN WHOLE MUST BE HANDLED IN
// ACCORDANCE WITH THE ACTEL LICENSE AGREEMENT AND MUST BE APPROVED
// Revision Information:
// SVN Revision Information:
// SVN $Revision: 4805 $
`timescale 1ns/100ps
module
SmartFusion2_FIC_Tutorial_sb_COREAHBLSRAM_0_0_COREAHBLSRAM
(
HCLK
,
HRESETN
,
HSEL
,
HREADYIN
,
HSIZE
,
HTRANS
,
HBURST
,
HADDR
,
HWRITE
,
HWDATA
,
HREADYOUT
,
HRDATA
,
HRESP
)
;
parameter
FAMILY
=
19
;
parameter
AHB_DWIDTH
=
32
;
parameter
AHB_AWIDTH
=
32
;
parameter
LSRAM_NUM_LOCATIONS_DWIDTH32
=
512
;
parameter
USRAM_NUM_LOCATIONS_DWIDTH32
=
128
;
parameter
SEL_SRAM_TYPE
=
1
;
input
HCLK
;
input
HRESETN
;
input
HSEL
;
input
HREADYIN
;
input
[
1
:
0
]
HTRANS
;
input
[
2
:
0
]
HBURST
;
input
[
2
:
0
]
HSIZE
;
input
[
AHB_DWIDTH
-
1
:
0
]
HWDATA
;
input
[
AHB_AWIDTH
-
1
:
0
]
HADDR
;
input
HWRITE
;
output
[
AHB_DWIDTH
-
1
:
0
]
HRDATA
;
output
[
1
:
0
]
HRESP
;
output
HREADYOUT
;
wire
[
19
:
0
]
CHTOLSRAMO
;
wire
[
2
:
0
]
CHTOLSRAMI
;
wire
[
19
:
0
]
CHTOLSRAMl
;
wire
[
31
:
0
]
CHTOLSRAMo
;
wire
CHTOLSRAMi
;
wire
[
31
:
0
]
CHTOLSRAMOI
;
assign
CHTOLSRAMO
=
HADDR
[
19
:
0
]
;
CHTOLSRAMII
CHTOLSRAMlI
(
.HCLK
(
HCLK
)
,
.HRESETN
(
HRESETN
)
,
.HSEL
(
HSEL
)
,
.HTRANS
(
HTRANS
)
,
.HBURST
(
HBURST
)
,
.HWRITE
(
HWRITE
)
,
.HWD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