Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- Did you noticed that I have a - sign before the [expr ] ? --- Quote End --- Didn't notice them, but I don't believe they should be there. You're current expressions: # Board trace delays set max_btd 2 set min_btd 1 -[expr +$min_btd +10 -$max_btd] -[ 1 + 10 - 2 ] -[ 11 - 2 ] -[ 9 ] -9 -[expr +$min_btd +5 -$max_btd] -[ 1 + 5 - 2 ] -[ 6 - 2 ] -[ 4 ] -4 What the system view, source sync docs seem to be saying (no leading minus sign on the entire expression,instead tH value itself is negated): [expr +$min_btd -10 -$max_btd] [ 1 - 10 - 2 ] [ -9 - 2 ] [ -11 ] -11 [expr +$min_btd -5 -$max_btd] [ 1 - 5 - 2 ] [ -4 - 2 ] [ -6 ] -6 The results do seem to work out differently. Tbh, I havent seen versions of these -max -min equations where the -min [expr... ] has started off with a negative sign.