Commit Graph

1428 Commits

Author SHA1 Message Date
Rose Thompson
10b08f8039 Updated brach predictor names to more logical names and match textbook. 2024-05-10 08:51:12 -05:00
David Harris
77137f0f60 ZAAMO and ZALRSC implemented but not tested 2024-05-07 16:45:49 -07:00
David Harris
fcd75fd6b6 Fixed shiftcorrection typo causing failure on testfloat fcvt tests 2024-05-07 14:27:44 -07:00
David Harris
bdc2ad494f Shared AND gate in ALU for extract / and paths 2024-05-03 09:07:33 -07:00
David Harris
4d5ac3b869 Turned off BMUSubArith for bext/bexti 2024-05-03 08:59:40 -07:00
David Harris
4639e92fda Turned off BMUSubArith for bext/bexti 2024-05-03 08:56:14 -07:00
David Harris
c0afb44ed4 Tied dangling signals to 0 for some configs to make VCS lint happy 2024-04-28 22:50:36 -07:00
David Harris
7695ad4755 More fround stub code to keep VCS happy 2024-04-28 22:21:51 -07:00
David Harris
06e34b7be4 Fixed byte enables for synthesis 2024-04-27 06:25:24 -07:00
David Harris
1274ec55af Resolved merge conflict 2024-04-26 16:15:23 -07:00
David Harris
4faf44c4c6 Named zknde block in bitmanipalu 2024-04-25 17:24:00 -07:00
Rose Thompson
6c0b860742 Fixed the cache miss counter. 2024-04-24 16:14:51 -05:00
David Harris
235a3dcfca ROM preload compatible with Verilator lint, sim, and Design Compiler 2024-04-24 08:44:37 -07:00
David Harris
32b6e6a8ab fround progress 2024-04-24 04:42:47 -07:00
David Harris
6415bfc3c2 Code and testbench cleanup 2024-04-23 10:17:44 -07:00
David Harris
cc236bdb25 Resolved merge conflicts 2024-04-22 12:16:06 -07:00
David Harris
03f49dea3f regression printing improvements 2024-04-21 19:45:09 -07:00
David Harris
3f195884e9 Defined bit sizes more precisely to help VCS lint and conform to coding style 2024-04-21 08:40:11 -07:00
David Harris
be15a11622 Fixed conflicts on getenv 2024-04-21 08:38:13 -07:00
David Harris
0419b5484a parameterized register names in peripherals 2024-04-21 07:43:01 -07:00
David Harris
00a1c0fc57 Fixed WALLY/RISCV paths in testbench/rom1p1r; search log files for warnings and errors 2024-04-21 00:02:15 -07:00
David Harris
fd6a6b2249 environment variable cleanup 2024-04-20 22:52:08 -07:00
David Harris
f39e240082 Spacing cleanup 2024-04-20 20:53:49 -07:00
David Harris
25a26656b6 Removed unnecessary ZBB from BMU extract mux 2024-04-20 20:53:14 -07:00
David Harris
338f37b570 Moved getenv/getenvval declaration to config-shared so lint and regression both run 2024-04-20 17:19:42 -07:00
David Harris
571b67f565 Merging PR738 2024-04-20 17:15:17 -07:00
slmnemo
f0229e970b Fixed getenvvar verilator bug in rom1p1r, Removed unused system function from testbench. 2024-04-20 17:07:54 -07:00
David Harris
ea344fe2fa Fixed getenvval lint error in rom1p1r 2024-04-20 15:55:52 -07:00
David Harris
a3db61b2b2 Merge branch 'main' of https://github.com/openhwgroup/cvw into dev 2024-04-20 15:41:42 -07:00
David Harris
9ec4c752f1 Fixed bugs in Zcb compressed loads and stores 2024-04-20 13:16:31 -07:00
Kunlin Han
08dd2eac74 Add getenvval for rom. Related to issue #723. 2024-04-17 23:26:09 -07:00
David Harris
3ea16c6057 Removed note about store stall being depricated 2024-04-17 03:34:11 -07:00
David Harris
db330b35b2 Removed unnecessary muxes from shiftcorrection; changed flag to --nightly in lint-wally 2024-04-16 20:57:49 -07:00
slmnemo
39ae26a897 Added documentation for known Verilator hierarchy bug 2024-04-15 15:58:09 -07:00
slmnemo
4b80457f3e Fixed issue with Verilator hierarchical referencing by changing module names, moved run-imperas-linux to correct directory 2024-04-12 21:58:20 -07:00
David Harris
499e4d6a6e Changed 2 to 1 in FmaPreResultSubnorm logic, fixing issue 655 about multiply on f/fh. Not entirely confident this is the right change, but can't find any failures. See https://docs.google.com/document/d/1p7zb4Vvd1LMBLRgEpXjHyp7etCaFaiBVrBZJM8jediE/edit 2024-04-03 17:28:31 -07:00
David Harris
79cccfca82 Progress toward run_vcs 2024-04-03 14:05:07 -07:00
Rose Thompson
4eb522123f Changed D suffix to Delay in ebufsmarb. 2024-03-28 16:24:45 -05:00
Rose Thompson
5b4d3f49b0 Fixed #689 caused by removal of #1 delays. For some reason the #1 were not removed from cacheLRU.sv. 2024-03-26 12:26:03 -05:00
David Harris
fc158689ad Shared amoalu max/min comparator hardware and removed input sign extend muxes 2024-03-24 17:15:46 -07:00
David Harris
f0b29d3083 AMO max/min comparator optimization 2024-03-24 17:05:32 -07:00
David Harris
bae52cf13d
Merge pull request #678 from Karl-Han/latest
[Resolved Conflict] Remove all #delay from non-testbench
2024-03-23 15:18:04 -07:00
Kunlin Han
22b59138f0 Remove all #delay from non-testbench. 2024-03-16 11:20:32 -07:00
David Harris
35f1c1d971 Restructured rconlut for modularity 2024-03-16 07:26:40 -07:00
David Harris
fedd23a3c0 Renamed aes blocks based on size 2024-03-16 07:12:36 -07:00
David Harris
c01e4495b1 AES simplification 2024-03-16 07:00:56 -07:00
Jordan Carlin
cbd61d008f
fix size of CVTLEN to support fcvtmod.w.d; add max macro to config-shared.vh 2024-03-14 14:07:15 -07:00
Kunlin Han
8c67a76912 Remove all #delay from non-testbench. 2024-03-13 10:31:40 -07:00
James Stine
41ab94c9a3 fix elements forgot to delete from zknh32.sv 2024-03-12 11:42:26 -05:00
James Stine
55863bda1b Update K extension in SHA to remove redundant logic and optimize hierarchy to reduce structure/area 2024-03-12 11:10:45 -05:00
David Harris
7132d306b4 Simplified ZKNH64 2024-03-11 09:41:36 -07:00
David Harris
dbfe44a54b Renamed aes and sha directories 2024-03-11 09:06:51 -07:00
David Harris
019458a63d Shared sbox between aes64ks1i and aes64e 2024-03-11 08:58:10 -07:00
David Harris
096f4090ac Final cleanup tonight 2024-03-11 01:40:47 -07:00
David Harris
8af25a45e6 AES32 sharing logic 2024-03-11 01:36:46 -07:00
David Harris
a714904696 Simplifying AES32 logic 2024-03-11 01:25:44 -07:00
David Harris
10d1ff61b6 Merged ZKNDEResult into a single BMU result mux input 2024-03-11 01:18:39 -07:00
David Harris
39c0d0cdda AES64 simplification 2024-03-11 01:15:16 -07:00
David Harris
b7f5ce6ed3 AES64 simplification 2024-03-11 01:12:24 -07:00
David Harris
64d7f778da AES64 simplification 2024-03-11 01:01:20 -07:00
David Harris
7d87c4f6c5 AES64 simplification 2024-03-11 00:53:39 -07:00
David Harris
87ed778763 Starting to merge decrypt and encrypt for AES64 2024-03-11 00:45:38 -07:00
David Harris
ef896797fd Optimized out aes64im hardware; sharing with aes64d 2024-03-11 00:36:10 -07:00
David Harris
5257d3d8fd AES64 cleanup 2024-03-11 00:20:50 -07:00
David Harris
7ee3145fc1 Simplified muxing for AES64 2024-03-11 00:14:38 -07:00
David Harris
d22306ab9f Shared haredware for aes64e 2024-03-11 00:01:46 -07:00
David Harris
b53e873a11 shared hardware for AES 64 decode 2024-03-10 23:51:32 -07:00
David Harris
f950067600 Shared middle and final round aes32 to cut size 50% 2024-03-10 23:40:12 -07:00
David Harris
f72e5048de Defined rotate module and formatted AES modules more densely 2024-03-10 23:09:11 -07:00
David Harris
3d72ccac60 AES simplification 2024-03-10 22:37:50 -07:00
David Harris
9a1fdba077 Added more Zbkb tests shared with Zbb 2024-03-10 22:24:16 -07:00
David Harris
2580d37fc0 ZK cleanup, check no LLEN > XLEN without D$, add half and quad float load/store to instruction name decoder 2024-03-10 22:03:57 -07:00
David Harris
837abf1d9e ZK simplifcations 2024-03-10 21:44:11 -07:00
David Harris
d0dd30822e ZK simplification 2024-03-10 21:35:20 -07:00
David Harris
955c131bd9 Crypto rename inputs and outputs to a and y 2024-03-10 21:27:11 -07:00
David Harris
ea6846ffcc Crypto commenting cleanup 2024-03-10 20:58:57 -07:00
David Harris
e4724b8d0e Crypto formatting cleanup 2024-03-10 20:45:27 -07:00
David Harris
34058ddbf0 Crypto formatting cleanup 2024-03-10 20:36:29 -07:00
David Harris
39ca7093bf Merged AES changes 2024-03-10 19:17:01 -07:00
Rose Thompson
3cf6a19729
Merge branch 'main' into main 2024-03-10 10:48:21 -05:00
James E. Stine
047291ef49 add header for bmuctrl.sv 2024-03-09 22:09:31 -06:00
James E. Stine
54fec7c31f fix bitmanipalu.sv typo on missing semicolon 2024-03-09 22:07:40 -06:00
James E. Stine
1573c890d0 Update bitmanipalu.sv for K extension 2024-03-09 22:01:20 -06:00
James E. Stine
ac3aa823e7 fix underscore in bmu directory 2024-03-09 20:19:46 -06:00
James E. Stine
1aa1608a18 fix space in kmu 2024-03-09 19:41:29 -06:00
James E. Stine
ad12def935 fix underscore in instantiation 2024-03-09 19:38:10 -06:00
James E. Stine
bd5741b4f1 fix space at beginning of file in bmu 2024-03-09 19:10:43 -06:00
James E. Stine
55e019c9dd update removal of underscores from kmu 2024-03-09 19:00:31 -06:00
James E. Stine
3b16238a37 update removal of underscores from sha_instructions 2024-03-09 18:51:01 -06:00
James E. Stine
08c7ddd61d update removal of underscores from aes_instructions 2024-03-09 13:28:47 -06:00
James E. Stine
8821386fe5 update removal of underscores from aes_common 2024-03-09 13:06:36 -06:00
David Harris
eb87a4a5c3 UM comments in fdivsqrtotfc 2024-03-06 15:53:14 -08:00
David Harris
2c6588d4ae Timinig optimization for radix 4 division, added missing derived config 2024-03-06 15:05:04 -08:00
David Harris
c7c12cc3a8 Fixed Lint issue on cacheLRU 2024-03-06 14:00:57 -08:00
Rose Thompson
54c1d28c8b Fixed missing case in the align AccesByteOffset Mux. 2024-03-06 15:43:55 -06:00
Rose Thompson
0d8c251fa4 Merge branch 'main' of https://github.com/openhwgroup/cvw 2024-03-06 15:35:34 -06:00
Rose Thompson
2f94be5e79 Revert "Optimized the align logic for loads."
This reverts commit 1fd678b433.
2024-03-06 15:19:17 -06:00
Rose Thompson
57aab52dc2 Revert "Partially working optimized subwordwrite for misaligned."
This reverts commit dac8fc16af.
2024-03-06 15:17:57 -06:00
Rose Thompson
9668fdd868 Revert "Closer to getting subword write misaligned working."
This reverts commit 6a9c2d8dc4.
2024-03-06 15:16:43 -06:00
Rose Thompson
dce7de59a3 Revert "Non-ideal fix. Added new output from pma which indicates if the write shift should occur."
This reverts commit 3714b2bf4a.
2024-03-06 15:16:37 -06:00
Rose Thompson
a48c16c0ef Revert "Swapped to the more compact subwordreadmisaligned.sv."
This reverts commit 1ece6f8eae.
2024-03-06 15:16:32 -06:00
Rose Thompson
f752b5dd37 Revert "Beginning subword cleanup."
This reverts commit 7e1ea1e6d9.
2024-03-06 15:16:24 -06:00
Rose Thompson
a8024eee26 Revert "Updated subword misaligned."
This reverts commit 69d31d50e2.
2024-03-06 15:16:16 -06:00
Rose Thompson
298028b119 Revert "Cleanup."
This reverts commit 45c30267a5.
2024-03-06 15:16:03 -06:00
Rose Thompson
739e73ef81 Revert "Siginficant cleanup of subwordwritemisaligned."
This reverts commit fbc18abaa0.
2024-03-06 15:15:58 -06:00
Rose Thompson
e7ec2bedd4 Revert "Simplifications of subword code."
This reverts commit a402883115.
2024-03-06 15:15:51 -06:00
Rose Thompson
b64b883129 Revert "Removed duplicate endianswap."
This reverts commit caac48b7f2.
2024-03-06 15:15:43 -06:00
Rose Thompson
5447159cfd Revert "Cleanup."
This reverts commit e84b7cc147.
2024-03-06 15:15:26 -06:00
Rose Thompson
3fa5faa6cf Revert "Added sdc to pma allow shift."
This reverts commit a2d5618d88.
2024-03-06 13:29:08 -06:00
Rose Thompson
2ea0134329 Revert "Trying an experiment. Use the less compact subwordreaddouble in the fpga synthesize rather than subwordreadmisaligned."
This reverts commit cba3209e7f.
2024-03-06 13:28:59 -06:00
Rose Thompson
068ffda5fb Revert "Revert "Trying an experiment. Use the less compact subwordreaddouble in the fpga synthesize rather than subwordreadmisaligned.""
This reverts commit 8136b45ca7.
2024-03-06 13:28:47 -06:00
David Harris
e0eb91f795 Changed always @(posedge clk) to always_ff @(posedge clk) where it was omitted in several places 2024-03-06 11:02:04 -08:00
David Harris
b386331cc8 Changed '0 to 0 where possible per Chapter 4 style guidelines 2024-03-06 05:48:17 -08:00
David Harris
dd33479056 Switched to ?: for gating per section 4.2.4.3 2024-03-06 04:59:58 -08:00
David Harris
86956026dc Further simplified subwordread muxing 2024-03-06 04:24:31 -08:00
Kevin Kim
9d73e5bd0d lsu supports quad enabled subwordreads 2024-03-05 17:07:39 -08:00
KelvinTr
00b61390d9 Optimized Inverse Mixcolumn 2024-03-05 14:56:24 -06:00
Rose Thompson
c093f53c9c Merge branch 'main' of https://github.com/openhwgroup/cvw
Cleaned up the cacheLRU.
2024-03-05 11:08:40 -06:00
Rose Thompson
e8e0538f6c
Changed to non-blocking in cacheLRU and removed clearing LRU bits on flush. 2024-03-05 10:33:47 -06:00
James E. Stine
5b445946b1 style file slight mods for sha_instructions 2024-03-05 09:14:22 -06:00
James E. Stine
6894ee4588 Separate gm2.sv to be separate module 2024-03-05 09:10:41 -06:00
James E. Stine
5aab40a35f Missed some style module declarations 2024-03-05 09:06:48 -06:00
James E. Stine
5e247b9bf3 fix some spacing in aes_common 2024-03-05 09:02:22 -06:00
James E. Stine
7bbc6413fb fix spacing in sha_instructions for style 2024-03-05 08:59:45 -06:00
James E. Stine
0d7ea36883 fix module name to lc in aes_instructions 2024-03-05 08:56:24 -06:00
James E. Stine
e6ffde61bd fix module name to lc 2024-03-05 08:54:50 -06:00
David Harris
1a0097f6e7 Further fdivsqrt simplification after starting Sqrt at iteration 0 2024-03-04 16:40:49 -08:00
David Harris
9c04df8f69 Merge branch 'main' of https://github.com/openhwgroup/cvw into dev 2024-03-04 16:04:24 -08:00
Rose Thompson
457d3481e7 How did this error get past for so long. 2024-03-04 17:58:41 -06:00
Rose Thompson
0222e8f42a Don't want to clear the lru bits on invalidation (clearvalid). 2024-03-04 17:52:41 -06:00
Kevin Kim
10ab07975f uslc comments 2024-03-04 14:31:21 -08:00
Kevin Kim
9b87a00698 sqrt mux lint fixes 2024-03-04 14:31:07 -08:00
Kevin Kim
587fdbdf8e removed j1,j0 from iteration and put inside divider stage 2024-03-04 14:30:05 -08:00
KelvinTr
c163069484 Optimized mixcolumn 2024-03-04 15:23:11 -06:00
Kevin Kim
7dec9cdf21 optimization in uslc 2024-03-04 10:46:16 -08:00
Kevin Kim
9c95cba865 remove sqrt cycle muxing 2024-03-03 18:51:10 -08:00
Kevin Kim
0ff59ff157 remove redundant mux 2024-03-03 13:00:20 -08:00
Kevin Kim
c32173f163 changed U/C initialization to account for integer bit generation on divider stage for sqrt. Quick and dirty j1 logic fix 2024-03-03 10:30:18 -08:00
Kevin Kim
6c24afaf98 changed cycle count to account for integer bit generation for sqrt 2024-03-03 10:29:32 -08:00
Kevin Kim
c45d67f8ba fdivsqrt changes 2024-03-02 20:29:03 -08:00
Kevin Kim
77ccc7b319 removed square root pre-process muxes 2024-03-02 15:55:34 -08:00
Rose Thompson
a22de45631 Removed unused storedelay from align. 2024-03-02 16:20:31 -06:00
Rose Thompson
8136b45ca7 Revert "Trying an experiment. Use the less compact subwordreaddouble in the fpga synthesize rather than subwordreadmisaligned."
This reverts commit cba3209e7f.
2024-03-02 11:55:43 -06:00
Rose Thompson
cba3209e7f Trying an experiment. Use the less compact subwordreaddouble in the fpga synthesize rather than subwordreadmisaligned. 2024-03-02 11:38:33 -06:00
Rose Thompson
4c3d927474 Renamed CacheHit to Hit. 2024-03-01 11:00:24 -06:00
Rose Thompson
e72880fd89 Changed cachefsm state STATE_HIT to STATE_ACCESS. 2024-03-01 09:59:54 -06:00
Rose Thompson
85691f0e8b Simplified and clarified names in cacheLRU. 2024-02-29 17:18:01 -06:00
KelvinTr
c110d0bb03 Optimized Zbkx 2024-02-29 14:51:02 -06:00
KelvinTr
9f53c54f57 Optimized Zbkx 2024-02-29 14:50:15 -06:00
KelvinTr
e40ae126d3 Combined ZBC and ZBKC into one unit 2024-02-29 14:17:33 -06:00