fix opae build

This commit is contained in:
Blaise Tine 2020-04-20 12:51:42 -07:00
parent 3cbecfcef0
commit d79e36912f
76 changed files with 84 additions and 84 deletions

View file

@ -61,7 +61,7 @@ translation_rules = [
(re.compile(r'^( *)`ifndef ([^ ]+)$'), r'\1#ifndef \2'),
(re.compile(r'^( *)`define ([^ ]+)$'), r'\1#define \2'),
# (re.compile(r'^( *)`include "\./VX_define_synth\.v"$'), r'\1#include "VX_define_synth.h"'),
(re.compile(r'^( *)`include "VX_user_config\.v"$'), r''),
(re.compile(r'^( *)`include "VX_user_config\.vh"$'), r''),
(re.compile(r'^( *)`define ([^ ]+) (.+)$'), r'\1#define \2 \3'),
(re.compile(r'^( *)`endif$'), r'\1#endif'),
(re.compile(r'^( *)// (.*)$'), r'\1// \2'),
@ -93,9 +93,9 @@ if args.outc != 'none':
// auto-generated by gen_config.py. DO NOT EDIT
// Generated at {date}
// Translated from VX_config.v:
// Translated from VX_config.vh:
'''[1:].format(date=datetime.now()), file=f)
with open(path.join(script_dir, '../rtl/VX_config.v'), 'r') as r:
with open(path.join(script_dir, '../rtl/VX_config.vh'), 'r') as r:
for line in r:
if in_expansion:
f.write(post_process_line(line))