Commit graph

32 commits

Author SHA1 Message Date
Florian Zaruba
a5f3184a65 Improve Tandem Simulation, switch-able caches and fix a cache-bug (#192)
* Add spike isa sim

* Fix AMO problem in verilator

* 🎨 Tidy up FPU wrapper

* Bump axi_exclusive submodule

* Refactor serpent AXI adapter, bump dbg and atomics submodules, add separate bootrom for linux on OpenPiton (#190)

* Refactor serpent AXI adapter

* Disable FPU in OpenPiton by default

* Bump dbg and atomics submodules

* Fix cache testbenches (interface change)

* FPGA bootrom changes for OpenPiton SDHC

* Introduce two bootroms, one for baremetal apps (pitonstream), and one for linux boot from SD

* Testing barrier-based synchronisation instead of CLINT-based

* This bootrom works for 2 core on g2 and if you change MAX_HARTS to 4, then 4 cores on vc707

* Add MAX_HARTS switch to makefile

* Fix gitlab CI

* Revert standard FPGA bootrom

* Update Flist

* Make UART_FREQ a parameter

* Fix typo in tb.list and an error in define switch in ariane_pkg

* Copy over SD-driver in bootloader from @leon575777642

* Fix compilation issues of bootrom

* Change signal name in serpent periph portlist

* Correct generate statement in serpent dcache memory

* Add Piton SD Controller, FPGA fixes

* Fix race condition in dcache misshandler

* Add tandem spike to Make flow

* Remove OpenPiton SD Card controller again
2019-03-18 11:51:58 +01:00
msfschaffner
07df142624 Maturity fixes and AXI extensions for write-through cache system (#188)
* : Fix PITON_ARIANE define issues
* Fix write-back / cache read collision issue in serpent dcache.
* Add separate bootrom / device tree for openpiton (hardcoded for 1x1 tile config at the moment).
* Bootrom generation update (better compatibility with older python versions), new bootrom for OpenPiton+Ariane.
* Fix assertion in icache.
* Correct JTAG timing constraints.
* Fix parameter type in fpga toplevel (fix #168).
* Remove conflicting bootrom from fpga file list.
* This flushs the branch predictors when entering exception handlers in order to avoid speculative fetches from virtual addresses (to be improved with PMAs).
* Fix byte offset of IPIs in CLINT
* Disable DCache flushes on fence for write-through cache (not needed in that case)
* Fix blocking assignments in ff process.
* Fix register access issue in debug mode, only affects A0 (fix #179).
* Fix multiple driver issue in PLIC
* Do not assume replicated data in serpent dcache when reading from an NC region.
* Another byte offset fix in IPIs (CLINT)
* Add AXI64 compliance switch to dcache_mem
* Fix genesys 2 constraints
* Map serpent atomic requests onto AXI atomic/exclusive transactions.
* Cleanup of AXI memory plumbing, add separate AXI adapter module.
* Remove unneeded interface signals, increase wbuffer #pending tx
* Fix verilator compilation issues in AXI adapter.
* Delete unnecessary constraint
* Delete duplicate module instance
* Update gitlab CI script
* Small fixes to make riscv atomics work with serpent_axi_adapter.
* Update travis and gitlab-ci scripts
* Register b responses for better timing.
* Remove fpu div submodule, update Makefile paths and src lists
* Constant bits in haltsum reduction must be 1 (AND reduction).
* Switch to DTM from riscv-dbg submodule
* Further cleanup fixes in AXI/serpent atomics
* Bump riscv-dbg version
2019-03-18 11:51:58 +01:00
Florian Zaruba
b1bdc0c02c Add System Verilog FPU (#163)
* Change reset strategy in ariane_verilog_wrap.sv, remove unneeded sigs in serpent_peripherals.

* saving...

* ⬆️ Updates for new FPU

* Add sv fpu to FPGA flow

* Use multi-threading capabilities of verilator

- Deactivate non-standard floating point arguments
- Make multi-threading conditional on the availability of verilator 4

* Remove DPI threadsafety

* Reduce FPGA clock frequency

- Remove couple of -v- tests to reduce test-time

* Fix documentation and fpga flow

- Fix cycle time to accommodate FPU
- Fix FPGA constraints

* Change UART frequency
2019-03-18 11:51:58 +01:00
Michael Schaffner
7951802a01
This patch makes the dm relocatable to an arbitrary base address (last 12bit need to be zero however). 2019-01-24 12:44:21 +01:00
Michael Schaffner
67c68e5e8c
Merge remote-tracking branch 'upstream/ariane_next' into serpent 2018-11-23 19:07:43 +01:00
Florian Zaruba
785577d37a
🐛 Fix reset strategy in TB 2018-11-23 19:04:37 +01:00
Michael Schaffner
0850d2c713
Merge remote-tracking branch 'upstream/ariane_next' into serpent 2018-11-23 18:38:08 +01:00
Florian Zaruba
4558960b88
Small pre-release clean-up 2018-11-23 11:37:14 +01:00
Michael Schaffner
179054a0ec
Merge remote-tracking branch 'upstream/ariane_next' into serpent 2018-11-21 20:15:32 +01:00
Michael Schaffner
ac866bb053
Add extended encoding.h reflecting the additional dscratch1 CSR in the core. 2018-11-19 14:45:23 +01:00
Florian Zaruba
84f695ff34
Add ethernet_lite phy 2018-11-18 13:27:55 +01:00
Florian Zaruba
0ce36534e8
Add support for VCU118 2018-11-12 16:56:06 +01:00
Florian Zaruba
66b0deb06a
Update bootrom 2018-11-07 17:00:46 +01:00
Florian Zaruba
64eb9d8625
Improve Spike alignment 2018-11-05 01:24:10 +01:00
Florian Zaruba
1b1b4a4d23
Fix SEIP and device tree uart speed 2018-10-31 15:26:51 +01:00
Florian Zaruba
2bda00a1a9
Adapt DTS 2018-10-30 16:19:35 +01:00
Florian Zaruba
a8bcb23d51
Mature peripherals 2018-10-29 11:42:51 +01:00
Florian Zaruba
089c796d76
Small RTL fixes 2018-10-16 13:57:46 +02:00
Michael Schaffner
6eb56f9893
Initialize instruction traced shadow regfile to zero at start of simulation
Fix progbuf offsets and tie unsupported counters to zero to avoid propagation of X

Fix printouts of assertions

Modify bootrom to prevent assignment of X to output
2018-10-15 18:36:47 +02:00
Florian Zaruba
0c8eb5a52e
Fix PLIC address map and DTS 2018-10-10 17:23:03 +02:00
Florian Zaruba
eab01511a3
Linux booting to first context switch 2018-09-29 13:46:03 +02:00
Florian Zaruba
257d017abb
FPGA mapping working on Genesys 2 2018-09-27 12:02:23 +02:00
Florian Zaruba
321abec12a
Merge remote-tracking branch 'origin/ariane_next' into fpga_dev 2018-09-24 18:09:40 +02:00
Florian Zaruba
b686a406a8
Integrate PLIC 2018-09-24 18:03:25 +02:00
Florian Zaruba
b58b63d61e
🐛 Fix re-naming when issued operand is flushed 2018-09-24 10:51:22 +02:00
Florian Zaruba
0ae3fb5ebb
Clean-up and fpga preparataion
- fix CDC
- Bump repo versions
- Fix interface issue with bypassed read/writes
2018-09-14 10:50:25 +02:00
Florian Zaruba
929ef3bb54 Update device tree and fix possible LSU deadlock 2018-08-02 02:02:47 +02:00
Florian Zaruba
72d62f93e6
Include basic device tree for standalone simulation 2018-08-01 00:34:23 -07:00
Florian Zaruba
04902ce01e
🚧 Remove dm_ctrl and move logic to dm_memory 2018-07-12 17:36:14 -07:00
Florian Zaruba
82c06d0292
Add debug ROM 2018-07-11 14:56:25 -07:00
Florian Zaruba
f501291661
Add first-stage bootloader 2018-07-10 14:25:35 -07:00
Florian Zaruba
8700b04af9
Add bootrom sw from rocket-core 2018-07-10 12:00:41 -07:00