我有相同的採樣事件@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()
我想建立一個新的結構,從其他多個結構繼承,這樣的事情: struct new_struct like struct_a, struct_b, struct_c is {
// The new_struct supposed to have all the fields of struct a/b/c
};
有沒有辦法從E倍數結構繼承? 謝謝你的幫助
我有一個單位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