Commit Graph

448 Commits

Author SHA1 Message Date
Rick Altherr 820c0a5d78 Use yapf instead of autopep8 for Python formatting
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-09 14:50:05 -08:00
Rick Altherr 67c7914a2c Revert "Autopep8 on all existing sources"
This reverts commit 925885c2cc.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-09 14:49:57 -08:00
Rick Altherr 17985d1934
Merge pull request #41 from kc8apf/code_format
Specify and enforce code style for C++ and Python
2018-01-09 11:40:57 -08:00
Rick Altherr fdea2b256d travis: Check for format errors
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 18:20:57 -08:00
Rick Altherr d14fc142df Makefile: target to format source code
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:23:42 -08:00
Rick Altherr 925885c2cc Autopep8 on all existing sources
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:23:42 -08:00
Rick Altherr d868317f9e Document Python dependencies
Uses a pip-compatible requirements file.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:14:27 -08:00
Rick Altherr 50d2521b33 Apply clang-format to all C++ files
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:14:27 -08:00
Rick Altherr c1676cb0f1 clang-format configuration
Based on Chromium style with the following changes:
- Tabs used for indentation
- Indentation is 8 characters

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:14:27 -08:00
Tim Ansell 68ac17a78a
Merge pull request #40 from SymbiFlow/tileconn
Add missing blacklist rules to tileconn fuzzer
2018-01-08 00:20:05 +00:00
Clifford Wolf d0c139ae35 Add missing blacklist rules to tileconn fuzzer
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-06 16:32:55 +01:00
Clifford Wolf ed8b8a79ef
Merge pull request #34 from SymbiFlow/tileconnloops
Add tileconnloops.py script
2018-01-06 11:51:59 +01:00
Clifford Wolf 365cebfe9d
Merge branch 'master' into tileconnloops 2018-01-06 11:47:59 +01:00
Rick Altherr 5f02bf54e8
Merge pull request #39 from kc8apf/travis_tool_builds
Travis config that builds C++ tools
2018-01-05 17:26:19 -08:00
Rick Altherr 57bb12b1df
Merge branch 'master' into travis_tool_builds 2018-01-05 17:22:55 -08:00
Rick Altherr 80801d2bfc Travis config that builds C++ tools
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-05 17:14:19 -08:00
Tim Ansell da7758042e
Merge pull request #38 from mcmasterg/bram_makefile
bram minitest: fix broken makefile
2018-01-06 00:17:52 +00:00
John McMaster 9fed1b05d1
Merge branch 'master' into bram_makefile 2018-01-05 16:06:57 -08:00
John McMaster 35d48380cb bram minitest: fix broken makefile
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-01-05 16:06:28 -08:00
John McMaster c91bd8d6b8
Merge pull request #36 from mcmasterg/roi_harness_arty
roi_harness improvements
2018-01-05 15:35:39 -08:00
John McMaster d1ac9d415f
Merge branch 'master' into roi_harness_arty 2018-01-05 15:35:30 -08:00
Rick Altherr 2f062d1da3
Merge pull request #37 from kc8apf/7series_combined_tests
lib: combine 7series tests into a single target
2018-01-05 15:21:52 -08:00
Rick Altherr 1232caf648 lib: combine 7series tests into a single target
Reduces repitition in CMakeLists.txt.  Individiual tests can be selected
via gtest flags.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-05 14:01:44 -08:00
John McMaster 83cb39d351 roi_harness: support Arty A7 switch, button, LED
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-01-05 13:38:54 -08:00
John McMaster b662f72bc3 roi_harness: parameter to spread out nets
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-01-05 13:38:54 -08:00
John McMaster df125e1b99 roi_harness: add CLK route to output metadata
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-01-05 13:38:54 -08:00
John McMaster dd8c326dcb roi_harness: write IOB pin names
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-01-05 13:38:54 -08:00
Clifford Wolf a93800c4d1
Merge pull request #35 from SymbiFlow/makerun
Fixes in fuzzers top-level Makefile, Update README
2018-01-05 22:35:35 +01:00
Clifford Wolf 89854a55e6
Merge branch 'master' into tileconnloops 2018-01-05 22:32:40 +01:00
Clifford Wolf a80b80c63d Fixes in fuzzers top-level Makefile, Update README
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-05 22:16:12 +01:00
Rick Altherr 00817c5319
Merge pull request #32 from kc8apf/test_bitreader_across_formats
Ensure parsing of normal, debug, and per-frame CRC bitstreams are equivalent
2018-01-05 09:40:26 -08:00
Rick Altherr 31203aaaa8
Merge branch 'master' into test_bitreader_across_formats 2018-01-05 09:40:19 -08:00
John McMaster f302671920
Merge pull request #33 from mcmasterg/roi_harness
roi_harness: I/O partial reconfiguration test harness
2018-01-05 09:38:04 -08:00
John McMaster 0d31795ef2
Merge branch 'master' into roi_harness 2018-01-05 09:37:54 -08:00
Clifford Wolf 5e66675c12 Add tileconnloops.py script
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-05 14:04:32 +01:00
Tim Ansell 7752bd6034
Merge pull request #30 from SymbiFlow/makerun
Add fuzzers "make run"
2018-01-05 10:33:03 +00:00
Clifford Wolf c6e97999b4
Merge branch 'master' into makerun 2018-01-05 11:25:40 +01:00
Clifford Wolf 409f4410c3
Merge pull request #31 from SymbiFlow/tileconn
Add tileconnwire.py utils script
2018-01-05 11:25:23 +01:00
John McMaster e148d2ac14 roi_harness: I/O partial reconfiguration test harness
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-01-04 18:48:01 -08:00
Rick Altherr 5a664c04ec lib: xc7series: shorten ConfigurationFrameAddress to FrameAddress
Frame addresses are only used in the context of configuration frames.
Remove the prefix to reduce typing that does not improve clarity.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-04 15:33:15 -08:00
Rick Altherr 6222be77d3 lib: xc7series: Account for padding between rows in bitstreams
There seem to be 2 frames of padding between rows in a bitstream.  For
single-frame writes, these are parsed as type 0 packets and ignored.
Normal bitstreams use a single FDRI write that apparently includes this
padding and needs to be ignored in the auto-increment handling.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-04 15:17:40 -08:00
Rick Altherr 6ba411294e lib: xc7series: verify bitstream variants parse to same configurations
Normal, debug, and per-frame CRC bitstreams differ in the commands used
to write the frame data but should generate equivalent configurations.
Note that this currently fails as something is wrong with normal
bitstream parsing.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-04 15:11:00 -08:00
Rick Altherr 0d2c33bf0f lib: xc7series: ostream operator for ConfigurationFrameAddress
Writes a decoded version of the address to the stream.  Handy for logging.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-04 15:00:08 -08:00
Rick Altherr a4858be23a lib: accessor to get contents of a memory-mapped file as bytes
MemoryMappedFile's data() method returns a void* as it has no idea what
type the contents are.  Viewing it as bytes is a very common operation
so add a convience method that wraps the pointer in a Span<uint8_t>.

Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-04 11:17:59 -08:00
Clifford Wolf 0a9d0aafab Add HCLK wire pair filter to tileconn fuzzer
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-04 18:07:01 +01:00
Clifford Wolf 36b16c8e0b Add tileconnwire.py utils script
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-04 17:30:36 +01:00
Clifford Wolf a891d1548e Add __pycache__ to 011-ffconfig "make clean"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-04 16:58:54 +01:00
Clifford Wolf 77933f7212 Add fuzzers top-level "make clean"
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-04 16:31:31 +01:00
Clifford Wolf f00f9c27b4 Add top-level fuzzers Makefile
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-04 16:07:50 +01:00
Clifford Wolf 6722081899 Update "make run" target in fuzzers that had one for a while
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2018-01-04 13:55:50 +01:00