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
5254863b
Commit
5254863b
authored
1 year ago
by
dwf1m12
Browse files
Options
Downloads
Patches
Plain Diff
invert GWEN and WEN signalling for Arm RegFiles
parent
5687e496
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
+20
-15
20 additions, 15 deletions
sram/verilog/sl_sram.v
with
20 additions
and
15 deletions
sram/verilog/sl_sram.v
+
20
−
15
View file @
5254863b
...
...
@@ -32,12 +32,17 @@ module sl_sram #(
output
wire
[
31
:
0
]
RDATA
);
localparam
TIE_EMA
=
3'b010
;
localparam
TIE_EMAW
=
2'b00
;
wire
GWEN
=
(
&
WREN
);
wire
[
31
:
0
]
WEN
;
assign
WEN
=
(
{{
8
{
WREN
[
3
]
}}
,
{
8
{
WREN
[
2
]
}}
,
{
8
{
WREN
[
1
]
}}
,
{
8
{
WREN
[
0
]
}}}
);
localparam
TIE_RET1N
=
1'b1
;
// fixed pre-compiled 16K instance supported
localparam
TIE_EMA
=
3'b010
;
localparam
TIE_EMAW
=
2'b00
;
wire
[
11
:
0
]
ADDR12
=
ADDR
;
wire
[
31
:
0
]
WDATA32
=
WDATA
;
wire
[
31
:
0
]
RDATA32
;
assign
RDATA
=
RDATA32
;
wire
CEN
=
!
CS
;
wire
GWEN
=
&
(
~
WREN
);
wire
[
31
:
0
]
WEN32
=
{
{
8
{!
WREN
[
3
]
}}
,
{
8
{!
WREN
[
2
]
}}
,
{
8
{!
WREN
[
1
]
}}
,
{
8
{!
WREN
[
0
]
}}
}
;
localparam
TIE_RET1N
=
1'b1
;
rf_sp_hdf
u_rf_sp_hdf
(
...
...
@@ -45,15 +50,15 @@ localparam TIE_RET1N = 1'b1;
.
VDD
(
VDD
),
.
VSS
(
VSS
),
`endif
.
Q
(
RDATA
),
.
CLK
(
CLK
),
.
CEN
(
!
CS
),
.
WEN
(
WEN
),
.
A
(
ADDR
),
.
D
(
WDATA
),
.
EMA
(
TIE_EMA
),
.
EMAW
(
TIE_EMAW
),
.
GWEN
(
GWEN
),
.
Q
(
RDATA
32
),
.
CLK
(
H
CLK
),
.
CEN
(
CEN
),
.
WEN
(
WEN
32
),
.
A
(
ADDR
12
),
.
D
(
WDATA
32
),
.
EMA
(
TIE_EMA
),
.
EMAW
(
TIE_EMAW
),
.
GWEN
(
GWEN
),
.
RET1N
(
TIE_RET1N
)
);
...
...
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