Commit Graph

404 Commits

Author SHA1 Message Date
cea30a7be7 working hardware 2026-03-31 16:05:26 +01:00
fcf3390dc5 base testing 2026-03-21 18:39:01 +00:00
3fd9a03aa6 added handler for delta to handle delta being all 1's 2026-03-19 13:22:01 +00:00
9606815dfa enabled performance counter in CSR register 2026-03-18 11:49:19 +00:00
a0b8d07155 added tlb bypass 2026-03-13 13:19:43 +00:00
6fa2e4a36e pass through pointer works 2026-03-12 18:11:55 +00:00
df2342139f saving current changes 2026-03-11 16:00:42 +00:00
e558b21723 saving current changes 2026-03-05 17:40:46 +00:00
5d3f4c7d6d added working cheri assembly 2026-03-05 15:45:05 +00:00
bf7bd16c53 adding current changes 2026-01-14 15:29:03 +00:00
dd3336a2e0 added test for adding pages 2026-01-06 14:55:05 +00:00
27aa16a7bf added todo 2025-12-24 10:48:04 +00:00
PeterRugg
ed011ac0fe Fix unseal check operand order 2025-10-01 14:48:46 +01:00
Jonathan Woodruff
d8d7fc3d2b Revert "Improve scheduling of Reorder buffer. This includes an experimental relaxation of ordering."
This reverts commit 1873702c81.
2025-07-03 10:39:52 +01:00
Jonathan Woodruff
79556da485 Revert "Get this building, removing scheduling issue."
This reverts commit 5331162e3c.
2025-07-03 10:37:35 +01:00
Jonathan Woodruff
acbf07ddf0 Merge pull request #46 from CTSRD-CHERI/CHERI-benchmarks
Cheri benchmarks
2025-06-12 10:15:45 +01:00
Yuecheng-CAM
8af3b2e85a Revert "initial commit, test compiled and run sucessfully"
This reverts commit d025278195.
2025-06-01 18:17:24 +01:00
Yuecheng-CAM
d025278195 initial commit, test compiled and run sucessfully 2025-06-01 18:14:19 +01:00
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
Louis Hobson
04ee741ce2 Increase DCRqNum for test 2025-03-25 09:23:08 +00:00
Louis Hobson
535d85ff35 Request queues in L1 cache 2025-03-25 09:23:06 +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
Franz Fuchs
d1bea2faf0 Corrected CCSeal decoding function 2025-01-07 14:17:20 +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
Peter Rugg
af8432d3f3 Return Abstract Command Error on unsupported CSRs 2024-09-16 18:45:19 +01:00
Franz Fuchs
1f382b1563 Add license again to TourPred.bsv 2024-05-18 17:12:43 +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
6f8c371a5c Roll back DTlB to two cycles for timing on DE10. 2024-03-25 12:52:51 +00:00
Jonathan Woodruff
0e87595d73 Work toward eliminating a cycle of cache latency by doing data lookup in
parallel with tag lookup.
2024-01-31 10:15:51 +00:00
Jonathan Woodruff
ca4e120a6c Use DReg instead of Reg, as intended. 2024-01-22 12:06:39 +00:00
Jonathan Woodruff
640f330d7d Briefly report flush when vm_info has a change in the itlb to give an
opportunity to flush the buffered translations.
2024-01-19 11:48:04 +00:00
Jonathan Woodruff
4f91e54bd2 Properly remove pipline stage in fetch and use a seperate rule to do the
proper TLB lookup if necessary.
2024-01-16 17:00:10 +00:00
Jonathan Woodruff
eee5a2c23b Experiment with a zero-cycle TLB in instruction fetch as well. 2024-01-16 10:05:17 +00:00
Jonathan Woodruff
25a728b6d3 Optimise timing of TLB translation, ensuring that the translated address
proceeds with minimal conditions to the output.
2024-01-16 09:50:35 +00:00
Jonathan Woodruff
f9bf4ad856 Use default value on reset of Map. 2024-01-15 17:00:00 +00:00
Jonathan Woodruff
2c3c1da5c3 Solve last issue to allow doExeMem and doFinishMem. 2024-01-09 17:12:39 +00:00