Commit 9729516c authored by Tristan Gingold's avatar Tristan Gingold

wrtd_builder.py: add spec

parent 913c1b3a
......@@ -98,7 +98,7 @@ def build_mt_config(desc, res):
res.mt_config = cfg
BOARD_SLOTS = { 'svec': [0, 1]}
BOARD_SLOTS = { 'svec': [0, 1], 'spec': [0]}
def maybe_mkdir(path):
......@@ -202,9 +202,9 @@ def generate_top_hdl(f):
m = layout_re.match(l)
if m is None:
error('badly formatted sdb-layout line "{}"'.format(l))
nbr_slaves += 1
d = " constant {} : integer := {};\n".format(
d = " constant {} : integer := c_WB_SLAVE_BASE + {};\n".format(
m.group(1), nbr_slaves)
nbr_slaves += 1
templates['slaves_decl'] += d
top_template = open(os.path.join(data_dir, f.board, 'top.vhd')).read()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment