Commit graph

323 commits

Author SHA1 Message Date
Florian Zaruba
5eed9ef91d Move AXI Id widths to SoC package 2019-03-18 11:51:58 +01: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
0ffef2ae1a 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
2019-03-18 11:51:58 +01:00
Florian Zaruba
a4e49fc872 Fix AMO problem in verilator 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
jrrk
3ca3a28aa5 Adjust Memory size to Genesys2 maximum (1GByte) (#177) 2019-02-15 19:45:26 +01:00
Florian Zaruba
0ded59a380
Fix an alignment issue when preloading the memories 2019-02-07 14:44:25 +01:00
msfschaffner
78bf1dd5e9
Merge branch 'master' into rgmii_eth 2019-01-28 16:32:51 +01:00
Dr Jonathan Kimmitt
29ffdf1b55 Correct style issues and changes to pass Travis 2019-01-25 09:34:39 +00: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
Jonathan Richard Robert Kimmitt
1311a8da0b Remove unused modules from Ethernet hierarchy 2019-01-23 14:50:15 +00:00
Florian Zaruba
bdc11db4d0
Deactivate randomization to save CI build time 2018-11-28 14:20:43 +01:00
Florian Zaruba
c1c67b276b
Streamline FPGA flow 2018-11-27 16:40:49 +01:00
Florian Zaruba
aa72e2e2b1
Merge pull request #144 from msfschaffner/ariane_next
License headers updated, some indentation cleanup, consolidate common…
2018-11-26 23:17:00 +01:00
Moritz Schneider
afc9bd51f7 🐛 Bootrom was too small to fit new ZSBL
* Better error reporting in the ZSBL
* Increase the ROM size
2018-11-26 16:04:29 +01:00
Michael Schaffner
8312516bec
License headers updated, some indentation cleanup, consolidate common tb.svh file. 2018-11-26 13:20:19 +01:00
Michael Schaffner
693fe335f3
Merge remote-tracking branch 'iis-git/ariane_next' into ariane_next 2018-11-26 12:09:59 +01:00
Michael Schaffner
41fb4d225e
Rename SERPENT_PULP define to PITON_ARIANE. 2018-11-26 12:07:54 +01:00
Florian Zaruba
6381b3d3ee
Add ILA and GPIO peripheral 2018-11-25 21:22:51 +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
Moritz Schneider
7ee27d8424 Consistent use of the SPI peripheral without STARTUP 2018-11-23 15:44:55 +01:00
Michael Schaffner
2f38fcb853
Correct small mismatch in icache TB (piton-specific data replication in reads) 2018-11-21 22:36:21 +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
20f6b42d89
Remove spike tandem simulation 2018-11-20 19:10:50 +01:00
Florian Zaruba
0947762025
Remove non-working cache tb 2018-11-20 19:05:03 +01:00
Florian Zaruba
db4f99e2ad
Ethernet preparation, fpga fixes 2018-11-20 19:02:52 +01:00
Florian Zaruba
bb821300f1
Put batch flow in place (incl small flow fixes) 2018-11-19 19:24:31 +01:00
Florian Zaruba
9733876bfe
FPGA folder clean-up 2018-11-18 15:32:41 +01:00
Florian Zaruba
cb54ccfb7a
Merge remote-tracking branch 'origin/fpga_dev_phy' into fpga_dev 2018-11-18 13:28:56 +01:00
Florian Zaruba
84f695ff34
Add ethernet_lite phy 2018-11-18 13:27:55 +01:00
Michael Schaffner
cfca0d782e
Fix small errors due to renaming. 2018-11-18 12:07:22 +01:00
Michael Schaffner
93b51793f2
Change NC range definition in caches, rename parameters. 2018-11-18 11:59:22 +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
300b7771ea
Remove pmps and fix dcache bypass 2018-11-13 13:38:41 +01:00
Florian Zaruba
0ce36534e8
Add support for VCU118 2018-11-12 16:56:06 +01:00
Florian Zaruba
f9e8e3e3e6
Add dump device to Spike 2018-11-07 17:02:42 +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
04270a0499
Add UART initialization 2018-11-05 09:28:36 +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
0d6e4fe658
Add ns16750 UART to Spike 2018-11-04 11:39:15 +01:00
Florian Zaruba
c907270502
First instructions passing on Spike 2018-11-03 22:44:45 +01:00