Updates for issue #499

Updating tests and changes in rule concurrent_009.
Updating concurrent_009 to fix crashing error.
This commit is contained in:
Jeremiah Leary 2021-03-07 20:04:52 -06:00
parent a3cb639003
commit fd4f8f60e8
5 changed files with 14 additions and 10 deletions

View File

@ -31,7 +31,8 @@ class rule_009(rule.Rule):
def __init__(self):
rule.Rule.__init__(self, 'concurrent', '009')
self.phase = 4
self.phase = 5
self.subphase = 2
self.lTokenPairs = lTokenPairs
self.align_left = 'no'
self.configuration.append('align_left')

View File

@ -450,10 +450,13 @@ def _analyze_align_paren_no_align_left_no(iFirstLine, iLastLine, lParens, dActua
def _starts_with_paren(lTokens):
iToken = utils.find_next_non_whitespace_token(1, lTokens)
if isinstance(lTokens[iToken], parser.open_parenthesis):
return True
try:
if isinstance(lTokens[iToken], parser.open_parenthesis):
return True
except IndexError:
if isinstance(lTokens[0], parser.open_parenthesis):
return True
return False

View File

@ -2898,17 +2898,17 @@
{
"rule": "process_020",
"linenumber": 413,
"solution": "Adjust indent to column 67"
"solution": "Adjust indent to column 33"
},
{
"rule": "process_020",
"linenumber": 414,
"solution": "Adjust indent to column 67"
"solution": "Adjust indent to column 33"
},
{
"rule": "process_020",
"linenumber": 492,
"solution": "Adjust indent to column 63"
"solution": "Adjust indent to column 31"
},
{
"rule": "process_022",

View File

@ -13,8 +13,8 @@ architecture Behavioral of Debouncer is
signal nextHistory : STD_LOGIC := '0';
begin
nCounter <= x"FFFFFF" when Counter=x"FFFFFF" and Button='1' else
x"000000" when Counter=x"000000" and Button='0' else
Counter+1 when Button='1' else Counter-1;
x"000000" when Counter=x"000000" and Button='0' else
Counter+1 when Button='1' else Counter-1;
nextHistory <= '0' when Counter=x"000000" else '1';
nButtonHistory <= nextHistory & ButtonHistory(1);
Dout <= '1' when ButtonHistory="01" else '0';

View File

@ -22,7 +22,7 @@ architecture Behavioral of Pointer is
signal rY : STD_LOGIC_VECTOR (8 downto 0) := initY;
begin
Here <= '1' when syncX(9 downto 3)=rX(9 downto 3) and
syncY(8 downto 3)=rY(8 downto 3) else '0';
syncY(8 downto 3)=rY(8 downto 3) else '0';
X <= rX;
Y <= rY;
process (Clk) begin