Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
nanoFIP - Gateware
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
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
nanoFIP - Gateware
Commits
875b75fc
Commit
875b75fc
authored
Apr 08, 2024
by
Alén Arias Vázquez
😎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test instead with 32bit counter
parent
0715c4e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
wf_reset_unit.vhd
src/wf_reset_unit.vhd
+7
-6
No files found.
src/wf_reset_unit.vhd
View file @
875b75fc
...
...
@@ -184,8 +184,9 @@ architecture rtl of wf_reset_unit is
type
rstin_st_t
is
(
IDLE
,
RSTIN_EVAL
,
nFIP_ON_FD_ON
,
nFIP_OFF_FD_ON
,
nFIP_OFF_FD_OFF
);
signal
rstin_st
,
nx_rstin_st
:
rstin_st_t
;
-- RSTIN counter
signal
s_rstin_c
,
s_var_rst_c
:
unsigned
(
c_2_PERIODS_COUNTER_LGTH
-1
downto
0
);
signal
s_rstin_c_reinit
,
s_rstin_c_is_three
:
std_logic
;
signal
s_rstin_c
:
unsigned
(
c_2_PERIODS_COUNTER_LGTH
-1
downto
0
);
signal
s_var_rst_c
:
unsigned
(
c_2_PERIODS_COUNTER_LGTH
+
19
downto
0
);
signal
s_rstin_c_reinit
,
s_rstin_c_is_three
:
std_logic
;
signal
s_rstin_c_is_seven
,
s_rstin_c_is_4txck
:
std_logic
;
signal
s_rstin_c_is_full
:
std_logic
;
-- resets generated after a RSTIN
...
...
@@ -195,7 +196,7 @@ architecture rtl of wf_reset_unit is
VAR_RST_nFIP_OFF_FD_ON_RSTON_ON
,
VAR_RST_nFIP_ON_FD_ON
,
VAR_RST_nFIP_OFF_FD_ON_RSTON_OFF
);
signal
var_rst_st
,
nx_var_rst_st
:
var_rst_st_t
;
-- var_rst counter
-- var_rst counter
signal
s_var_rst_c_reinit
,
s_var_rst_c_is_three
:
std_logic
;
signal
s_var_rst_c_is_seven
,
s_var_rst_c_is_4txck
:
std_logic
;
signal
s_var_rst_c_is_full
:
std_logic
;
...
...
@@ -656,7 +657,7 @@ RSTIN_free_counter: wf_incr_counter
-- s_var_rst_c_is_full will be activated and the FSM will be reset.
free_counter
:
wf_incr_counter
generic
map
(
g_counter_lgth
=>
c_2_PERIODS_COUNTER_LGTH
)
generic
map
(
g_counter_lgth
=>
c_2_PERIODS_COUNTER_LGTH
+
20
)
port
map
(
uclk_i
=>
uclk_i
,
counter_reinit_i
=>
s_var_rst_c_reinit
,
...
...
@@ -667,8 +668,8 @@ free_counter: wf_incr_counter
----------------------------------------
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
s_var_rst_c_is_seven
<=
'1'
when
s_var_rst_c
=
to_unsigned
(
7
,
s_var_rst_c
'length
)
else
'0'
;
s_var_rst_c_is_three
<=
'1'
when
s_var_rst_c
=
to_unsigned
(
3
,
s_var_rst_c
'length
)
else
'0'
;
s_var_rst_c_is_seven
<=
'1'
when
s_var_rst_c
=
to_unsigned
(
2147483648
,
s_var_rst_c
'length
)
else
'0'
;
s_var_rst_c_is_three
<=
'1'
when
s_var_rst_c
=
to_unsigned
(
1073741824
,
s_var_rst_c
'length
)
else
'0'
;
s_var_rst_c_is_4txck
<=
'1'
when
s_var_rst_c
=
s_txck_four_periods
-1
else
'0'
;
...
...
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