Commits included in published releases. Unpublished intermediate commits are private. Showing matches from the latest 100 commits ending at this release.
Add frontend CIR-vs-memory formal consistency check. Currently passes BMC, but does not pass induction -- prefetch queue gets put into an unreachable state by the solver.
Luke Wren · Apr 26, 2019, 7:41 AM UTC
23b6623399a0
Improve generic formal verification Makefile
Luke Wren · Apr 26, 2019, 7:13 AM UTC
44e76d0a1a67
Simplify CIR locking: do not commit PC until CIR lock clears. This avoids having to touch dx_mispredict_addr early, which could have unforeseen effects on X.
Luke Wren · Apr 25, 2019, 6:04 AM UTC
d22c930852fd
Improve pc_wdata generation logic in rvfi_monitor
Luke Wren · Apr 25, 2019, 5:52 AM UTC
ee87e0e77819
Correctly recognised reserved bit pattern within c.lw instruction encoding
Luke Wren · Apr 25, 2019, 5:50 AM UTC
adfe97b2c820
Bump riscv-formal version; just an updated GTKW file
Luke Wren · Apr 24, 2019, 5:45 AM UTC
1c1f64e2d05c
Tighten up decoding of reserved/invalid instructions. Also make D stage handle invalid instructions in a safer way; be certain that they cannot have any side effects.
Luke Wren · Apr 24, 2019, 5:41 AM UTC
f002cfe3bc03
RVFI stuff: fix typo causing mem masks to be tied off. Supply 0 for rd_wdata when rd is x0, as riscv-formal seems to expect this. Use rvformal_rand_reg for hrdata, hready in wrapper, to avoid warning about lack of drivers.
Luke Wren · Apr 24, 2019, 5:39 AM UTC
ded34f090506
Bump riscv-formal version: fix .cfg, add .gtkw
Luke Wren · Apr 23, 2019, 5:47 AM UTC
f2de1fb41b46
Hazard5 formal: connect up D PC (oops) and, in monitor, clear M instruction valid when X is stalled but M is not.
Luke Wren · Apr 23, 2019, 5:39 AM UTC
e8f91e735425
Move monitoring/state modelling logic out of RVFI wrapper and into a processor include file; hierarchical references seem broken!
Luke Wren · Apr 23, 2019, 3:45 AM UTC
71c8e9e12202
Expose decode PC for use by riscv-formal (hierarchical references don't seem to work?
Luke Wren · Apr 23, 2019, 3:44 AM UTC
72d346ae97a7
Exclude ALU's own formal spec when running riscv-formal
Luke Wren · Apr 23, 2019, 3:43 AM UTC
e355f1b7b750
RVFI wrapper: Fix some typos, and add registers for clocked RVFI outputs
Luke Wren · Apr 23, 2019, 2:55 AM UTC
bc21d994e3f7
Add instruction, PC and regfile read monitoring to RVFI wrapper
Luke Wren · Apr 22, 2019, 8:58 AM UTC
709f4c5ca91b
Ensure no memory access generated on unaligned load/store
Luke Wren · Apr 22, 2019, 8:58 AM UTC
88080e0bc6f5
Use private fork of riscv-formal so can add own scripts. Start work on RVFI monitor for processor.
Luke Wren · Apr 21, 2019, 4:26 AM UTC
fcf25724c5dd
Add riscv-formal as a submodule
Luke Wren · Mar 25, 2019, 10:22 AM UTC
42d83cac7a27
Ramp up baud rate in second part of UART loopback, simulation time was far too long. Handle baud-mismatch garbage from behav uart rx in the test script.
Luke Wren · Apr 20, 2019, 10:43 PM UTC
7c8f95c88ce9
Update TODO file, it was way out of date
Luke Wren · Apr 19, 2019, 3:03 AM UTC
cb05d8e5a818
Workaround for new behaviour of nextpnr: connection of SB_IO clock enable to 1'b1 is considered different from disconnection.
Luke Wren · Apr 17, 2019, 9:06 PM UTC
d04d02dc381b
Extend bootloader to load 2nd stage from flash. Add basic scripts for building software to run in SRAM0, and appending header for flash. Can load code into SRAM0 and run it :)
Luke Wren · Apr 17, 2019, 2:33 AM UTC
3377d433452e
On iCE40 it's impossible to have a clke'd and a non-clke'd SB_IO on the same tile. Due to a nextpnr bug this is not reported, and it will just clke both of them, which broke the SRAM controller. This commit adds a workaround, described in the PCF.
Luke Wren · Apr 17, 2019, 12:30 AM UTC
c89caaeb783f
Add DFFE IO wrapper used by async SRAM controller
Luke Wren · Apr 16, 2019, 2:51 AM UTC
45cb0dd2923a
Fold all output registers for async SRAM controls into IOB registers. Memory now seems solid at 36 MHz.
Luke Wren · Apr 16, 2019, 2:50 AM UTC
828207ee6941
Use a common FPGA_ICE40 define for primitive instantiations, rather than per-feature. Add missing clock to ddr_out.
Luke Wren · Apr 15, 2019, 2:42 PM UTC
452fecc22e11
Move reset generator from oscillator to system clock. Oops..
Luke Wren · Apr 15, 2019, 2:41 PM UTC
6cb34f5ec667
Add memory test to bootloader. SRAM breakout fails :(
Luke Wren · Apr 14, 2019, 7:54 AM UTC
6ad4e8f782df
Fix LED on hx8k_evn. Change hx8k pcf to reflect DQ2 fix. Fix uartprog to take highest-numbered serial port by default (seems to be decent heuristic)
Luke Wren · Apr 14, 2019, 4:49 AM UTC
32cb52d83660
Add wiring and PCF for SRAM on HX8k board (doesn't synth due to pin conflict with oscillator)
Luke Wren · Apr 14, 2019, 2:16 AM UTC
33f97d6c0bac
Add pullup inputs for D-pad and A button on breakout board
Luke Wren · Apr 13, 2019, 1:26 AM UTC
d716f7e58c61
uartprog: default serial port is the last found in system, not some default string
Luke Wren · Apr 13, 2019, 1:25 AM UTC
881eb39fda33
Update hx8k wrapper and system testbench for new GPIO logic.
Luke Wren · Apr 13, 2019, 12:47 AM UTC
d386b3776999
listfiles: option for paths relative to dir other than PWD. Due to ISIM bug: file paths are relative to PWD when fuse is run, but include paths are relative to project file... Also add include paths to synthesis makefile as we now need them.
Luke Wren · Apr 13, 2019, 12:12 AM UTC
69cfeded6a5b
Rewrite GPIO mapping. Now driven by a brief header file which matches the software one.
Luke Wren · Apr 12, 2019, 10:47 PM UTC
56ec258a580c
Bring pad controls up to top level rather than instantiating pad wrapper in gpio.v. Makes it easier to mirror signals to LEDs :)
Luke Wren · Apr 11, 2019, 11:54 PM UTC
39d34253cb74
Reinstate GPIO test
Luke Wren · Apr 11, 2019, 3:22 PM UTC
4b5e2c7ec465
Add async SRAM controller to system, and hook up SRAM model in tb. Write a simple memory test.
Luke Wren · Apr 11, 2019, 3:21 PM UTC
a67299e2ed99
Fix tests broken by mem.f changes (oops)
Luke Wren · Apr 11, 2019, 5:03 AM UTC
2f960ebdf2af
Add AHB to half-width async SRAM adapter. Uses DDR output for WE timing. No double pumped reads (wait for real hardware; timing will be tight.)
Luke Wren · Apr 11, 2019, 4:51 AM UTC
b437b2b3538f
Fix asynchronous SRAM model (should latch on deassertion of WE), and reorganise .f structure for memories.
Luke Wren · Apr 11, 2019, 4:49 AM UTC
c3e700799707
Async SRAM controller: use DDR output for WE timing instead of combinatorial function of clock
Luke Wren · Apr 9, 2019, 1:56 PM UTC
970e974038e3
Add DDR output wrapper
Luke Wren · Apr 8, 2019, 10:57 PM UTC
1b7bcdb486d5
Clean up new sync sram controller
Luke Wren · Apr 8, 2019, 10:35 PM UTC
ee075011c016
Sync SRAM: add write buffer for 0-wait-state operation. In exec tb, hold processor in reset for a couple cycles at end of test to allow write buffer to retire before reading out memory.
Luke Wren · Apr 7, 2019, 5:03 PM UTC
04307064de98
Processor: don't assert htrans while in reset (oops)
Luke Wren · Apr 7, 2019, 5:01 PM UTC
2ed72c51edd0
Fix documentation build issues. Add timing diagram for buffered SRAM writes. Add colour to SRAM diagrams.
Luke Wren · Apr 7, 2019, 12:30 PM UTC
b29f63cd277c
Describe sync SRAM operation
Luke Wren · Apr 6, 2019, 10:59 PM UTC
721180b6cf37
Make use of 64 kB block-erase in uartprog/bootloader. Much faster for large files.
Luke Wren · Apr 5, 2019, 11:56 PM UTC
19d8ba85f640
Significant speedup to uartprog by doing less-frequent blocking IO when checking ACKs.
Luke Wren · Apr 5, 2019, 11:08 PM UTC
fc507422b046
SRAM breakout: add gerbers + PDF schematic. Fix directory structure.
Luke Wren · Apr 4, 2019, 9:55 PM UTC
6b4414f7d161
Add SRAM breakout board for HX8k-EVN
Luke Wren · Apr 4, 2019, 9:45 PM UTC
f17a81e620ef
Update uartprog for new bootloader; much faster and more reliable, but still nowhere near fast enough. Add activity light to bootloader, and fix write address bug.
Luke Wren · Apr 4, 2019, 1:25 AM UTC
35a82aca938a
First pass at a proper serial bootloader. Fairly efficient buffer-oriented IO, very basic error checking, and it's possible to recover from error state.
Luke Wren · Apr 3, 2019, 9:17 PM UTC
3084e8bc6edf
Add HX8k-EVN board files
Luke Wren · Apr 3, 2019, 5:01 PM UTC
3b7da9bdf121
Add new FPGA wrapper for TinyFPGA BX :)
Luke Wren · Apr 2, 2019, 9:16 PM UTC
db1895396abe
Split documentation into multiple .tex files
Luke Wren · Apr 2, 2019, 1:52 PM UTC
1695682d86c7
Redraw CPU frontend diagram
Luke Wren · Apr 2, 2019, 1:21 PM UTC
5add23c47671
Add documentation section on pixel gearboxes (PPU)
Luke Wren · Apr 1, 2019, 11:57 PM UTC
ee2d0d3a3730
Crank programming shell to 0.5 Mbaud. Add LED mirror wire to upduino top-level.
Luke Wren · Apr 1, 2019, 6:28 PM UTC
4f72b8332acf
Add simple glitch filter to UART RX, and aggressive (long back-to-back) UART loopback test. Added these while debugging the SPI programming shell... turned out to be something completely different
Luke Wren · Apr 1, 2019, 6:26 PM UTC
4c85fdbf64d3
Add some awful hacks to flash programming utility to make it reliable; real issue is the shell. Managed to program the TinyFPGA image (300 kB) and unbrick a TinyFPGA BX, which is promising :)
Luke Wren · Mar 31, 2019, 10:13 PM UTC
501182575740
Mostly-working flash programming tool via riscboy flashing UART shell (will eventually become part of bootloader)
Luke Wren · Mar 31, 2019, 8:31 PM UTC
bc8d630e1ac1
Add simple SPI flash programming shell, using UART and new SPI. Works on W25X10CL :)
Luke Wren · Mar 31, 2019, 2:20 PM UTC
d2a4ab5ec4ad
Fix a bug where UART RX falls through idle (I never tested it...) and add a UART loopback test to make sure it stays fixed. Also make UART RX more robust: half a bit time of slack between stop bit sampling and start bit detection, which maintains sync if the TX clock is slightly too fast.
Luke Wren · Mar 30, 2019, 6:41 PM UTC
4c5bb98c4be3
Merge branch 'master' of github.com:Wren6991/RISCBoy
Luke Wren · Mar 30, 2019, 4:58 PM UTC
3376f9bc20a7
Add optional PLL to Upduino top level to run at 18 MHz (overclock)
Luke Wren · Mar 30, 2019, 4:56 PM UTC
646bb5be22be
Add uart_putint for debugging without linking in printf() and friends
Luke Wren · Mar 30, 2019, 4:09 PM UTC
84937863567f
SPI: fix read_en bit. Add internal loopback. Use this in sw test to check we can loopback data with all CPOL/CPHA, and different baud rates. Add sw test to test list.
Luke Wren · Mar 29, 2019, 11:34 PM UTC
9e481bfd28e1
Add correctly-phased RX side to SPI master, and simplify some CPHA logic.
Luke Wren · Mar 29, 2019, 10:30 PM UTC
bdd77011583d
Regblock utility: check that all properties of a field are recognised. Avoids bugs caused by typos (e.g. reset instead of rst)
Luke Wren · Mar 29, 2019, 9:56 PM UTC
bc6c207eaa5c
Wire SPI into the system, and give it a gentle kicking.
Luke Wren · Mar 29, 2019, 9:55 PM UTC
283f92979aa2
Add mini SPI master. First pass, only contains the TX side for now. CPOL/CPHA/baud divider seem to work.
Luke Wren · Mar 29, 2019, 9:53 PM UTC
fc7886c0b664
sync_fifo: ignore push on full and pop on empty (oops)
Luke Wren · Mar 29, 2019, 5:16 PM UTC
24256e26644b
Add sticky W1C fields to regblock utility. Add sticky overflow/underflow fields to UART.
Luke Wren · Mar 28, 2019, 11:28 PM UTC
6563a1367c44
Add information on PPU backgrounds
Luke Wren · Mar 27, 2019, 9:39 PM UTC
942d9d5ad8f6
Add initial thoughts about CPU plugin interface. Fix up some latex coding style issues.
Luke Wren · Mar 27, 2019, 8:14 PM UTC
7f3af0d7802e
Add a two-stage FPGA reset generator to cope with the iCE40 block RAM bug
Luke Wren · Mar 25, 2019, 10:25 AM UTC
b7105f55e0a9
Small optimisation to load-data muxing
Luke Wren · Mar 24, 2019, 5:07 PM UTC
7fab358e0956
Somewhat factor out LCD bitbang code, and add LCD mandelbrot :)
Luke Wren · Mar 24, 2019, 4:58 PM UTC
2a1251945bfe
Successful LCD test pattern on ST7789 LCD with an upduino. All software bitbanged at the moment.
Luke Wren · Mar 24, 2019, 2:34 PM UTC
eb6c15254635
oops, forgot to commit fixes to SRAM wiring in execution testbench. Also update PCF to constrain PWM pin.
Luke Wren · Mar 23, 2019, 4:25 PM UTC
24579fa95e97
Add double-buffered output register to PWM, and wire an instance of it into the system.
Luke Wren · Mar 23, 2019, 4:21 PM UTC
a9c4b920681b
Fix frontend bug: need to perform saturating subtraction on buffer level in order to ignore instruction consumption when exiting a CIR lock. Underflowing the buffer level makes the frontend think it has valid data again, which causes garbage to be executed. Previously this fix was added to the 'no fetch' buffer level to prevent non-fetching, but it also needed to be added to the general update logic.
Luke Wren · Mar 23, 2019, 4:17 PM UTC
cc98f48837f9
Fix historic bug in ahb_sync_sram: fails to ignore address phases with hready low. Badness ensues when this is a write, due to the subsequent wait state it inserts. For some dumbass reason this memory controller didn't have an hready input, so that also had to be fixed.
Luke Wren · Mar 23, 2019, 1:18 PM UTC
eff669248dd0
Fix busy-delay functions; asm volatile inputs must not be modified, so use a read-write output instead. Fix appending of fixed CCFLAGS to cmdline args in software.mk.
Luke Wren · Mar 23, 2019, 12:36 PM UTC
67aab1cf26d0
Add proper millisecond/microsecond delay functions. Start writing basic LCD init code. Have potentially found a processor bug; need to simulate or perhaps add RV formal.
Luke Wren · Mar 21, 2019, 4:10 AM UTC
4ac26b0dcbb9
Use correct base address for hex file in system testbench
Luke Wren · Mar 19, 2019, 5:07 AM UTC
ea4d9a0aa2c8
Add Upduino hello world program
Luke Wren · Mar 19, 2019, 5:06 AM UTC
5408de8f36b0
Remove extra jump target adder from X; instead, save the jump target from D, or use the ALU (for JALR). Probably only worth it on this FPGA
Luke Wren · Mar 15, 2019, 6:10 AM UTC
d765214e1d64
add a couple of useful constants to hazard5_decode.v
Luke Wren · Mar 15, 2019, 2:41 AM UTC
80d8bccb442c
Simplify ALU muxing: remove linkaddr operand source.
Luke Wren · Mar 15, 2019, 2:32 AM UTC
2ac761b56ffa
Add FPGA wrapper and build scripts for Upduino. Processor can blink LED :)
Luke Wren · Mar 18, 2019, 10:35 PM UTC
78667ae22c57
Expand PPU Poker section
Luke Wren · Mar 18, 2019, 5:21 AM UTC
60f68ba4893c
Documentation: update AHB-Lite intro
Luke Wren · Mar 18, 2019, 1:58 AM UTC
d5bb35d84753
Documentation: Update PPU block diagram. Add more thoughts on PPU behaviour. Add list of figures.
Luke Wren · Mar 17, 2019, 1:03 AM UTC
92281803d360
Elaborate on some ideas for graphics hardware
Luke Wren · Mar 16, 2019, 6:32 AM UTC
90b979215921
Add very simple compression utility for potential compressed bootloader
Luke Wren · Mar 16, 2019, 12:39 AM UTC
721609188c48
Board rev B: add QFN 20 weird corner footprint for CP2102N and SOD-923 for TVS diodes. Add TVS and some pullups etc to the schematic.
Luke Wren · Feb 26, 2019, 5:38 PM UTC
2c3cf6ebf154
Create symbol for QFN20 version of CP2102 USB-serial bridge. Add this to schematic.