Line 1... |
Line 1... |
################################################################################
|
################################################################################
|
#
|
#
|
# Copyright 2013, Sinclair R.F., Inc.
|
# Copyright 2013-2014, Sinclair R.F., Inc.
|
#
|
#
|
################################################################################
|
################################################################################
|
|
|
import re;
|
import re;
|
|
|
Line 58... |
Line 58... |
def __init__(self,peripheralFile,config,param_list,loc):
|
def __init__(self,peripheralFile,config,param_list,loc):
|
# Get the parameters.
|
# Get the parameters.
|
allowables = (
|
allowables = (
|
('outport', r'O_\w+$', None, ),
|
('outport', r'O_\w+$', None, ),
|
('outsignal', r'o_\w+$', None, ),
|
('outsignal', r'o_\w+$', None, ),
|
('width', r'(9|[1-9]\d*)$', int, ),
|
( 'width', r'(9|[1-9]\d+)$', int, ),
|
);
|
);
|
names = [a[0] for a in allowables];
|
names = [a[0] for a in allowables];
|
for param_tuple in param_list:
|
for param_tuple in param_list:
|
param = param_tuple[0];
|
param = param_tuple[0];
|
if param not in names:
|
if param not in names:
|