Skip to content

Commit

Permalink
Add a DHCEN example.
Browse files Browse the repository at this point in the history
Signed-off-by: YRabbit <[email protected]>
  • Loading branch information
yrabbit committed Aug 13, 2024
1 parent 5af24fd commit efd2433
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apycula/gowin_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -2547,6 +2547,8 @@ def place(db, tilemap, bels, cst, args):
elif typ in ["CLKDIV", "CLKDIV2"]:
hclk_attrs = set_hclk_attrs(db, parms, num, typ, cellname)
bits = get_shortval_fuses(db, tiledata.ttyp, hclk_attrs, "HCLK")
for r, c in bits:
tile[r][c] = 1
elif typ == 'DQCE':
# Himbaechel only
pipre = re.compile(r"X(\d+)Y(\d+)/([\w_]+)/([\w_]+)")
Expand Down
4 changes: 2 additions & 2 deletions examples/himbaechel/Makefile.himbaechel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ NEXTPNR ?= nextpnr-himbaechel
all: \
blinky-tangnano20k.fs shift-tangnano20k.fs blinky-tbuf-tangnano20k.fs blinky-oddr-tangnano20k.fs \
blinky-osc-tangnano20k.fs tlvds-tangnano20k.fs elvds-tangnano20k.fs oddr-tlvds-tangnano20k.fs \
blinky-clkdiv-tangnano20k.fs dvi-example-tangnano20k.fs\
blinky-clkdiv-tangnano20k.fs dvi-example-tangnano20k.fs blinky-clkdiv-dhcen-tangnano20k.fs \
oddr-elvds-tangnano20k.fs pll-nanolcd-tangnano20k.fs attosoc-tangnano20k.fs \
oser4-tangnano20k.fs ovideo-tangnano20k.fs oser8-tangnano20k.fs oser10-tangnano20k.fs \
ides4-tangnano20k.fs ivideo-tangnano20k.fs ides8-tangnano20k.fs ides10-tangnano20k.fs \
Expand All @@ -21,7 +21,7 @@ all: \
\
blinky-primer20k.fs shift-primer20k.fs blinky-tbuf-primer20k.fs blinky-oddr-primer20k.fs \
blinky-osc-primer20k.fs tlvds-primer20k.fs elvds-primer20k.fs oddr-tlvds-primer20k.fs \
blinky-clkdiv-primer20k.fs dvi-example-primer20k.fs\
blinky-clkdiv-primer20k.fs dvi-example-primer20k.fs blinky-clkdiv-dhcen-primer20k.fs \
oddr-elvds-primer20k.fs pll-nanolcd-primer20k.fs attosoc-primer20k.fs \
oser4-primer20k.fs ovideo-primer20k.fs oser8-primer20k.fs oser10-primer20k.fs \
ides4-primer20k.fs ivideo-primer20k.fs ides8-primer20k.fs ides10-primer20k.fs \
Expand Down

0 comments on commit efd2433

Please sign in to comment.