我有一个序列:
sequence bus_sequence using item=bus_item, created_driver=bus_sequence_driver;
当我尝试使用下一个代码驱动一个项目时:
extend bus_sequence {
body() @driver.clock is only {
do item;
};
};
我得到一个编译错误'bus_sequence' does not have a field 'item'
。但是当我将字段项添加到bus_sequence
:
extend bus_sequence {
!item : bus_item;
body() @driver.clock is only {
do item;
};
};
Field 'item' was previously defined
我在语句行中收到一个错误sequence
...如何处理预定义item
字段?谢谢您的帮助