Commit Graph

1140 Commits

Author SHA1 Message Date
Jonathan Woodruff
5331162e3c Get this building, removing scheduling issue. 2025-05-23 10:43:42 +01:00
Jonathan Woodruff
1873702c81 Improve scheduling of Reorder buffer. This includes an experimental relaxation of ordering. 2025-05-20 16:37:34 +01:00
Jonathan Woodruff
7bc17965b6 Give commit redirect priority over branch/execute redirect. 2025-05-20 16:34:45 +01:00
Jonathan Woodruff
f964e1dd2c Changes to make Prefetcher more deterministic, and also to report schedules. 2025-05-20 16:32:33 +01:00
Jonathan Woodruff
03b8face1e Fix mac build more generically and cleaner. 2025-03-10 17:11:33 +00:00
Peter Rugg
8dd73525de Add timer mapping for VCU118 builds 2025-02-20 17:45:58 +00:00
Franz Fuchs
6ebe612ff8 Fix Toooba to use addresses instead of offsets (#32)
* Fixed the Decoding of (C)JAL

* Use CSR addresses instead of offsets

* Fixed offsets correctly

* Fixed all offsets I could spot

* Fix use of modifyOffset function

* Corrected brAddrCalc function

* Preliminary fix for ddc offsetting

* Use setAddr instead of incOffset for DDC

* Deleted unnecessarily added lines in ALU pipeline

* Deleted white space

* Switched off verbosity for ALU pipeline

* Removed unnecessary print import
2025-02-05 11:06:07 +00:00
Franz Fuchs
5dea27457a Corrected setting of global bit when unsealing 2025-01-27 16:13:56 +00:00
Franz Fuchs
d629d678e3 Fixed unseal bug 2025-01-27 16:13:56 +00:00
Peter Rugg
8d0f985d99 Ban illegal shift immediate encodings 2025-01-23 12:39:46 +00:00
Peter Rugg
773d5c1107 Implement CSetHigh 2025-01-22 16:07:06 +00:00
Yuecheng-CAM
f71a3d61a9 implement C_GET_HIGH 2025-01-22 16:05:41 +00:00
Jonathan Woodruff
6ffde560b5 Some small timing optimistations in the direction predictor, and also a new optional smaller configuration for the tournament predictor. 2025-01-21 10:09:06 +00:00
Peter Rugg
6f30f2b703 Fix floating point illegal handling
As well as clarifying the logic in the main decode function (no
functionality change), this also fixes some cases that should be
illegal but weren't caught in the memory instructions.
2025-01-20 17:18:54 +00:00
Peter Rugg
3fd8f22f66 Fix many illegal instruction decode cases
The decode had a TODO to handle illegal instructions more precisely.
Some instructions in the new CHERI spec were not causing traps, and
seemed to wedge the core.
Switch to a new style where instructions are assumed illegal unless
explicitly declared legal.
This definitely at least covers many funct3 etc fields where only
some of the encodings are currently used.
2025-01-20 17:18:54 +00:00
Peter Rugg
0ae1d8a275 Clear compressed and uncompressed BTBs on mispred
This fixes a wedge in the frontend: the fetch stage could get stuck
in a loop, with the next address predictor deciding that the redirect
PC is a compressed instruction doing a close jump. On mispredict,
this would get retrained, but "mispedict" was denoted as an
untaken branch to PC+2. If unlucky, PC+2 could cross an alignment
boundary, causing the untaken branch to be interpreted as a long
branch, leaving an old competing entry in the compressed branch BTB,
which would then take priority.
Fix by always marking entries in both close and long BTBs when not
taken: to avoid hurting performance, this kind of update will not
insert into either BTB unless already present.
2025-01-20 16:50:40 +00:00
Jonathan Woodruff
ce2ded19ae Optimise timing/scheduling by always returning the head of the RAS stack.
This means that two returns decoded in the same cycle are likely to result in a misprediction.
The trouble here was that the Decode loop wouldn't build with slight changes due to a scheduling conflict through the RAS due to the dependence of the next ras.first method on the earlier ras.pop method.  This was indeed an unpleasant combinational path between concurrently decoding instructions.  This change allows all RAS predictions to be independent (by assuming no pushes or pops occur earlier in the bundle than a return).
2025-01-20 15:15:14 +00:00
Peter Rugg
1ae93da4f8 Restore per-instruction commit prints by default 2025-01-08 18:43:21 +00:00
Peter Rugg
1df304a820 Prevent various debug prints by default 2025-01-08 18:43:05 +00:00
Franz Fuchs
d1bea2faf0 Corrected CCSeal decoding function 2025-01-07 14:17:20 +00:00
Franz Fuchs
995b978e59 Merge pull request #29 from CTSRD-CHERI/faf28_fix_rvfi_offset
Fixed pc_wdata to be addresses instead of offsets
2024-12-16 12:19:26 +00:00
Franz Fuchs
2983835e26 Fixed pc_wdata to be addresses instead of offsets 2024-12-16 12:13:59 +00:00
Alexandre Joannou
cf73e1a927 Bump BlueStuff 2024-11-21 18:08:33 +00:00
gameboo
c59520e894 bump BlueStuff 2024-11-14 14:44:18 +00:00
gameboo
817d0249c5 Revert "Use only 20 bits of address on the AXI lite port"
This reverts commit c766187368.
2024-11-12 17:44:11 +00:00
Franz Fuchs
90fb959788 Revert "implement C_GET_HIGH"
This reverts commit 303331cc8f.
2024-10-23 17:39:32 +01:00
Yuecheng-CAM
303331cc8f implement C_GET_HIGH 2024-10-20 23:17:01 +01:00
Jonathan Woodruff
57fcf7a52a Revert "Revert "Use only 20 bits of address on the AXI lite port""
This reverts commit 47e12b8e65.
2024-09-26 11:06:31 +01:00
Peter Rugg
1cfc58c2cc Fix debug module reset state machine
dmactive should only go low when the debug module has successfully
reset. Approximate this by waiting for 1024 cycles, allowing any
register access requests and system bus requests to come back.
2024-09-16 23:15:24 +01:00
Peter Rugg
6fc7327b93 Support narrow debug module register accesses 2024-09-16 18:45:19 +01:00
Peter Rugg
aeae9b1f63 Busy the system bus when performing writes
This was probably removed for performance, but now that we have
a faster workaround for loading kernels on the DE10, we should
probably prioritise accurate error information instead.
2024-09-16 18:45:19 +01:00
Peter Rugg
af8432d3f3 Return Abstract Command Error on unsupported CSRs 2024-09-16 18:45:19 +01:00
Peter Rugg
3b6b78db83 Fix src_Verifier directories not being included in TestRIG builds 2024-09-16 16:12:40 +01:00
gameboo
47e12b8e65 Revert "Use only 20 bits of address on the AXI lite port"
This reverts commit c766187368.
2024-09-11 20:02:35 +01:00
gameboo
c766187368 Use only 20 bits of address on the AXI lite port 2024-07-08 17:12:47 +01:00
Samuel Stark
02ee2bdee0 Move RVFI toggle into Include_RISCY_Config.mk
Previously, Makefiles had to add new include paths and -D defines manually when they wanted to include RVFI.
This caused hard-to-diagnose errors in repositories consuming Toooba that expected -D RVFI to work.
This commit makes Include_RISCY_Config.mk take an optional make-variable argument RVFI, which defaults to "false", and adds the relevant paths and -D defines if it is set to "true".
This does not cover RVFI_DII, which is a simulation-only extension to allow instruction injection.
This commit also includes fixes to the Makefiles in ./builds/ to use this interface properly.
2024-06-03 15:51:48 +01:00
Peter Rugg
7e1c9fdc98 Bump BlueStuff 2024-05-21 16:22:00 +01:00
Peter Rugg
a5353f8f0f Bump BlueStuff 2024-05-21 16:16:55 +01:00
Franz Fuchs
1f382b1563 Add license again to TourPred.bsv 2024-05-18 17:12:43 +01:00
Jonathan Woodruff
3e4dd64673 Merge pull request #27 from CTSRD-CHERI/CHERI_unified_makefile
Restructure makefiles so that all common and branch-specific flags/files
2024-05-17 11:29:20 +01:00
Jonathan Woodruff
1b9d498e95 Standardise on using underscores in directory names in makefiles. 2024-05-17 11:21:42 +01:00
Jonathan Woodruff
2c648eb1ed Restructure makefiles so that all common and branch-specific flags/files
are in Include_RISCY_Config.mk so that this can be included from an
external repo without replicating Toooba branch-specific flags in that
repo.
2024-05-15 10:01:28 +01:00
Franz Fuchs
3b7cc5261a Merge pull request #23 from CTSRD-CHERI/faf28_konata
Add Konata support
2024-04-16 16:45:28 +01:00
Franz Fuchs
3532d44d56 Performed merge with CHERI 2024-04-16 16:42:37 +01:00
Franz Fuchs
598ac6574e Added working Konata support
Konata: change M to F3

Added konata support to ALU pipeline

Added KONATA support to Fpu pipeline

Added KONATA support to Mem pipeline

Finished v1 of KONATA support

Added improvements to catch fragments in Konata

Kill fragments that have been merged

Fixed order of konata logs

Added commit stage output

Ensured that only the Commit stage can retire instructions in konata

Fixed printing commit stage log for Cap instructions

Changed Kanata to include the cycle counter for each line in the log file; please note that this requires post processing

Added reservation station support for Konata

Added parsing script for Toooba output

Removed double updated to D stage

Adressed Peter's comments
2024-04-15 16:59:53 +01:00
Franz Fuchs
449070e347 Copied over preliminary Konata support from 89b0c37a7b
The referenced commit did not merge well with our code base. Therefore, I copied over the changes manually. These changes do
not constitute a working Konata support for Toooba. In this commit, I commented out some things that did not compile, which will be fixed in future
2024-04-15 16:57:20 +01:00
Jonathan Woodruff
9e4c8e54e1 Merge branch 'CHERI' into jdw57_getIssueLd_simplify 2024-04-15 09:14:31 +01:00
Jonathan Woodruff
70b82fb164 Insert deburster again on the vcu118-specific wrapper, as this design is known to work for the vcu118, or specifically, using the width converter. 2024-04-05 14:06:42 +01:00
Jonathan Woodruff
854e8e5bfb Another experiment to see if we can resolve the vcu118 build.
This one puts the in-order shim before the width converter.
2024-04-05 10:54:39 +01:00
Jonathan Woodruff
8990ae56ed Revert "Potential workaround for issue with vcu118 memory bus error."
This reverts commit f86ea0203d.
2024-04-05 10:44:50 +01:00