我有相同的采样事件@sim两个事件: unit monitor_a_u is {
sample_a : interface_port of tlm_analysis of data_item_s is instance;
data_a : simple_port of uint(bits:32) is instance;
keep data_a.hdl_path()
我正在Specman E中开发一些RTL检查器,并使用类型转换来处理命令行参数。 的代码如下, if(get_symbol("SWITCH").as_a(uint) > 10) {
do something;
};
命令行有一个选项SWITCH = 10。问题是如果没有错误的开关,则测试失败。 *** Error: Looking for a number but found
我有一个单位my_unit与布尔字段my_bool。我需要在my_bool == FALSE时向my_unit添加特定的逻辑。可能吗? unit my_unit {
my_bool : bool;
when my_bool {
// Works fine, I can add logic to my_unit
};
when not my_b
如果我有一个以'__'开头的字段,那么deep_compare将忽略此字段。为什么? 〔实施例: struct example {
a : uint;
__b : uint;
};
extend sys {
var item_1 : example = new;
var item_2 : example = new;
item_1.a =