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
f3378e01
Commit
f3378e01
authored
May 17, 2017
by
Christian Fibich
Committed by
Stefan Tauner
May 04, 2018
Browse files
Test export as VHDL architecture small fix
fixed invalid comparison and unnecessary print
parent
63f12c9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/FIJI/Tests/VHDL.pm
View file @
f3378e01
...
...
@@ -58,7 +58,7 @@ END_CLKCNTR
$vhdl
.=
sprintf
("
--trigger synchronization/edge detection
\n
"
.
$clkcntr
,
2
);
}
if
(
defined
$reset
&&
$reset
!=
0
)
{
if
(
defined
$reset
&&
$reset
ne
0
)
{
$vhdl
.=
$indent
.
"
-- BEGIN reset time (
$settings_ref
->{'design'}->{'RST_DUT_IN_DUR'})
\n
";
# $vhdl .= $indent."wait for ".(($settings_ref->{'design'}->{'RST_DUT_IN_DUR'})*$period)." $si;\n";
$vhdl
.=
sprintf
(
$clkcntr
,
$settings_ref
->
{'
design
'}
->
{'
RST_DUT_IN_DUR
'})
...
...
@@ -302,7 +302,6 @@ sub export_as_vhd_fiji_architecture {
my
$lfsr_width_multiple_of_4
=
ceil
(
$design_ref
->
{'
LFSR_WIDTH
'}
/
4
)
*
4
-
1
;
my
$lfsr_fmt
=
"
\
%0
"
.
ceil
(
$design_ref
->
{'
LFSR_WIDTH
'}
/
4
)
.
"
X
";
print
"
==============
$lfsr_fmt
=================
";
my
$lfsr_seed_hex
=
sprintf
(
$lfsr_fmt
,
$design_ref
->
{'
LFSR_SEED
'});
my
$lfsr_poly_hex
=
sprintf
(
$lfsr_fmt
,
$design_ref
->
{'
LFSR_POLY
'});
...
...
@@ -607,4 +606,4 @@ END_VHDL
return
$msg
;
}
1
;
\ No newline at end of file
1
;
Write
Preview
Supports
Markdown
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