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
3531d2fc
Commit
3531d2fc
authored
Sep 07, 2017
by
Christian Fibich
Committed by
Stefan Tauner
Oct 03, 2017
Browse files
Also calculate #bytes in config
For future latency estimation
parent
13a36057
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/FIJI/Settings.pm
View file @
3531d2fc
...
...
@@ -931,7 +931,12 @@ sub estimate_resources {
my
@calcrv
=
_est_resources
(
$consts_ref
->
{'
FREQUENCY
'},
$consts_ref
->
{'
BAUDRATE
'},
$consts_ref
->
{'
TIMER_WIDTH
'},
$consts_ref
->
{'
RST_DUT_IN_DUR
'},
$consts_ref
->
{'
LFSR_WIDTH
'},
$fiu_num
,
"
logarithmic
");
my
$IDBYTES
=
2
;
my
$CONFIG_BYTE
=
1
;
my
$CRC_BYTE
=
1
;
my
$rv
=
{
msgbytes
=>
2
*$consts_ref
->
{'
TIMER_WIDTH
'}
+
ceil
(
$fiu_num
*
6.0
/
8.0
)
+
$IDBYTES
+
$CONFIG_BYTE
+
$CRC_BYTE
,
regs
=>
sprintf
("
%.2f
",
$calcrv
[
0
]
/
$base_resources
[
0
]),
lut_calc
=>
sprintf
("
%.2f
",
$calcrv
[
1
]
/
$base_resources
[
1
]),
out_of_range
=>
$calcrv
[
2
],
...
...
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