Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fpga_optimize cannot be set to 0 in swerv_config #100

Open
jlucnagel opened this issue Jul 8, 2021 · 1 comment
Open

fpga_optimize cannot be set to 0 in swerv_config #100

jlucnagel opened this issue Jul 8, 2021 · 1 comment

Comments

@jlucnagel
Copy link

Hi,
fpga_optimize defaults to 1 and it cannot be set to 0 on the command line (cannot receive a parameter and if not defined will be set to default value 1 !).
If this value shall never be set to 0, it should be removed from script. Otherwise the script should allow to pass 0 as a parameter (fairly minor fix).
Thanks,
Jean-Luc

diff --git a/configs/swerv.config b/configs/swerv.config
index 798eb14..27c998c 100755
--- a/configs/swerv.config
+++ b/configs/swerv.config
@@ -207,7 +207,7 @@
"pic_total_int=s" => $pic_total_int,
"icache_size=s" => $icache_size,
"ahb_lite" => $ahb_lite,

  • "fpga_optimize" => $fpga_optimize,
  • "fpga_optimize=s" => $fpga_optimize,
    "set=s@" => @Sets,
    "unset=s@" => @unsets,
    ) || die("$helpusage");
@aprnath
Copy link
Collaborator

aprnath commented Jul 8, 2021

It can be set to 0 via
-set=fpga_optimize=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants