Fix off-by-one error in vga.dg and add vga.{h,v}blank_begin signals

This commit is contained in:
2020-08-20 01:15:28 +02:00
parent a9c023eb6a
commit 99504c4026
4 changed files with 14 additions and 9 deletions
+1 -2
View File
@@ -4,7 +4,7 @@ import "/nmigen_dg/*"
import "/subprocess"
import "../common/pipeline"
run_icepll = current target ->
run_icepll = current target -> # TODO: use yowasp-nextpnr-ice40 if installed
current /= 1e6 # Hz -> MHz
target /= 1e6 # Hz -> MHz
out = subprocess.run ["icepll", "-i", str current, "-o", str target]
@@ -44,7 +44,6 @@ add_domain_from_pll = platform target_freq domain:"sync" -> pll_config where
pll_config = run_icepll
default_freq
target_freq
print pll_config
pll_clk = Signal!
pll_lock = Signal!