Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ASIC Library Tech
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SoCLabs
ASIC Library Tech
Commits
ce05d1a5
Commit
ce05d1a5
authored
1 year ago
by
Daniel Newbrook
Browse files
Options
Downloads
Patches
Plain Diff
Add 16K and 8K options for SRAM
parent
5254863b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sram/verilog/sl_sram.v
+43
-18
43 additions, 18 deletions
sram/verilog/sl_sram.v
with
43 additions
and
18 deletions
sram/verilog/sl_sram.v
+
43
−
18
View file @
ce05d1a5
...
@@ -35,7 +35,7 @@ module sl_sram #(
...
@@ -35,7 +35,7 @@ module sl_sram #(
// fixed pre-compiled 16K instance supported
// fixed pre-compiled 16K instance supported
localparam
TIE_EMA
=
3'b010
;
localparam
TIE_EMA
=
3'b010
;
localparam
TIE_EMAW
=
2'b00
;
localparam
TIE_EMAW
=
2'b00
;
wire
[
11
:
0
]
ADDR12
=
ADDR
;
wire
[
AW
-
3
:
0
]
ADDR12
=
ADDR
;
wire
[
31
:
0
]
WDATA32
=
WDATA
;
wire
[
31
:
0
]
WDATA32
=
WDATA
;
wire
[
31
:
0
]
RDATA32
;
wire
[
31
:
0
]
RDATA32
;
assign
RDATA
=
RDATA32
;
assign
RDATA
=
RDATA32
;
...
@@ -44,22 +44,47 @@ wire GWEN = &(~WREN);
...
@@ -44,22 +44,47 @@ wire GWEN = &(~WREN);
wire
[
31
:
0
]
WEN32
=
{
{
8
{!
WREN
[
3
]
}}
,
{
8
{!
WREN
[
2
]
}}
,
{
8
{!
WREN
[
1
]
}}
,
{
8
{!
WREN
[
0
]
}}
}
;
wire
[
31
:
0
]
WEN32
=
{
{
8
{!
WREN
[
3
]
}}
,
{
8
{!
WREN
[
2
]
}}
,
{
8
{!
WREN
[
1
]
}}
,
{
8
{!
WREN
[
0
]
}}
}
;
localparam
TIE_RET1N
=
1'b1
;
localparam
TIE_RET1N
=
1'b1
;
rf_sp_hdf
generate
u_rf_sp_hdf
(
if
(
AW
==
14
)
begin
`ifdef
POWER_PINS
rf_16k
.
VDD
(
VDD
),
u_rf_sp_hdf
(
.
VSS
(
VSS
),
`ifdef
POWER_PINS
`endif
.
VDD
(
VDD
),
.
Q
(
RDATA32
),
.
VSS
(
VSS
),
.
CLK
(
HCLK
),
`endif
.
CEN
(
CEN
),
.
Q
(
RDATA32
),
.
WEN
(
WEN32
),
.
CLK
(
HCLK
),
.
A
(
ADDR12
),
.
CEN
(
CEN
),
.
D
(
WDATA32
),
.
WEN
(
WEN32
),
.
EMA
(
TIE_EMA
),
.
A
(
ADDR12
),
.
EMAW
(
TIE_EMAW
),
.
D
(
WDATA32
),
.
GWEN
(
GWEN
),
.
EMA
(
TIE_EMA
),
.
RET1N
(
TIE_RET1N
)
.
EMAW
(
TIE_EMAW
),
);
.
GWEN
(
GWEN
),
.
RET1N
(
TIE_RET1N
)
);
end
else
if
(
AW
==
13
)
begin
rf_08k
u_rf_sp_hdf
(
`ifdef
POWER_PINS
.
VDD
(
VDD
),
.
VSS
(
VSS
),
`endif
.
Q
(
RDATA32
),
.
CLK
(
HCLK
),
.
CEN
(
CEN
),
.
WEN
(
WEN32
),
.
A
(
ADDR12
),
.
D
(
WDATA32
),
.
EMA
(
TIE_EMA
),
.
EMAW
(
TIE_EMAW
),
.
GWEN
(
GWEN
),
.
RET1N
(
TIE_RET1N
)
);
end
endgenerate
endmodule
endmodule
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment