Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
absenc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
absenc
Commits
f49ce93e
Commit
f49ce93e
authored
Jan 05, 2016
by
Fabien Le Mentec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: one more tick master clock frequency issue
parent
7ad46c48
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
user.tcl
sim/isim/user.tcl
+1
-0
absenc_master.vhd
src/absenc_master.vhd
+6
-8
No files found.
sim/isim/user.tcl
View file @
f49ce93e
...
...
@@ -16,3 +16,4 @@ source biss.tcl
wave add /main/clk
wave add /main/ma_clk
wave add /main/ma_delayed_clk
wave add /main/master/ma_half_match
\ No newline at end of file
src/absenc_master.vhd
View file @
f49ce93e
...
...
@@ -196,31 +196,29 @@ report "ma_fdiv'length too large" severity failure;
-- generate edges using a counter from ma_fdiv/2 to 0
ma_half_fdiv
<=
ma_fdiv
srl
1
;
ma_half_match
<=
'1'
when
ma_half_count
=
1
else
'0'
;
process
begin
wait
until
rising_edge
(
clk
);
ma_half_match
<=
'0'
;
if
((
rst
or
ma_clk_rst_en
)
=
'1'
)
then
ma_half_count
<=
ma_half_fdiv
;
elsif
(
ma_half_count
=
0
)
then
if
((
rst
or
ma_clk_rst_en
or
ma_half_match
)
=
'1'
)
then
ma_half_count
<=
ma_half_fdiv
;
ma_half_match
<=
'1'
;
else
ma_half_count
<=
ma_half_count
-
1
;
end
if
;
end
process
;
process
begin
wait
until
rising_edge
(
clk
);
if
((
rst
or
ma_clk_rst_en
)
=
'1'
)
then
ma_clk_val
<=
ma_clk_rst_val
;
els
if
(
ma_half_match
=
'1'
)
then
ma_clk_val
<=
not
ma_clk_val
;
els
e
ma_clk_val
<=
ma_clk_val
xor
ma_half_match
;
end
if
;
end
process
;
...
...
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