# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

# This file sets common message configurations for all JasperGold tcl files.

# Save debug effort to escalate the following error messages
# Error out on use of undeclared signals
set_message -error VERI-9030

# Error out when a parameter is defined twice for an instance
set_message -error VERI-1402

# Disabling warnings:
# We use parameter instead of localparam in packages to allow redefinition
# at elaboration time.
# Formal isunknown does not support non-constant.
# Formal will skip initial construct.

# "parameter declared inside package XXX shall be treated as localparam"
set_message -disable VERI-2418

# "system function call isunknown with non-constant argument is not synthesizable"
set_message -disable VERI-1796

# "initial construct ignored"
set_message -disable VERI-1060


# Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0

# This file sets common message configurations for all JasperGold tcl files.

# Save debug effort to escalate the following error messages
# Error out on use of undeclared signals
set_message -error VERI-9030

# Error out when a parameter is defined twice for an instance
set_message -error VERI-1402

# Downgrade the enum cast error to warnings.
# For example: JasperGold will throw an error and terminate if design assign an int to an enum
# type.
set_message -warning VERI-1348

# Disabling warnings:
# We use parameter instead of localparam in packages to allow redefinition
# at elaboration time.
# Formal isunknown does not support non-constant.
# Formal will skip initial construct.

# "parameter declared inside package XXX shall be treated as localparam"
set_message -disable VERI-2418

# "system function call isunknown with non-constant argument is not synthesizable"
set_message -disable VERI-1796

# "initial construct ignored"
set_message -disable VERI-1060


Downgrade an error to a warning
[fpv] Downgrade an error to a warning

This PR downgrade an error in jaspergold to warning.
The previous error happens when design assign an integer to an enum
type. This happens in an auto-generated otp_ctrl_part_pkg.

Signed-off-by: Cindy Chen <399ad771a111eac8923348b1e2af093034e5d4f1@opentitan.org>
