aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/icestorm
Commit message (Collapse)AuthorAgeFilesLines
* scripts/icestorm: check circuit @ 62MHzAustin Seipp2019-01-111-1/+1
| | | | | | | | With arachne-pnr this circuit couldn't hit 60MHz, just barely under it. OTOH, nextpnr hits about ~68 MHz. So let's set it somewhere inbetween to make sure this is true over time! Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: dedupe calls to yosys-configAustin Seipp2019-01-111-2/+4
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: add readmeAustin Seipp2019-01-111-0/+12
| | | | | | Notes about how to build proper simulation vs hardware bitstreams. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: remove unneeded -lgccAustin Seipp2019-01-111-1/+1
| | | | | | | This freestanding firmware doesn't need anything from the supporting toolchain. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: move SHIFT_COUNTER_BITS into MakefileAustin Seipp2019-01-112-4/+11
| | | | | | | This makes it easier to build separate bitstreams for simulation targets vs the real bitstream for hardware, without editing any source code. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: comments onlyAustin Seipp2019-01-111-0/+21
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: add 'timing' targetAustin Seipp2019-01-111-2/+4
| | | | | | | This dumps a simple IceTime report for the bitstream; we fix the device package to CT256, corresponding to the HX8K. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: force -march=rv32iAustin Seipp2019-01-111-1/+1
| | | | | | | | | | | | | | | | The IceStorm example core doesn't include compressed instructions or the MULT extension; it is an rv32i core, not rv32i[m|c]. If the given riscv32 toolchain is not explicitly told to generate rv32i code for the firmware, it may generate invalid instructions which cause a trap during simulation or on the hardware itself (although CATCH_ILLINSN is set to zero in this case, too). Luckily, any rv32i* toolchain (rv32imc for example) can fit the bill here -- there's no use of libgcc or anything (which might introduce illegal instructions generated previously) so just forcing the compiler to generate the right code works nicely. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: switch to nextpnr-ice40Austin Seipp2019-01-111-6/+6
| | | | | | | nextpnr-ice40 gives a better fMAX for this design (by about ~9Mhz for me: ~59MHz -> ~68MHz) and is The Way Of The Future. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: touch up Makefile a bitAustin Seipp2019-01-111-29/+28
| | | | | | | | | | | This touches up the Makefile so that it: - uses $@, $< and $^ in more places for brevity and robustness (typo guards, etc) - tracks dependencies slightly better (e.g. .pcf file changes weren't tracked before) Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts/icestorm: use 'yosys-config' to find data directoryAustin Seipp2018-02-141-2/+2
| | | | | | | | | This fixes the icestorm script to query yosys-config itself for the right data directory. Not only does this fix installs where yosys was not installed into /usr/local, it also ensures Icarus picks up a data directory consistent with the version of yosys that you're using. Signed-off-by: Austin Seipp <aseipp@pobox.com>
* scripts: remove old -m32 argument to riscv-gccAustin Seipp2018-02-141-1/+1
| | | | | | See also 55da6c7cd1f5ad798bfa0f52989434486c03b31b Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Minor fixes in scripts/icestorm/Clifford Wolf2016-07-142-11/+11
|
* RISC-V ISA 2.1 now calls "sbreak" officially "ebreak"Clifford Wolf2016-06-062-2/+2
|
* Using .vvp instead of .exe for iverilog executablesClifford Wolf2016-05-041-22/+22
|
* Merge branch 'master' of github.com:cliffordwolf/picorv32Clifford Wolf2015-10-133-14/+3
|\
| * Minor scripts/icestorm changesClifford Wolf2015-10-083-14/+3
| |
* | Add a missing dependencyLarry Doolittle2015-10-131-2/+2
|/
* Improvements in icestorm test firmwareClifford Wolf2015-07-311-7/+35
|
* icestorm sim improvementsClifford Wolf2015-07-213-6/+38
|
* Improved icestorm exampleClifford Wolf2015-07-193-13/+11
|
* Improved icestorm exampleClifford Wolf2015-07-199-76/+226
|
* Improved IceStorm example scriptClifford Wolf2015-07-043-1/+75
|
* Added simple icestorm script (not a real example yet)Clifford Wolf2015-06-222-0/+7