Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VHDL macro libraries for Microsemi ProASIC3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
VHDL macro libraries for Microsemi ProASIC3
Commits
7055c055
Commit
7055c055
authored
Jun 25, 2019
by
Christos Gentsos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some bugs in the newly-introduced smartfusion2 memory models
parent
104f3b9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
smartfusion2.vhd
smartfusion2/smartfusion2.vhd
+14
-8
No files found.
smartfusion2/smartfusion2.vhd
View file @
7055c055
...
...
@@ -1863,6 +1863,9 @@ architecture rtl of RAM1K18 is
signal
A_DIN_r
:
std_logic_vector
(
17
downto
0
);
signal
B_DIN_r
:
std_logic_vector
(
17
downto
0
);
signal
A_WMODE_r
:
std_logic
;
signal
B_WMODE_r
:
std_logic
;
signal
dout_a_toreg
:
std_logic_vector
(
17
downto
0
);
signal
dout_b_toreg
:
std_logic_vector
(
17
downto
0
);
...
...
@@ -1881,9 +1884,6 @@ begin -- architecture rtl
width_a
<=
return_width
(
A_WIDTH
);
width_b
<=
return_width
(
B_WIDTH
);
wen_a
<=
return_wen
(
A_WEN
);
wen_b
<=
return_wen
(
B_WEN
);
-- purpose: main memory process (both ports)
main_proc
:
process
(
A_CLK
,
B_CLK
)
is
variable
mem_addr
:
integer
;
...
...
@@ -1892,8 +1892,11 @@ begin -- architecture rtl
begin
if
rising_edge
(
A_CLK
)
then
-- rising clock edge
A_ADDR_r
<=
A_ADDR
;
A_DIN_r
<=
A_DIN
;
A_ADDR_r
<=
A_ADDR
;
A_DIN_r
<=
A_DIN
;
A_WMODE_r
<=
A_WMODE
;
wen_a
<=
return_wen
(
A_WEN
);
mem_addr
:
=
to_integer
(
unsigned
(
A_ADDR_r
(
13
downto
4
)));
...
...
@@ -1928,8 +1931,11 @@ begin -- architecture rtl
end
if
;
if
rising_edge
(
B_CLK
)
then
-- rising clock edge
B_ADDR_r
<=
B_ADDR
;
B_DIN_r
<=
B_DIN
;
B_ADDR_r
<=
B_ADDR
;
B_DIN_r
<=
B_DIN
;
B_WMODE_r
<=
B_WMODE
;
wen_b
<=
return_wen
(
B_WEN
);
mem_addr
:
=
to_integer
(
unsigned
(
B_ADDR_r
(
13
downto
4
)));
...
...
@@ -1957,7 +1963,7 @@ begin -- architecture rtl
if
wen_b
=
MEM_READ
then
dout_b_toreg
<=
mem18b_to_dout
(
width_b
,
B_ADDR_r
,
mem
(
mem_addr
));
else
if
B_WMODE
=
'1'
then
if
B_WMODE
_r
=
'1'
then
dout_b_toreg
<=
B_DIN_r
;
end
if
;
end
if
;
...
...
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