Commit Graph

137 Commits

Author SHA1 Message Date
Jeremiah C Leary c96bf8317b Updates for instantiation rules:
1)  Flagging instantiation ports with 0 or more than one space after the => operator.
2017-10-15 15:21:21 -05:00
Jeremiah C Leary c17fed570a Updates for instantiation rules:
1)  Multiple port assignments on a single line are flagged.
2017-10-15 13:17:04 -05:00
Jeremiah C Leary 9a24c677e0 Updates for comment rules:
1)  Flagging comments without a single space before them.
2017-10-15 12:13:45 -05:00
Jeremiah C Leary 82c9710355 Updates for function rules.
1)  Additional rules to handle functions.
2017-10-15 09:34:37 -05:00
Jeremiah C Leary d83c9c3512 Updates for for loop rules:
1)  Added attributes for for loops into line class
  2)  Added populating attributes into vhdlFile class
2017-10-15 08:02:13 -05:00
Jeremiah C Leary bc32304bd6 Updates to case and sequential rules after running against example code:
1)  Sequential will not flag lines in which there is not code after the <= operator
  2)  Cases are now detected inside functions
  3)  Code after => in case when lines are flagged
2017-10-14 13:26:35 -05:00
Jeremiah C Leary 8c832de9d7 Defaulting port prefix/suffix check to None. 2017-10-14 12:20:48 -05:00
Jeremiah C Leary fcf825890b Updates for if rules:
1)  If rules flag if else or elsif or endif do not begin their own lines.
2017-10-14 11:09:48 -05:00
Jeremiah C Leary e21443baaf Updates for if rules:
1)  Fixed issue when a case statement ends above a else keyword.
2017-10-08 20:14:39 -05:00
Jeremiah C Leary 21c2b803f5 Updates for instance rules:
1)  Fixed issue where function parameter was mistaken for an instance declaration.
2017-10-08 20:09:47 -05:00
Jeremiah C Leary c4bf737038 Update for function rules:
1)  Added first function rule for indentation
2017-10-08 14:35:25 -05:00
Jeremiah C Leary 1759dcbb05 Updates for generic rules:
1)  Multiple generics defined on a single line are flagged.
2017-10-08 14:21:35 -05:00
Jeremiah C Leary af26a0993b Updates for if rules:
1)  Code after else statement is flagged to be on the next line.
2017-10-08 14:08:18 -05:00
Jeremiah C Leary 6f714ff3e3 Updates for function rules:
1)  Added function attributes to line class
  2)  Added function attribute assignments to vhdlFile class
2017-10-08 11:41:07 -05:00
Jeremiah C Leary c155bf0b59 Updates for whitespace rules:
1)  Allow spaces between open parenthesis and numbers to allow aligning of "downto" ranges.
2017-10-08 07:26:07 -05:00
Jeremiah C Leary 6352da8b3a Updates for concurrent rules:
1)  Added rule to flag code after "else" keyword.
2017-10-08 07:15:57 -05:00
Jeremiah C Leary f909c944d1 Updates for if rules:
1)  Added rule to catch sequential assignments on same line as then keyword.
2017-10-08 07:06:07 -05:00
Jeremiah C Leary 2302960e03 Updated after another run against an example:
1)  Updated spacing around if and case keywords
  2)  Remove comments within multiline sequential statements
2017-10-07 19:48:13 -05:00
Jeremiah C Leary d4a8315af3 Updates after running on another example:
1)  Updated conflict between case and if rules
  2)  Updated concurrent rule for spacing after =>
  3)  Updated instantion to detect port assignments on same line as port map keyword
  4)  Update case to ensure sequential assignment is not on same line as when keyword
  5)  Updated port assignment to ensure at least one space before :
2017-10-07 18:44:08 -05:00
Jeremiah C Leary 40b23d6e5f Updates for generic rules:
1)  Added alignment of := operator.
2017-10-07 15:18:23 -05:00
Jeremiah C Leary ff6c3783ee Updates for generate rules:
1)  Basic rules to handle "if generate" commands

NOTE:  Need many more rules
2017-10-07 15:08:17 -05:00
Jeremiah C Leary 91e59c3688 Adding installation instructions. 2017-10-07 14:22:21 -05:00
Jeremiah C Leary 1e4573b71d Updates for distribution:
1)  Renamed application
  2)  Added application to setup.py
