Commit graph

396 commits

Author SHA1 Message Date
Michael Schaffner
d30369da8a fpu: Add distributed pipe regs to ease FPGA timing 2019-06-04 10:36:17 +02:00
Michael Schaffner
63021b9d4f Adds cacheable region rules to the configuration script, modify instruction traces such that it can be used with VCS 2019-06-04 10:36:17 +02:00
Michael Schaffner
6eeb0eb1a3 testharness: Remove spurious warnings in Verilator
Modify warnings in testharness such that they only trigger on active
clock edge (resolves an issue with verilator)
2019-06-04 10:36:17 +02:00
Michael Schaffner
42412b9616 Bump common cells to v1.12 2019-06-04 10:36:17 +02:00
Florian Zaruba
5bf0d9256b rv_plic: Add lowrisc PLIC
Use a PLIC which has been developed as part of the lowrisc project. It
has been integrated into the Ariane SoC as a submodule pointing to a
fork which has some (temporary) custom patches on top.
2019-06-04 10:36:17 +02:00
Florian Zaruba
ad223cfd9f Clean-up naming to distinguish OP from GP Ariane (#193)
* Clean-up naming to distinguish  OP from GP Ariane

* Rename wb to wt in hidden CI files

* Fix verilator install script
2019-03-18 11:51:58 +01:00
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
843300302f Add Exclusive Adapter (#187)
* Add atomic adapter as submodule

* Change UART frequency

* Add atomic memory adapter

* Bump AXI exclusive submodule version

* Re-name ariane_next to ariane-dev

* Switch to official `atop` branch on `axi_node`
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
Jonathan Richard Robert Kimmitt
4a62b8c2ba Update Makefile with path to ethernet submodule Verilog files 2019-01-29 08:51:23 +00:00
Florian Zaruba
f4ec843b35
Fix library path also for Modelsim 2019-01-15 11:04:20 +01:00
Florian Zaruba
e82e678e1c
Change default include path 2018-11-29 19:26:38 +01:00
Florian Zaruba
b274dd6b8e
Merge remote-tracking branch 'origin/master' into ariane_next 2018-11-29 15:05:39 +01:00
Michael Schaffner
e99efab07e
Fix separator in Makefile 2018-11-28 23:04:06 +01:00
Florian Zaruba
89a0f6b5f6
Factor out multiplication tests 2018-11-28 22:19:04 +01:00
Florian Zaruba
7c09143664
FPGA build flow clean-up 2018-11-28 13:44:59 +01:00
Florian Zaruba
c1c67b276b
Streamline FPGA flow 2018-11-27 16:40:49 +01:00
Florian Zaruba
be0b4cd440
Use stream_arbiter and fix write ordering 2018-11-25 23:05:34 +01:00
Florian Zaruba
6381b3d3ee
Add ILA and GPIO peripheral 2018-11-25 21:22:51 +01:00
Florian Zaruba
98d9abd494
🎨 Set sane default library path for verilator 2018-11-25 16:45:22 +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
Florian Zaruba
fe67f5d60c
🐛 Fix questa sim flow 2018-11-21 10:44:15 +01:00
Florian Zaruba
bb821300f1
Put batch flow in place (incl small flow fixes) 2018-11-19 19:24:31 +01:00
Florian Zaruba
87046e42f0
Remove duplicate source file entries 2018-11-18 16:34:13 +01:00
Florian Zaruba
b4c5873021
Exclude no cache subsystem from src 2018-11-18 16:18:43 +01:00
Florian Zaruba
9733876bfe
FPGA folder clean-up 2018-11-18 15:32:41 +01:00
Michael Schaffner
a2bd284dbe
Remove additional JAVA info printouts in torture target. 2018-11-18 11:33:44 +01:00
Florian Zaruba
3c40965e8a
Merge remote-tracking branch 'origin/ariane_next' into fpga_dev 2018-11-17 22:38:54 +01:00
Florian Zaruba
1d173b3742
🐛 Fix non-conditional SC 2018-11-16 16:12:44 +01:00
Michael Schaffner
3dd9ac57a9
Exchange axi interfaces with structs in CLINT and DM interfaces. 2018-11-13 16:20:51 +01:00
Florian Zaruba
ebce1bc07f
Add skeleton for NBDache TB (copy from serpent) 2018-11-06 12:21:23 +01:00
Florian Zaruba
b75839a5b1
Add test randomizer and align size of Spike memory 2018-11-05 15:38:20 +01:00
Florian Zaruba
64eb9d8625
Improve Spike alignment 2018-11-05 01:24:10 +01:00
Florian Zaruba
9db50883da
Improve Spike - Ariane alignment
- Don't increment instret on exception
- Align cycle counter with instret counter (-> IPC 1 as in Spike)
- Add mock uart functionality
- Make the preloading elf a plus-arg
2018-11-04 16:20:19 +01:00
Florian Zaruba
c907270502
First instructions passing on Spike 2018-11-03 22:44:45 +01:00
Michael Schaffner
6315fb605c
Minor modifications to ci scripts. 2018-11-02 18:02:07 +01:00
Florian Zaruba
a8bcb23d51
Mature peripherals 2018-10-29 11:42:51 +01:00
Michael Schaffner
6539da7193
Merge branch 'ariane_next' into serpent 2018-10-19 11:29:00 +02:00
Michael Schaffner
423f9a5e4a
Improve serial divider performance by aligning operands, add serdiv testbench to CI 2018-10-19 10:00:33 +02:00
Florian Zaruba
569ca80d1c
Prepare for 64 bit fetch, reduce fetch fifo size
- Remove is_lower_64 in branch prediction with
  more generic information which extends to 64 bit
  fetches
- Reduce the size of the fetch fifo by eliminating
  redundant exceptions fields (only instruction)
  page faults can occur.
- Introduce new struct which governs communication
  between frontend and decode
- Add various configurations to ariane_pkg
2018-10-18 20:56:27 +02:00
Florian Zaruba
7da347e17b
Add more performance counters 2018-10-18 14:34:23 +02:00
Florian Zaruba
99993497b1
Merge remote-tracking branch 'origin/ariane_next' into issue-118 2018-10-17 20:59:58 +02:00
Florian Zaruba
be866578b3
Fix issue #119 2018-10-17 20:58:56 +02:00
msfschaffner
0a43e0c5ab Restore makefile targets with custom elf-bin (#129) 2018-10-17 20:26:21 +02:00
Michael Schaffner
e5719ce34e
WIP Update serpent cache subsystem AXI plugs 2018-10-17 18:53:04 +02:00
Michael Schaffner
0bd9c4fb2b
Merge branch 'ariane_next' into serpent 2018-10-17 18:52:21 +02:00
Michael Schaffner
707c611465
Restore makefile targets with custom elf-bin 2018-10-17 18:08:26 +02:00