Skip to content

Commit

Permalink
vga: updated make.py due to changes into pyfpga (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigomelo9 authored and umarcor committed Nov 4, 2020
1 parent b1748d9 commit f7b7f68
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
6 changes: 6 additions & 0 deletions vga/.pyfpga.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
openflow:
oci:
engine:
command: docker
volumes: ["$HOME:$HOME"]
work: $PWD
46 changes: 24 additions & 22 deletions vga/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,28 @@
#-

TASKS = {
'icestick': { # Class YosysNextpnr
'top': 'Icestick_Top',
'arch': '',
'part': 'hx1k-tq144',
'srcs': DESIGN_SRCS + ICE40_SRCS + ICESTICK['srcs'],
'constraints': ICESTICK['constraints']
},
'tinyfpgabx': { # Class YosysNextpnr
'top': 'TinyFPGABX_Top',
'arch': '',
'part': 'lp8k-cm81',
'srcs': DESIGN_SRCS + ICE40_SRCS + TINYFPGA_SRCS,
'constraints': TINYFPGA_CONSTRAINTS
}
'icestick': Project(
tool='openflow',
project='icestick',
init={
'top': 'Icestick_Top',
'arch': '',
'part': 'hx1k-tq144',
'vhdl': DESIGN_SRCS + ICE40_SRCS + ICESTICK['srcs'],
'constraint': ICESTICK['constraints']
}
),
'tinyfpgabx': Project(
tool='openflow',
project='tinyfpgabx',
init={
'top': 'TinyFPGABX_Top',
'arch': '',
'part': 'lp8k-cm81',
'vhdl': DESIGN_SRCS + ICE40_SRCS + TINYFPGA_SRCS,
'constraint': TINYFPGA_CONSTRAINTS
}
)
#'pynq': { # Class Vivado, GhdlVivado and/or YosysVivado
# 'top': '',
# 'arch': '',
Expand All @@ -106,11 +114,5 @@
# YosysVivado: ghdl-yosy-plugin + Yosys for synthesis, and Vivado for implementation.
# VUnitJSON: generate a JSON file describing the filesets and params to be imported in VUnit `run.py` files.

for key, task in TASKS.items():
print('> %s' % key)
prj = Project('openflow')
prj.set_part(task['part'])
for file in task['srcs']+task['constraints']:
prj.add_files(file)
prj.set_top(task['top'])
prj.generate()
for task in TASKS:
TASKS[task].generate()

0 comments on commit f7b7f68

Please sign in to comment.