Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 2cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
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
FMC DEL 1ns 2cha
Commits
9dd55085
Commit
9dd55085
authored
Aug 03, 2016
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed registers removal in optimization in Xilinx XST
parent
f1b64718
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
6 deletions
+22
-6
ResetSyncer.vhd
hdl/ffpg/rtl/ResetSyncer.vhd
+22
-6
No files found.
hdl/ffpg/rtl/ResetSyncer.vhd
View file @
9dd55085
...
...
@@ -24,23 +24,39 @@ architecture syn of ResetSyncer is
end
function
;
attribute
ASYNC_REG
:
string
;
attribute
KEEP
:
string
;
attribute
SHREG_EXTRACT
:
string
;
constant
c_Inversion
:
std_logic
:
=
if_sl
(
g_Inverted
,
'1'
,
'0'
);
signal
ShiftRegister
:
std_logic_vector
(
g_Length
-1
downto
0
)
:
=
(
others
=>
(
'1'
xor
c_Inversion
));
signal
ShiftRegister0
:
std_logic
:
=
(
'1'
xor
c_Inversion
);
signal
ShiftRegister1
:
std_logic
:
=
(
'1'
xor
c_Inversion
);
signal
ShiftRegister2
:
std_logic
:
=
(
'1'
xor
c_Inversion
);
attribute
ASYNC_REG
of
ShiftRegister
:
signal
is
"TRUE"
;
attribute
ASYNC_REG
of
ShiftRegister0
:
signal
is
"true"
;
attribute
ASYNC_REG
of
ShiftRegister1
:
signal
is
"true"
;
attribute
ASYNC_REG
of
ShiftRegister2
:
signal
is
"true"
;
attribute
KEEP
of
ShiftRegister0
:
signal
is
"true"
;
attribute
KEEP
of
ShiftRegister1
:
signal
is
"true"
;
attribute
KEEP
of
ShiftRegister2
:
signal
is
"true"
;
attribute
SHREG_EXTRACT
of
ShiftRegister0
:
signal
is
"no"
;
attribute
SHREG_EXTRACT
of
ShiftRegister1
:
signal
is
"no"
;
attribute
SHREG_EXTRACT
of
ShiftRegister2
:
signal
is
"no"
;
begin
pSyncer
:
process
(
Clk_ik
,
Reset_ira
)
begin
if
Reset_ira
=
(
'1'
xor
c_Inversion
)
then
ShiftRegister
<=
(
others
=>
(
'1'
xor
c_Inversion
));
ShiftRegister0
<=
(
'1'
xor
c_Inversion
);
ShiftRegister1
<=
(
'1'
xor
c_Inversion
);
ShiftRegister2
<=
(
'1'
xor
c_Inversion
);
elsif
rising_edge
(
Clk_ik
)
then
ShiftRegister
<=
ShiftRegister
(
g_Length
-2
downto
0
)
&
(
'0'
xor
c_Inversion
);
ShiftRegister0
<=
(
'0'
xor
c_Inversion
);
ShiftRegister1
<=
ShiftRegister0
;
ShiftRegister2
<=
ShiftRegister1
;
end
if
;
end
process
;
Reset_or
<=
ShiftRegister
(
g_Length
-1
)
;
Reset_or
<=
ShiftRegister
2
;
end
architecture
;
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