public domain tools for FPGAs
Go to file
Wolfgang Spraul c88c46b80d more wires
2012-11-11 07:40:39 +01:00
doc create a subfolder for libs 2012-09-19 21:49:30 +08:00
libs more wires 2012-11-11 07:40:39 +01:00
mini-jtag add CPPFLAGS and LDFALGS, run chrpath on .so files 2012-10-03 15:10:57 +08:00
.gitignore update libs/Makefile for debian packaging 2012-10-01 14:53:04 +08:00
autotest_diff.sh autotest cleanup 2012-08-31 07:05:58 +02:00
autotest.c wire work 2012-11-08 13:14:45 +01:00
bit2fp.c wire work 2012-11-08 13:14:45 +01:00
blinking_led.c wire work 2012-11-08 13:14:45 +01:00
draw_svg_tiles.c wire work 2012-11-08 13:14:45 +01:00
fp2bit.c wire work 2012-11-08 13:14:45 +01:00
fpgastyle.css css 2012-06-23 16:55:17 +02:00
hello_world.c wire work 2012-11-08 13:14:45 +01:00
hstrrep.c minor testing and lut fixes, merge_log.sh helper script 2012-08-29 03:15:31 +02:00
lib.svg tiny svg steps 2012-06-18 04:47:51 +02:00
LINKS more dirwire modeling 2012-11-04 14:19:18 +01:00
lut.svg finished lut equiv. schematic 2012-06-23 16:54:53 +02:00
Makefile carry chain fixes, devices, bram and macc switches 2012-10-18 14:34:53 +02:00
Makefile.common libs/Makefile: more lib version works 2012-10-03 21:48:26 +08:00
merge_log.sh slightly improved switch design, preparing for switch device 2012-09-05 04:52:43 +02:00
merge_seq.c higher-level compiler warnings - thanks to Werner! 2012-08-14 03:04:33 +02:00
new_fp.c wire work 2012-11-08 13:14:45 +01:00
pair2net.c minor cleanup 2012-08-16 12:17:37 +02:00
README more wires 2012-11-11 07:40:39 +01:00
sort_seq.c autotester 2012-08-16 10:57:51 +02:00
UNLICENSE ramb16 cleanup, going public domain, see unlicense.org 2012-06-26 01:45:43 +02:00

Introduction
 fpgatools is a toolchain to program field-programmable gate arrays
 (FPGAs). The only supported chip at this time is the xc6slx9, a
 7 USD 45nm-generation fpga with 5720 6-input LUTs, block ram and
 multiply-accumulate devices.

 *) maximize chip performance
 *) fast development cycles
 *) independent toolchain that only depends on other free software
 *) reconfigure on-chip
 *) include get-started tools such as jtag, debugging, parts data
    and designs for prototyping hardware
 *) design flow that includes asic manufacturing
 *) lightweight C implementation without GUI
 *) supported platform: Linux
 *) license: public domain

FAQ
 todo

Libraries

- libfpga-cores      reusable cores
- libfpga-stdlib     standard design elements on top of libfpga-control
- libfpga-control    programmatic access to libfpga-model
- libfpga-model      memory-only representation of an FPGA
- libfpga-floorplan  reads and writes .fp floorplan files
- libfpga-bit        reads and writes .bit bitstream files

Design Utilities

- hello_world        outputs an AND gate floorplan to stdout
- blinking_led       outputs blinking led design to stdout
- new_fp             creates empty .fp floorplan file
- fp2bit             converts .fp floorplan into .bit bitstream
- bit2fp             converts .bit bitstream into .fp floorplan
- draw_svg_tiles     draws a simple .svg showing tile types

fpgatools Development Utilities

- autotest           test suite
- sort_seq           sorts line-based text file by sequence numbers in strings
- merge_seq          merges a pre-sorted text file into wire sequences
- pair2net           reads the first two words per line and builds nets
- hstrrep            high-speed hashed array based search and replace util

Design Principles

- small independent command line utilities, no GUI
- plain C, no C++
- simple Makefiles
- text-based file formats
- automatic test suite
- public domain software

TODO (as of November, 2012)

short-term (1 month):
* example: blinking_led
* example: counter (including clock, jtag)
* autotest: fix bugs in lut_encoding, logic_cfg, routing_sw, io_sw tests
* autotest: protect stderr of diff executable in autotest log
* 3 Debian packages: libfpga, libfpga-doc, fpgatools

mid-term (6 months):
* support chips other than xc6slx9, maybe an ftg256 or fgg484-packaged
  xc6 or the xc7a100
* more cases in switches (98% done) and inter-tile connections (70% done)
* more cases in logic block configuration
* configuration of bram and macc blocks, bram initialization data
* write standard design elements for libfpga-stdlib library
* several places might benefit from a bison parser:
  - switchbox description into bit parser/generator (bit_frames.c)
  - inter-tile wire connections (model_conns.c)
  - configure devices and route wires

cleanup (whenever convenient):
* use tile flags instead of tile names
* model connections and switches together rather than separately
* describe more wire names/meanings with integers instead of strings
* move all part-specific static data into xc_info()

long-term (>6 months):
* auto-crc calculation in .bit file
* support lm32 or openrisc core, either via libfpga or iverilog backend
* ipv6 or vnc in hardware?
* iverilog fpga backend
* design fpga core that uses high-speed icap/reconfig to process data

ChangeLog

2012-09-24
* First design verified: hello_world is an unclocked AND gate design
  which was verified in a xc6slx9.

2012-08-20
* Beginning of full fidelity circle with model, floorplan, conversion
  between floorplan and binary configuration formats.

2012-06-03
* Project started.