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

OHG sync from cv32e40p/dev #157

Merged
merged 5 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions bin/lib/cv_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ def __init__(self, **kwargs):
if not hasattr(self, 'log'):
self.log = self.name

if hasattr(self, 'seed'):
self.seed_override = 1
else:
self.seed_override = 0

def set_cov(self):
'''Set the coverage flag based on app setting.
If cov already defined (from testlist), then ignore'''
Expand Down
6 changes: 3 additions & 3 deletions bin/templates/regress_rmdb.j2
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
</usertcl>

<usertcl name="seedGen">
proc getSeeds { num mode regr_name seed_override seed_value } {
if { $seed_override == "1" } {
proc getSeeds { num mode regr_name seed_value } {
if { $seed_value != "" } {
return $seed_value
}
if {[string equal $mode "FIXED"]} {
Expand Down Expand Up @@ -186,7 +186,7 @@
<parameter name="t_test_cfg_name" type="tcl">[getTestCfgName "(%t_test_cfg:%)"]</parameter>
<parameter name="t_iss" type="tcl">[getParameterByPriorityYesOrNo "{{iss}}" "{{t.iss}}" "(%build_iss:%)"]</parameter>
<parameter name="t_cov" type="tcl">[getParameterByPriorityYesOrNo "{{coverage}}" "{{t.cov}}" "(%build_cov:%)"]</parameter>
<parameter name="seeds" type="tcl">[getSeeds "{{t.num}}" "(%SEED_MODE:RAND%)" "(%reg_name%)" "{{t.seed_override}}" "{{t.seed}}"]</parameter>
<parameter name="seeds" type="tcl">[getSeeds "{{t.num}}" "(%SEED_MODE:RAND%)" "(%reg_name%)" "{{t.seed}}"]</parameter>
<parameter name="ucdb_path" type="tcl">[file join "(%results_sim_path%)" "(%t_cfg%)" "{{t.testname}}" "(%t_test_cfg_name:%)" (%t_iteration%)]</parameter>
<parameter name="testname" type="tcl">[getTestName "{{t.testname}}" "(%t_cfg%)" "(%t_test_cfg_name:%)" (%t_iteration%)]</parameter>
<parameter name="ucdb_basename" type="tcl">[getUCDBFilename "{{t.testname}}" "(%t_test_cfg_name:%)"]</parameter>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Dolphin Design
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1

.include "user_define.h"
.section .text.start

Expand Down Expand Up @@ -92,7 +95,7 @@ main: fence.i
.4byte 0x80fe4c33 # manual: opcode = OP, func7 = 1000000
.4byte 0x00200073 # manual: instr uret, opcode = SYSTEM, [31:20] = h002
.4byte 0xb1600073 # manual: random [31:20], opcode = SYSTEM


# Generated instructions
.4byte 0x3e0003fb # custom-3
Expand Down
Loading