aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-07-08Prevent rebuilding timing filesMiodrag Milanovic
2020-07-02Merge pull request #263 from YosysHQ/fix_vlog_up5kDavid Shah
Fix icebox_vlog for up5k
2020-06-29Fix icebox_vlog for up5kDavid Shah
Since ce1d811, SHIFTREG_DIV_MODE is now 2 bits for the up5k Signed-off-by: David Shah <dave@ds0.me>
2020-06-26Merge pull request #262 from whitequark/icebram-fixclairexen
Fix icebram
2020-06-26icebram: add WASI platform support.whitequark
2020-06-26icebram: refactor seeding logic.whitequark
2020-06-26Revert "Make icebram deterministic"whitequark
This reverts commit 2679c91b8a158aa4aca49dd726955e8c63cf7bef.
2020-06-25Merge pull request #257 from smunaut/ice40_shiftreg_div_modeClaire Wolf
icebox: Add support for the bit 1 of SHIFTREG_DIV_MODE
2020-06-25Merge pull request #261 from whitequark/icepack-usageClaire Wolf
icepack: show program name in usage
2020-06-25Merge pull request #260 from whitequark/patch-1Claire Wolf
Make icebram deterministic
2020-06-25Merge pull request #254 from per-gron/fix-oobClaire Wolf
Fix array out of bounds access bug
2020-06-25Merge pull request #253 from SolraBizna/dummy-header-targetsClaire Wolf
Use -MP to eliminate one way that -MD can fatally confuse make
2020-06-25Merge pull request #256 from emaste/masterClaire Wolf
icetime: avoid string + int Clang warning
2020-06-24icepack: show program name in usage.whitequark
2020-06-23Make icebram deterministicwhitequark
2020-06-03icebox: Add support for the bit 1 of SHIFTREG_DIV_MODE on UP5kSylvain Munaut
This allows selection of the div-by-5 mode of the PLL. This bit can't be fuzzed because it's not supported by the lattice tools at all ... This only works for sure on the UP5k. I tested HX8k and it didn't support it, so I'm only adding this on the known working FPGA. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2020-05-28icetime: avoid string + int Clang warningEd Maste
Clang warns that "adding 'int' to a string does not append to the string". Although a false positive it's trivially avoided by using the array index equivalent &PREFIX[1].
2020-05-25Fix array out of bounds access bugPer Grön
This is triggered for example when icetime is invoked with an empty design.
2020-05-09Add -MP to CFLAGS and CXXFLAGS, making it harder for make to get confused ↵Solra Bizna
out of even trying to build
2020-04-22Fix compiler warning in icepllClaire Wolf
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-22Merge branch 'opt_skip_powerdown' of https://github.com/smunaut/icestormClaire Wolf
2020-04-22Cleanup FpgaConfig::write_cram_pbm tile_type initializationClaire Wolf
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-22Merge pull request #242 from The6P4C/masterClaire Wolf
icepack: Fix Windows-only stack overflow in CRAM pbm generation (fixe…
2020-04-22Merge pull request #252 from mmicko/gcc10Claire Wolf
Explicit include to compile with GCC 10
2020-04-20Update index.htmlClaire Wolf
Signed-off-by: Claire Wolf <claire@symbioticeda.com>
2020-04-17Explicit include to compile with GCC 10Miodrag Milanovic
2020-04-14Merge pull request #251 from mmicko/fix-vlogClaire Wolf
Make sure that scripts find files on final install
2020-04-14Make sure that scripts find files on final installMiodrag Milanovic
2020-04-10Merge pull request #249 from eine/fix-destdirClaire Wolf
icebox: fix missing DESTDIR for icebox_chipdb
2020-04-10icebox: fix missing DESTDIR for icebox_chipdbeine
2020-04-10Merge pull request #248 from mmicko/program_prefixClaire Wolf
Support custom PROGRAM_PREFIX
2020-04-10Support custom PROGRAM_PREFIXMiodrag Milanovic
2020-03-30Merge pull request #245 from SmallRoomLabs/iteratePLLClaire Wolf
icepll: Add iteration over list of frequencies for best solution
2020-03-30Merge pull request #247 from esden/erase_block_sizeClaire Wolf
Added an option to choose the erase block size.
2020-02-02Added an option to choose the erase block size.Piotr Esden-Tempski
This allows us to flash binaries at offsets that are smaller multiples.
2019-12-31Add iteration over list of frequencies for best solutionMats Engstrom
This patch adds support for icepll to try multiple input frequencies to find the best crystal for the desired output frequency. The values tested comes either from a specified file using-B, or from a default set of frequencies from Mousers "normally stocked" crystal oscillators.
2019-12-28iceprog: Add option to keep flash powered upSylvain Munaut
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-12-08icepack: Fix Windows-only stack overflow in CRAM pbm generation (fixes #241)The6P4C
On Windows, attempting to generate a netpbm image of the CRAM with `icepack -b` causes the tool to crash after writing only the netpbm header due to a stack overflow. The bug did not appear on Linux. This was traced to a large stack-allocated variable length array (`tile_type`) inside `FpgaConfig::write_cram_pbm`. For an 8k ice40 with 4 banks, `cram_width = 872` and `cram_height = 272` the `tile_type` array ends up at `4 * 872 * 272 * sizeof(uint32_t) =` 3794944 bytes, or about 3.6 MiB. The fix replaces the large stack VLA with an array of 4 (bank) 2D C++ vectors, moving the large amount of data to the heap. Even though the fix is not in a Windows-specific code path (and hence applies to all platforms), I think it's wise to eliminate such a large stack allocation entirely. The fix has been tested working on both Windows and an Ubuntu WSL install.
2019-09-13Fix typoClifford Wolf
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-08-31Merge pull request #235 from whitequark/masterClifford Wolf
Make iceprog optional
2019-08-31Make iceprog optional.whitequark
Avoids dependency on libftdi.
2019-08-15Merge pull request #230 from smunaut/fix_flash_resetClifford Wolf
iceprog: Better reset of flash
2019-08-15Merge pull request #229 from tpambor/win-pipingClifford Wolf
Fix piping on windows
2019-08-08Only dump memory initialization in icebox_vlog if present in ASC file, fixes ↵Clifford Wolf
#228 Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-08-08Only write bram data to ASCII output if bram data is present, fixes #228Clifford Wolf
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2019-08-05iceprog: Better reset of flashSylvain Munaut
If the flash was in a 'weird' mode (like CRM, QPI, ...), sending a continuous stream of 0xff should take it out of it. It looks like the previous code was trying to do that, but was only transferring 8 bits and then 2 bits which is way too short. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-08-05Fix piping on windowsTim Pambor
On windows stdin and stdout have to be set to binary as otherwise windows treats it as text and converts occurences of CRLF to LF
2019-07-03Merge pull request #224 from daveshah1/nextpnr0299Clifford Wolf
up5k: Fix TOPADDSUB_CARRYSELECT_0 override where it swaps with osc tr…
2019-07-03up5k: Fix TOPADDSUB_CARRYSELECT_0 override where it swaps with osc trimmingDavid Shah
Signed-off-by: David Shah <dave@ds0.me>
2019-06-20Merge pull request #223 from corecode/u4kClifford Wolf
add RGB_DRV/LED_DRV_CUR for u4k