Commit graph

2228 commits

Author SHA1 Message Date
Davide Schiavone
ffa5acd15e
fix 32 to 16b assignment (#134) 2023-07-31 13:42:07 +02:00
Mike Thompson
2094c5709f
Merge pull request #132 from LeeHoff/main
changes to parameters and I/O to match cve2_top.sv for use in core-v-…
2023-07-28 16:38:51 -04:00
Lee Hoff
86643db1a9
Merge branch 'openhwgroup:main' into main 2023-07-28 11:40:58 -04:00
szbieg
b94bca939e
Adapt Yosys synthesis script to latch based register file and cve2_clock_gate (#125)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-07-28 15:06:10 +02:00
szbieg
7880e5ae68
Linting verilator script for _top (#126)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-07-28 15:04:43 +02:00
Davide Schiavone
a439ef7ad9
fix core_sleep_o (#131) 2023-07-28 13:52:26 +02:00
Lee Hoff
7b2a9218da changes to parameters and I/O to match cve2_top.sv for use in core-v-verif 2023-07-26 13:39:00 -04:00
christian-herber-nxp
066ff47261
remove branch predictor (#49)
* remove parameter BranchPredictor

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove references to the removed parameter(s) from examples

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from compliance verification

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from core lists

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from the example configurations

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove references to the removed parameter from documentation

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove related and dead code

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

---------

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-07-20 16:40:10 +02:00
szbieg
7836daeb14
Remove dead and redundant code (#124)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-07-20 14:34:29 +02:00
christian-herber-nxp
a0f5aafc4d
Merge pull request #129 from NXP/bug/por-value-of-mstatus
fix #128 power-on-reset value for MSTATUS CSR
2023-06-29 18:04:19 +02:00
Szymon Bieganski
34214541e0
fix #128 power-on-reset value for MSTATUS CSR
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-06-26 15:49:28 +02:00
Davide Schiavone
b8c94a3e84
fix waiver and .sv file for verilator (#123) 2023-06-03 08:47:26 +02:00
Davide Schiavone
06c4a0c0e6
add fetch_enable_i (#118)
* add fetch_enable_i

* fix missign signals

* removed unused signals
2023-06-01 14:41:31 +02:00
christian-herber-nxp
3a9f2d058f
Feature/remove writeback stage (#56)
* remove parameter option WritebackStage

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from examples

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from compliance verification

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from formal verification code generated for SymbioticEDA

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove reference to the deleted parameterd from the documentation
Do not refer to WriteBack as to a stage

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove related code to Writeback stage

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Removal of related and dead code after Writeback-stage removal

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* substitute ASSERT macro with one ignoring rst_ni and clk signals

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* keep clk_i and rst_ni for the sake of assert alone

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* BUGFIX: reintroduce en_wb signal between id and wb

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

---------

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-05-31 14:44:59 +02:00
Davide Schiavone
cd76f83e12
fix regfile 0 val and sec script (#119)
* fix sec script

* fix reg fil 0 val
2023-05-31 14:42:22 +02:00
Davide Schiavone
1253782b42
fix verilator .core (#116)
* fix top and sec

* fix .core
2023-05-25 15:36:17 +02:00
Davide Schiavone
0a9e862fee
fix top and sec (#115) 2023-05-25 09:43:54 +02:00
Davide Schiavone
9abe653e1b
fix verilator and add clk gating cell (#114)
* fix verilator

* add clk gating cell

* remove prim_generic_buf from manifest

* fix comment
2023-05-24 15:18:26 +02:00
MarioOpenHWGroup
67def6f46e
Add SEC scripts (#113) 2023-05-15 15:03:24 +02:00
MarioOpenHWGroup
f20fc8bcc7
IF: Rename instr_is_compressed_out to fix compilation (#112) 2023-05-10 15:51:51 +02:00
Mike Thompson
6bb99ef52e
Merge pull request #18 from DBees/UpdateIssuesTemplates
This replaces the Ibex markdown issues templates with YAML issues tem…
2023-03-24 09:25:47 -04:00
DBees
4c629bf006 Remove check boxes 2023-03-23 15:21:17 -07:00
christian-herber-nxp
685f1f6ee7
Feature/privil mode spec update (#96)
* [rtl] Clear mprv on mret to non M-mode

This is specification change between the v1.11 and v1.12 privileged
architectures. Previously mprv wasn't altered on mret. Now if returning
to a privilege level other than M mode mprv must be cleared.

* [rtl, dv] Add new CSRs for latest priviledged spec

This adds the following CSRs to support the v1.12 priviledged spec.

 - MSTATUSH
 - MCONFIGPTR
 - MENVCFG
 - MENVCFGH

MCONFIGPTR is read only and has its value provided by a ibex_pkg
parameter CSR_MCONFIGPTR_VALUE which is set to 0. Implementors can alter
this value if needed.

All the other CSRs ignore writes and read as 0.

---------

Co-authored-by: Greg Chadwick <gac@lowrisc.org>
2023-03-03 17:18:30 +01:00
christian-herber-nxp
823f596047
Relocate RegFile from TOP level to CORE level (#95)
Remove dead and related code

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-03-03 17:09:12 +01:00
christian-herber-nxp
ec096aafd3
[rtl] Don't take interrupts when single stepping (#97)
Fixes #1814

Co-authored-by: Greg Chadwick <gac@lowrisc.org>
2023-03-03 17:06:49 +01:00
christian-herber-nxp
f6268d4eb9
[rtl] Remove unused transition in ibex_controller FSM (#98)
When in the FLUSH state we cannot have `csr_pipe_flush` set as it
depends upon `instr_executing` being set (within `ibex_id_stage`) and
that is only set in the DECODE stage.

Co-authored-by: Greg Chadwick <gac@lowrisc.org>
2023-03-03 17:06:24 +01:00
christian-herber-nxp
91eb8564de
Feature/flush ctrl in csrwrite (#99)
* [rtl] Flush controller in PMP CSR write ops

As Greg pointed out:

When we have an instruction in ID/EX that writes a PMP register that
update gets written to the CSR the same cycle the next instruction
moves from IF to ID/EX with it's PMP check done with the old value.

The solution is to flush the pipeline when we get a PMP CSR write.

Signed-off-by: Canberk Topal <ctopal@lowrisc.org>

* [rtl] Flush pipe on MSECCFG CSR write

Without this an instruction executed immediately after the MSECCFG write
doesn't have the new MSECCFG setup applied to its execute permission.

---------

Signed-off-by: Canberk Topal <ctopal@lowrisc.org>
Co-authored-by: Canberk Topal <ctopal@lowrisc.org>
Co-authored-by: Greg Chadwick <gac@lowrisc.org>
2023-03-03 17:05:51 +01:00
christian-herber-nxp
d6f0e2ccff
Feature/remove security (#52)
* Remove ResetAll parameter

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove ICache and related paramters

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove reference to the deleted parameterd from the documentation

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove references to the removed parameters from the example configurations

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove security features, and related code

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove complete security section from Reference documentation sub-page

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove references to deleted security features

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove reference to the removed dummy_instr.sv

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove Lockstep

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove DummyInstruction related code

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove references to SecureIbex in documentation

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove related and dead code to security features

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove Security option from example configurations

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove security related signals and CSR register

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

---------

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-28 14:03:42 +01:00
christian-herber-nxp
2aa3bf8b2d
Keep bit-manipulation extension control option as localparam (#55)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-14 13:59:22 +01:00
christian-herber-nxp
e7559f327d
Feature/remove branch target alu (#51)
* remove BranchTargetALU param.

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from the documentation

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from the example configurations

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from examples

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from compliance verification

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remove references to the removed parameters from core lists

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* Remove references to the removed parameter(s) from Yosys framework configuration parser

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

---------

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-13 18:59:56 +01:00
christian-herber-nxp
7a678a54c4
Remove parameter RegFileDataWidth (#50)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-13 18:56:49 +01:00
christian-herber-nxp
483e91daea
Feature/use wfi cycles for mhpmcounter11 (#23)
* create perf_wfi_wait_o signal

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* connect wfi_o to core

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* use perf_wfi signal to increment mhpmcounter[11]

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* complete documentation with modified function of mhpmcounter[11]

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* closes #17 Repurpose performance counter for mul_wait
fix: remove spurious output signal of perf_mul_wait_o

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

---------

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-13 18:51:04 +01:00
christian-herber-nxp
1bed05ca43
Keep DbgTriggerEn and DbHwBreakNum as local params (#47)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-07 13:01:51 +01:00
christian-herber-nxp
c40138f0ef
Keep Physical Memory Protection as local parameter (#48)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-02-06 14:03:02 +01:00
christian-herber-nxp
ffa6ab4154
Fixing dark mode visibility of block diagram by adding background to boxes where missing (#27)
Signed-off-by: Christian Herber <christian.herber@oss.nxp.com>

Signed-off-by: Christian Herber <christian.herber@oss.nxp.com>
2023-01-17 14:58:02 +01:00
christian-herber-nxp
70c2b894f2
Fixes #28: remove references to deleted files (#29)
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-01-17 14:57:27 +01:00
christian-herber-nxp
932db14619
Rename all modules to cve2 (#25)
* rename files and modules to cve2

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* updated tb files

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

* remaining references to ibex: gitignore, examples, etc.

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>

Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
Co-authored-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2023-01-05 10:27:24 +01:00
Mike Thompson
bbe47ea66b
Merge pull request #24 from NXP/feature/rework-readme
Feature/rework readme
2023-01-04 10:11:27 -05:00
Christian Herber
81f9162752 Clean up of incorrect references
Signed-off-by: Christian Herber <christian.herber@oss.nxp.com>
2023-01-04 13:48:43 +01:00
Christian Herber
5cd0623715 Fixed references in CONTRIBUTING.md
Signed-off-by: Christian Herber <christian.herber@oss.nxp.com>
2023-01-04 13:45:23 +01:00
Mike Thompson
a5732a66c0
Merge pull request #26 from NXP/feature/dv_cleanup
clean design verification [dv] folder
2022-12-21 12:20:06 -05:00
Szymon Bieganski
3834421ba5 closes #21 : clean design verification [dv] folder
Signed-off-by: Szymon Bieganski <szymon.bieganski@oss.nxp.com>
2022-11-22 14:07:44 +01:00
Davide Schiavone
321b83303c
update block diagram (#20) 2022-11-14 15:00:59 +01:00
Christian Herber
2d7bb4aea5 Updated contributing guidelines to adjust for change from lowRISC to OpenHW Group
Signed-off-by: Christian Herber <christian.herber@oss.nxp.com>
2022-11-14 10:41:33 +01:00
Christian Herber
d28bdcc983 Updated Readme to reflect changes from Ibex to CVE2
Signed-off-by: Christian Herber <christian.herber@oss.nxp.com>
2022-11-14 10:40:58 +01:00
DBees
49dc00fe96 This replaces the Ibex markdown issues templates with YAML issues template based on CVA6 2022-11-07 15:23:00 -08:00
Mike Thompson
520888bedf
Merge pull request #16 from MikeOpenHWGroup/main
Working manifest (temporary solution for simulation)
2022-10-14 13:33:40 -04:00
Mike Thompson
0f6177baea Working manifest (temporary solution for simulation)
Signed-off-by: Mike Thompson <mike@openhwgroup.org>
2022-09-19 20:05:10 -04:00
Davide Schiavone
2ea28638f0
Merge pull request #1 from davideschiavone/remove_legacy_80
removed legacy 0x80 offset from bootaddr
2022-07-01 18:30:02 +02:00
Davide Schiavone
be70b262f6 removed legacy 0x80 offset from bootaddr 2022-06-30 08:41:35 +02:00