Commit d369ecc5 authored by Christian Fibich's avatar Christian Fibich Committed by Stefan Tauner
Browse files

Also calculate #bytes in config

For future latency estimation
parent 389f0fa6
......@@ -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],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment