Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VHDL Coding Style
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
VHDL Coding Style
Commits
71257941
Commit
71257941
authored
Apr 05, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README.
parent
4da68d6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
README
README
+54
-0
No files found.
README
0 → 100644
View file @
71257941
# OHWR vhdl-style document
This project contains the VHDL style document (in doc/) and the tool to
check the rules (ohwr.py).
Currently, all the mandatory rules except [ReferenceName] and those
for synthesis are implemented. However there may be some minor points
in the rules that aren't fully checked. The set of rules implemented don't
need a full analysis of the files, so you don't need to deal with dependencies,
any file can be checked.
# Tool usage
vhdllint-ohwr FILES...
# Building the tool.
You first need to build libghdl for python. Download github.com/ghdl/ghdl.git,
configure, make, and then execute: python setup.py install
Then execute in this directory: python setup.py install
(You can add --user for a local installation).
# Using cx_Freeze
Tested on windows; you need to manually copy libgnat-xx.dll in the lib/
subdirectory of the cx_Freeze result, as this library is needed by libghdl.
The result of cx_Freeze 5.1.1 wasn't working on Windows unless I use this
patch:
*** source/bases/Common.c.orig 2018-03-05 15:40:09.000000001 +0100
--- source/bases/Common.c 2018-03-06 14:22:21.000000001 +0100
***************
*** 18,27 ****
--- 18,34 ----
// define code for Python 2.x to set sys.path
// can't use os.path, due to only `sys` module loaded at this point
+ #if defined(MS_WINDOWS)
+ #define CX_SET_PATH_CODE \
+ "import sys\n" \
+ "lib = sys.exec_prefix + '\\\\lib\\\\'\n" \
+ "sys.path = [lib, lib + 'library.zip']\n"
+ #else
#define CX_SET_PATH_CODE \
"import sys\n" \
"lib = sys.exec_prefix + '/lib'\n" \
"sys.path = [lib, lib + '/library.zip']\n"
+ #endif
// define names that will work for both Python 2 and 3
#if PY_MAJOR_VERSION >= 3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment