Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vecs
FIJI Public
Commits
44da5c60
Commit
44da5c60
authored
Apr 13, 2017
by
Christian Fibich
Committed by
Stefan Tauner
May 04, 2018
Browse files
Added basys3 clkgen implementation
parent
4944936d
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/demos/tmr_vga/rtl/spriteflyer_clkgen_basys3.vhd
0 → 100644
View file @
44da5c60
library
ieee
;
use
ieee
.
numeric_std
.
all
;
architecture
basys3
of
spriteflyer_clkgen
is
signal
s_ce_count
:
unsigned
(
1
downto
0
);
signal
s_reset_n
:
std_logic
;
begin
s_clk_o
<=
s_clk_i
;
s_reset_n
<=
not
s_reset_x_i
;
s_reset_n_o
<=
s_reset_n
;
-- 25 MHz clken from input clock clk (100 MHz)
p_clken
:
process
(
s_clk_i
,
s_reset_n
)
begin
if
s_reset_n
=
'0'
then
s_ce25_o
<=
'0'
;
s_ce_count
<=
"00"
;
elsif
s_clk_i
'event
and
s_clk_i
=
'1'
then
s_ce25_o
<=
'0'
;
s_ce_count
<=
s_ce_count
+
1
;
if
s_ce_count
=
"11"
then
s_ce25_o
<=
'1'
;
s_ce_count
<=
"00"
;
end
if
;
end
if
;
end
process
p_clken
;
end
basys3
;
\ No newline at end of file
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