Merge pull request #970 from trabucayre/openfpgaloader_check_type

openfpgaloader: improves freq conversion type
This commit is contained in:
enjoy-digital 2021-07-19 09:58:21 +02:00 committed by GitHub
commit 1bf7abfc8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class OpenFPGALoader(GenericProgrammer):
if cable: if cable:
self.cmd += ["--cable", cable] self.cmd += ["--cable", cable]
if freq: if freq:
self.cmd += ["--freq", str(int(freq))] self.cmd += ["--freq", str(int(float(freq)))]
def load_bitstream(self, bitstream_file): def load_bitstream(self, bitstream_file):
self.cmd += ["--bitstream", bitstream_file] self.cmd += ["--bitstream", bitstream_file]