aboutsummaryrefslogtreecommitdiffstats
path: root/ice40/delay.cc
diff options
context:
space:
mode:
authorEddie Hung <eddieh@ece.ubc.ca>2018-08-08 19:52:39 -0700
committerEddie Hung <eddieh@ece.ubc.ca>2018-08-08 19:52:39 -0700
commit41e05c95aae3b9d3397ec28d8836c40d089386e2 (patch)
treea20f52cda8fd75d2e087b8eb2357ebaa7c10c748 /ice40/delay.cc
parent5dd7a74b874cae0bb8b22ef8a385e2546d3bd531 (diff)
downloadnextpnr-41e05c95aae3b9d3397ec28d8836c40d089386e2.tar.gz
nextpnr-41e05c95aae3b9d3397ec28d8836c40d089386e2.tar.bz2
nextpnr-41e05c95aae3b9d3397ec28d8836c40d089386e2.zip
ice40: Speedup Arch::predictDelay() with pass-by-ref
Diffstat (limited to 'ice40/delay.cc')
-rw-r--r--ice40/delay.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ice40/delay.cc b/ice40/delay.cc
index dd2a4969..d76aaefb 100644
--- a/ice40/delay.cc
+++ b/ice40/delay.cc
@@ -121,7 +121,7 @@ struct model_params_t
int delta_sp4;
int delta_sp12;
- static const model_params_t &get(ArchArgs args)
+ static const model_params_t &get(const ArchArgs& args)
{
static const model_params_t model_hx8k = {588, 129253, 8658, 118333, 23915, -73105, 57696,
-86797, 89, 3706, -316, -575, -158, -296};