From b2f0ef5ac43daa2b771dc4a0f06a1ac3d03686de Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Fri, 26 Apr 2013 17:21:01 -0400 Subject: update README, comments, .xise project file --- Makefile | 4 ++++ README | 50 +++++++++++++++++++++++++++++++++++++++++++++----- project.xise | 14 +++++++------- 3 files changed, 56 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index e589f04..4e33056 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# Edit project-specific variables in this file. + project = project top_module = main vendor = xilinx @@ -18,6 +20,8 @@ vfiles = hdl/project.v tbfiles = tb/tb.v # list of .xco files, eg "cores/bram.xco". do not include DCM files. +#xilinx_cores = cores/bram.xco xilinx_cores = +# Bulk of the actual Makefile is in a different file. include ./contrib/xilinx.mk diff --git a/README b/README index f7c9069..37419f4 100644 --- a/README +++ b/README @@ -1,6 +1,38 @@ + A very basic project template for Verilog simulation and synthesis using Isim and Xilinx tools. +Contents: + + hdl/ + Verilog Code + + tb/ + "testbench" simulation code + + docs/ + documentation + + contrib/ + Project-independent build scripts are set here + + backup/ + A handful of old "known-good" bitfiles can get archived here. + + sngdaq.ucf + Wired Leaf pinout definition file + + Makefile + Project-specific build variables are set here + +== HOWTO Build a Bitfile ===================================================== + +The Xilinx ISE development must be installed and licensed on the local machine. +A set of command-line build scripts are usually used to build the project +instead of the ISE IDE, but the later could be configured and used as well. + +Python and GNU make must be on the $PATH. + Build a bitstream (to upload to an FPGA, preconfigured as Spartan 6 chip in Makefile) via: @@ -10,14 +42,12 @@ The toplevel ucf (constraints mapping netlist objects from the verilog compilation to hardware resources, and place and routing and timing constraints) is: - ./project.ucf + ./sngdaq.ucf The toplevel verilog module, which does nothing (just sets some pins to zero) lives in: - ./hdl/project.v - -Add other verilog synthesis (not testbench) files to ./hdl/*.v + ./hdl/sngdaq.v To edit the project with the ISE GUI, try: @@ -31,7 +61,7 @@ Simulate with isim via: make simulate -View the results using the isim GUI with: +View the results using isim with: make isim @@ -42,3 +72,13 @@ signals from your design that are saves in the wcfg. ./testbench/tb.v is the toplevel testbench file for simulation. Please improve and push! + +== HOWTO Coregen ============================================================= + +Run `make coregen` and use the GUI to generate a core. + +Depending on the output, copy .v files to hdl/ and/or .xco files to cores/. +update the Makefile. + +For any .xco files, strip the "Project Options" secion and the final CRC line. + diff --git a/project.xise b/project.xise index 74062fb..16da964 100644 --- a/project.xise +++ b/project.xise @@ -140,9 +140,9 @@ - + - + @@ -205,7 +205,7 @@ - + @@ -219,10 +219,10 @@ - - - - + + + + -- cgit v1.2.3