aboutsummaryrefslogtreecommitdiffstats
path: root/CodingReadme
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-10-17 16:39:24 +0200
committerClifford Wolf <clifford@clifford.at>2014-10-17 16:39:24 +0200
commitc321b419d45be8c25bac671df776a779da78b090 (patch)
tree814f073be087cf1e6f12d7fd623fcd5b700226ec /CodingReadme
parente8a609f0e52b14d39598bae81910e8c80ac5ef7c (diff)
downloadyosys-c321b419d45be8c25bac671df776a779da78b090.tar.gz
yosys-c321b419d45be8c25bac671df776a779da78b090.tar.bz2
yosys-c321b419d45be8c25bac671df776a779da78b090.zip
Added notes regarding building in VS
Diffstat (limited to 'CodingReadme')
-rw-r--r--CodingReadme35
1 files changed, 35 insertions, 0 deletions
diff --git a/CodingReadme b/CodingReadme
index 2404a7a5a..8bcbe6125 100644
--- a/CodingReadme
+++ b/CodingReadme
@@ -67,6 +67,41 @@ of "foobar.size()". (GetSize() is defined by kernel/yosys.h)
Use range-based for loops whenever applicable.
+Building in Visual Studio
+=========================
+
+1. Create an empty Visual C++ Win32 Console App project
+ (recommended name: YosysVS)
+
+2. Close VS and launch "Git Bash" in the project directory
+
+3. Prepare sources
+
+ git clone https://github.com/cliffordwolf/yosys.git yosys
+ cd yosys
+
+ curl -O http://www.clifford.at/yosys/nogit/yosys-win32-<version>.zip
+ unzip yosys-win32-<version>.zip
+ unzip yosys-win32-<version>/genfiles.zip
+
+4. Add files to VS project
+
+ notepad vcxproj_files.txt
+ notepad ../YosysVS/YosysVS.vcxproj
+
+ (replace the empty <ItemGroup> in YosysVS.vcxproj
+ with the XML text from vcxproj_files.txt)
+
+5. Open project in VS and go to the project properties:
+
+ C/C++ -> General -> Additional Include Directories
+ Add: ..\yosys
+
+ C/C++ -> Preprocessor -> Preprocessor Definitions
+ Add: _YOSYS_;_CRT_SECURE_NO_WARNINGS
+
+6. Build YosysVS
+
Checklist for adding internal cell types
========================================