projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fe319f
)
vendor.lattice_ice40: zero-pad CLKHF_DIV in SB_HFOSC instance.
author
David Lattimore
<dvdlttmr@gmail.com>
Mon, 2 Nov 2020 06:19:47 +0000
(17:19 +1100)
committer
GitHub
<noreply@github.com>
Mon, 2 Nov 2020 06:19:47 +0000
(06:19 +0000)
Fixes #520.
nmigen/vendor/lattice_ice40.py
patch
|
blob
|
history
diff --git
a/nmigen/vendor/lattice_ice40.py
b/nmigen/vendor/lattice_ice40.py
index 14026fa268c12f487f9aaa5b24161ffb23cd5918..d5e4dd65e06cdc4bb6b816305d0c3cf22ccc69be 100644
(file)
--- a/
nmigen/vendor/lattice_ice40.py
+++ b/
nmigen/vendor/lattice_ice40.py
@@
-379,7
+379,7
@@
class LatticeICE40Platform(TemplatedPlatform):
m.submodules += Instance("SB_HFOSC",
i_CLKHFEN=1,
i_CLKHFPU=1,
- p_CLKHF_DIV="0b{0:b}".format(self.hfosc_div),
+ p_CLKHF_DIV="0b{0:
02
b}".format(self.hfosc_div),
o_CLKHF=clk_i)
delay = int(100e-6 * self.default_clk_frequency)
# Internal low-speed clock: 10 KHz.