📄 assert_no_underflow_logic.sv
字号:
// Accellera Standard V1.0 Open Verification Library (OVL).
// Accellera Copyright (c) 2005. All rights reserved.
parameter assert_name = "ASSERT_NO_UNDERFLOW";
`include "std_ovl_task.h"
`ifdef OVL_INIT_MSG
initial
ovl_init_msg_t; // Call the User Defined Init Message Routine
`endif
`ifdef OVL_ASSERT_ON
property ASSERT_NO_UNDERFLOW_P;
@(posedge clk)
disable iff (`OVL_RESET_SIGNAL != 1'b1)
(test_expr == min) |=> ((test_expr < max) && (test_expr >= min));
endproperty
generate
case (property_type)
`OVL_ASSERT : A_ASSERT_NO_UNDERFLOW_P:
assert property (ASSERT_NO_UNDERFLOW_P)
else ovl_error_t("");
`OVL_ASSUME : M_ASSERT_NO_UNDERFLOW_P:
assume property (ASSERT_NO_UNDERFLOW_P);
default : ovl_error_t("");
endcase
endgenerate
`endif // OVL_ASSERT_ON
`ifdef OVL_COVER_ON
generate
if (coverage_level != `OVL_COVER_NONE) begin
cover_test_expr_change:
cover property (@(posedge clk) ( (`OVL_RESET_SIGNAL != 1'b0) &&
!$stable(test_expr) ))
ovl_cover_t("test_expr_change covered");
cover_test_expr_at_min:
cover property (@(posedge clk) ( (`OVL_RESET_SIGNAL != 1'b0) &&
$rose(test_expr == min) ))
ovl_cover_t("test_expr_at_min covered");
cover_test_expr_at_max:
cover property (@(posedge clk) ( (`OVL_RESET_SIGNAL != 1'b0) &&
$rose(test_expr == max) ))
ovl_cover_t("test_expr_at_max covered");
end
endgenerate
`endif // OVL_COVER_ON
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -