Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VME SBC A25 PCIe to VME bridge
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
VME SBC A25 PCIe to VME bridge
Commits
2e4162ad
Commit
2e4162ad
authored
Dec 13, 2023
by
Tristan Gingold
Committed by
Tristan Gingold
Dec 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add and use internal sram
parent
f489f076
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
2 deletions
+51
-2
A25_top.vhd
hdl/top/A25_top.vhd
+3
-0
sram.vhd
hdl/top/sram.vhd
+48
-2
No files found.
hdl/top/A25_top.vhd
View file @
2e4162ad
...
...
@@ -1185,6 +1185,9 @@ END A25_top_arch;
FOR
pcie
:
ip_16z091_01_top
USE
CONFIGURATION
work
.
ip_16z091_01_top_cfg
;
END
FOR
;
for
srami
:
sram
use
entity
work
.
sram
(
internal
);
end
for
;
END
FOR
;
END
CONFIGURATION
top_cfg
;
hdl/top/sram.vhd
View file @
2e4162ad
...
...
@@ -259,7 +259,53 @@ sram_fsm : PROCESS (clk66, rst)
END
CASE
;
END
IF
;
END
PROCESS
sram_fsm
;
END
sram_arch
;
architecture
internal
of
sram
is
signal
rst_n
:
std_logic
;
signal
we
,
ack
:
std_logic
;
begin
-- External sram is not used
bwn
<=
'1'
;
bwan
<=
'1'
;
bwbn
<=
'1'
;
roen
<=
'1'
;
adscn
<=
'1'
;
rd_oe
<=
'0'
;
END
sram_arch
;
rst_n
<=
not
rst
;
we
<=
cyc_i
and
stb_i
and
we_i
;
inst_sram
:
entity
work
.
generic_spram
generic
map
(
g_data_width
=>
32
,
g_size
=>
1024
,
g_with_byte_enable
=>
True
,
g_addr_conflict_resolution
=>
"dont_care"
,
g_init_file
=>
open
,
g_implementation_hint
=>
open
)
port
map
(
rst_n_i
=>
rst_n
,
clk_i
=>
clk66
,
bwe_i
=>
sel_i
,
we_i
=>
we
,
a_i
=>
adr_i
(
11
downto
2
),
d_i
=>
dat_i
,
q_o
=>
dat_o
);
process
(
clk66
)
is
begin
if
rising_edge
(
clk66
)
then
if
rst_n
=
'0'
then
ack
<=
'0'
;
else
-- One cycle ack.
ack
<=
cyc_i
and
stb_i
and
not
ack
;
end
if
;
end
if
;
end
process
;
ack_o
<=
ack
;
end
internal
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment