Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CV32E40Pv2 Verification update #2369

Merged

Conversation

XavierAubert
Copy link

@XavierAubert XavierAubert commented Feb 16, 2024

Below is the pull request containing the last two weeks of work on CV32E40Pv2 verification. As usual, everything is organized in a more readable way, by topic.

Vaibhav Jain and others added 30 commits December 29, 2023 15:15
…_pulp_hwloop_count_range_test for large lpcount

Signed-off-by: Vaibhav Jain <[email protected]>
…m update to use directed_streams in debug rom

Signed-off-by: Vaibhav Jain <[email protected]>
…structions mainly wfi with pulp

Signed-off-by: Vaibhav Jain <[email protected]>
…s_0131

Redo updates for Increasing debug rom space
Signed-off-by: dd-baoshan <[email protected]>
…nously and ebreakm is enable in debug mode; Add plusarg to disable sampling

Signed-off-by: dd-baoshan <[email protected]>
…s_0202

Cv32e40p/bsm update tb files 0202
Set to Warning temporarily.

Signed-off-by: Pascal Gouedo <[email protected]>
… relaxation seems to have bad effect on 20230905 toolchain.

Signed-off-by: Pascal Gouedo <[email protected]>
…s_0205

Cv32e40p/bsm update tb files 0205
New linker scripts to resolve gp relaxation (gcc issue #92).
…without gp relaxation.

Signed-off-by: Pascal Gouedo <[email protected]>
Signed-off-by: dd-baoshan <[email protected]>
…s_0206

Fix issue in handling exception trap intercept with debug trigger match
XavierAubert and others added 24 commits February 9, 2024 17:17
Corrected duplicated definition of F bins.
…instr and data obi interface

Signed-off-by: dd-baoshan <[email protected]>
…s_WW06

Cv32e40p/bsm update tb files ww06
…could occur from cfg field missing inside test Object OR --cfg switch missing from cmd)
…nnot be overriden at all by the cmd switch option
…s_WW06

Add directed tests to improve tb functional coverage holes (uvme_inte…
@@ -242,8 +242,23 @@ SECTIONS
. = SEGMENT_START("ldata-segment", .);
. = ALIGN(32 / 8);
__bss_end = .;
/* In toolchain, x3 is the gp global pointer register and gp relaxation occurs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this detailed comment. (Did I mention I hate the toolchain?)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toolchain is just implementing what is defined in RISC-V ABI 😀.

Copy link
Member

@MikeOpenHWGroup MikeOpenHWGroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @XavierAubert. Fortunately for your reviewer many of the files are YAMLs and I did not review in detail. I have a few comments about license headers, but none of these should gate the merge of this PR.

Passes a local CI regression.

/* Script for -z combreloc */
/* Copyright (C) 2014-2020 Free Software Foundation, Inc.
Copyright (C) 2019 ETH Zürich and University of Bologna
Copyright (C) 2020 OpenHW Group
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new file and so should have an updated license header. Ideally it would update the copyright holder and date and use the SPDX Header:

# Copyright 2024 Dolphin Design
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a copy of the original linker script.
I didn't change the header as it was already like that in v1.

@@ -0,0 +1,183 @@
/*
* Copyright 2023 Dolphin Design
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry as I was overlooked when using the template.

///////////////////////////////////////////////////////////////////////////////
//
// Copyright 2023 OpenHW Group
// Copyright 2023 Dolphin Design
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry as I was overlooked when using the template.

// BELOW ARE USE FOR SPECIAL HACKS PURPOSE - START

// 1 - To cover directives instr/data gnt assert-deassert when req is low
`define TB_HACK_1_OBI_GNT(TYPE) initial begin : hack_obi_intf_gnt_signal_1_``TYPE \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this could go in a file such as uvmt_cv32e40p_macros.sv, similar to what is in place for the environment files.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will update this in next PR. Thanks.

@MikeOpenHWGroup MikeOpenHWGroup merged commit 65fb814 into openhwgroup:cv32e40p/dev Feb 19, 2024
1 check passed
@XavierAubert XavierAubert deleted the cv32e40p/dev_dd_w7 branch March 8, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants