diff options
author | David Shah <dave@ds0.me> | 2020-07-02 13:32:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 13:32:02 +0100 |
commit | 59ace924366312e058c46cfb75685de440bb62ad (patch) | |
tree | 081945128c41a2390105ea47cd4a8efd40934771 /icebox/icebox_vlog.py | |
parent | ed978e24e2874ba20e16da18d735f414680c34be (diff) | |
parent | 4bc68c9620e6be20f8fe10d20f84681d80beac23 (diff) | |
download | icestorm-59ace924366312e058c46cfb75685de440bb62ad.tar.gz icestorm-59ace924366312e058c46cfb75685de440bb62ad.tar.bz2 icestorm-59ace924366312e058c46cfb75685de440bb62ad.zip |
Merge pull request #263 from YosysHQ/fix_vlog_up5k
Fix icebox_vlog for up5k
Diffstat (limited to 'icebox/icebox_vlog.py')
-rwxr-xr-x | icebox/icebox_vlog.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/icebox/icebox_vlog.py b/icebox/icebox_vlog.py index 0133347..74ac3d3 100755 --- a/icebox/icebox_vlog.py +++ b/icebox/icebox_vlog.py @@ -477,7 +477,10 @@ for pllid in ic.pll_list(): if plltype != "100": text_func.append(" .PLLOUT_SELECT_PORTA(\"%s\")," % get_pll_outsel(pllinfo, "PLLOUT_SELECT_A")) text_func.append(" .PLLOUT_SELECT_PORTB(\"%s\")," % get_pll_outsel(pllinfo, "PLLOUT_SELECT_B")) - text_func.append(" .SHIFTREG_DIV_MODE(1'b%s)," % get_pll_bit(pllinfo, "SHIFTREG_DIV_MODE")) + if ic.device == "5k": + text_func.append(" .SHIFTREG_DIV_MODE(2'b%s)," % get_pll_bits(pllinfo, "SHIFTREG_DIV_MODE", 2)) + else: + text_func.append(" .SHIFTREG_DIV_MODE(1'b%s)," % get_pll_bit(pllinfo, "SHIFTREG_DIV_MODE")) text_func.append(" .FDA_FEEDBACK(4'b%s)," % get_pll_bits(pllinfo, "FDA_FEEDBACK", 4)) text_func.append(" .FDA_RELATIVE(4'b%s)," % get_pll_bits(pllinfo, "FDA_RELATIVE", 4)) text_func.append(" .DIVR(4'b%s)," % get_pll_bits(pllinfo, "DIVR", 4)) |