From e3f577e0be979eae76c546955695666498445cca Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Sat, 17 Jul 2021 17:02:22 +0200 Subject: [PATCH] openfpgaloader: improves freq conversion type --- litex/build/openfpgaloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/build/openfpgaloader.py b/litex/build/openfpgaloader.py index a25e8a0d5..1f5b0d032 100644 --- a/litex/build/openfpgaloader.py +++ b/litex/build/openfpgaloader.py @@ -19,7 +19,7 @@ class OpenFPGALoader(GenericProgrammer): if cable: self.cmd += ["--cable", cable] if freq: - self.cmd += ["--freq", str(int(freq))] + self.cmd += ["--freq", str(int(float(freq)))] def load_bitstream(self, bitstream_file): self.cmd += ["--bitstream", bitstream_file]