2017-10-07 09:07:58 -05:00
Jeremiah C Leary 7d892b4767 Fixed importing issues. 2017-10-07 07:13:01 -05:00
Jeremiah Leary ed5da4b30e Updates for generate rules:
1)  Added generate attributes to line class
  2)  Populated line class generate attributes with vhdlFile class
2017-10-05 22:27:02 -05:00
Jeremiah Leary 3fa6669412 Updates for rule renaming:
1)  Fixed filter on importing rules
2017-09-30 07:52:10 -05:00
Jeremiah Leary d890e70dd8 Updates for rule renaming:
1)  Renamed if rule to if_statement
2017-09-30 07:48:44 -05:00
Jeremiah Leary 8a2de57acd Updates for rule renaming:
1)  Removed rule_ from beginning of rule names
  2)  Renamed test directories

NOTE:  need to rename if rule to if_statement since if is a python keyword.
2017-09-30 07:44:27 -05:00
Jeremiah Leary f78c2b8f76 Updates after running on new examples. 2017-09-29 22:57:46 -05:00
Jeremiah Leary a6ea0758a8 Restructered directory using:
http://python-packaging.readthedocs.io/en/latest/index.html

as a reference
2017-09-29 21:57:28 -05:00
Jeremiah Leary c701bb76de Updates for package rules:
1)  Added package rules
  2)  Updated vhdlFile when running against examples
  3)  Bare bones package body checks
2017-09-29 18:34:39 -05:00
Jeremiah Leary 9ff53e0412 Updates for package rules:
1)  Added package attributes to line class
  2)  Added package attribute assignments to vhdlFile
  3)  Added indent tests to case, component and if rules
2017-09-29 10:54:35 -05:00
Jeremiah Leary baa0d35805 Updates to rules after running against examples. 2017-09-28 14:11:14 -05:00
Jeremiah Leary 95bb924133 Updated rule solution text after running against example. 2017-09-28 09:45:22 -05:00
Jeremiah Leary b5192c3395 Updates to instantion rules:
1)  Added rules for generic maps
2017-09-28 09:13:00 -05:00
Jeremiah Leary 2b2212cfbf Updates for generic rules:
1)  Fixed generic indenting in components.
2017-09-26 16:07:16 -05:00
Jeremiah Leary f5f0eaae92 Updates to main program:
1)  Removed debug print statements
2017-09-24 21:51:30 -05:00
Jeremiah Leary b2f4d955e5 Updates to main program:
1)  Violations are now reported as sequential lines
2017-09-24 21:46:02 -05:00
Jeremiah Leary a3d295b24b Updates for generic rules:
1)  Added rule to check for space before : in generic declaration
2017-09-23 19:09:54 -05:00
Jeremiah Leary 25b2cead27 Updates for rules:
1)  Updated additional rules after running against examples.
2017-09-23 17:13:27 -05:00
Jeremiah Leary 74928d9914 Updates to rules:
1)  Updated rules after running against examples
2017-09-23 16:02:39 -05:00
Jeremiah Leary 6271672ae1 Updates for top level program:
1)  Implemented "phase" concept to help with implementing changes
      a)  Added phase attribute to rule class
      b)  Updated all rules to include a phase number
      c)  Top level program runs all rules in a particular phase first before going on to next phase.
2017-09-23 14:44:21 -05:00
Jeremiah Leary 6ba5ca2984 Updates for instantiation rules:
1)  Initial set of rules for instantiations
2017-09-23 10:15:47 -05:00
Jeremiah Leary 31a746819b Enhanced output of tool. 2017-09-22 17:42:13 -05:00
Jeremiah Leary 7932e9fc41 Updates for component rules:
1)  Added rule to check for alignment of :'s in component port declarations.
2017-09-22 17:28:19 -05:00
Jeremiah Leary 5d046a4150 Updates for port rules:
1)  Port directions are checked for correct case
2017-09-22 16:52:03 -05:00
Jeremiah Leary 7225da8d71 Updates to port rules:
1)  Made port rules work on component port maps
2017-09-22 11:44:33 -05:00
Jeremiah Leary d88481c884 Updates for rule loading refactoring:
1)  Added function to load base rules so as rules are added they do
  not need to be added to the rule_list class.  This will also support
  user local rules eventually.
  2)  Moved rules to their own directory
  3)  Updated tests to handle new location of rules
2017-09-22 09:58:50 -05:00
Jeremiah Leary 5507c3321c Updated program so it can executed from anywhere, instead of from bin. 2017-09-22 08:05:10 -05:00
Jeremiah Leary 76845d60d7 Adding component rules. 2017-09-22 07:57:52 -05:00