我有相同的採樣事件@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的新手,並試圖通過閱讀現有的代碼來學習它。 我碰到下面的函數,並不能找到的Specman文檔中解釋... VerifyNode(end_point:string, derived_value:uint) is also {
if ('(end_point)' === ~derived_value) {
message("Error1");
}
我想建立一個新的結構,從其他多個結構繼承,這樣的事情: 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倍數結構繼承? 謝謝你的幫助
我正在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
我在寫一個.sublime-syntax for the Specman language,需要多行方法聲明的幫助。 使用關鍵字is來聲明方法,該方法在方法聲明的大部分其他部分之後。 E.g. fwd_init() @driver.clock is {
或 add(x : uint, y : uint) is also {
或 private do_stuff(field : my_typ