The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw...
分类:
其他好文 时间:
2015-07-10 15:04:57
阅读次数:
111
1.某些协议中,driver 要每隔一段时间向DUT 发送类似心跳的信号。心跳包与普通包没有本质区别也是普通的transaction。两种选择:
1)在driver 中产生,发送:
2)sequence 实现,无效循环:
上述代码最好不要使用绝对延时,而使用virtual sequence。应该如下:
心跳包优先级最高,所以grab。
2.使用virtua...
分类:
其他好文 时间:
2015-07-10 11:33:37
阅读次数:
149
Count and Say
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one 1" or 11.
11 is read off as "two 1s" or 21.
21 i...
分类:
其他好文 时间:
2015-07-09 22:45:31
阅读次数:
140
1.try_next_item 更加接近实际情况,用的更多:
两个有效的req 之间,总会打印item is null,说明driver 没有得到transaction:
2.ip_sequence 和my_sequence 没有任何延时,my_driver 理应一直得到有效的req,而不该出现得不到的情况,why?
时间槽的概念。
问题出在driver 中的try...
分类:
其他好文 时间:
2015-07-09 18:12:08
阅读次数:
342
1.假如又多一层layer sequence:
1)需要2个时间槽。
2)需要在增加一个umv_wait_for_nba_region,不好。
2.问题的关键是item_done 和try_next_item 在同一时刻被调用,导致了时间槽的竞争。如果能错开,这个问题就不是问题:...
分类:
其他好文 时间:
2015-07-09 17:57:23
阅读次数:
481
1.产生ip_transaction 的sequence 如下:
2.相应的sequencer 如下:
3.这个sequencer 要在my_agent 例化,此时,my_agent 中有两个sequencer:
4.要使用layer sequence,最关键是如何将ip_transaction 交给产生my_transaction 的sequ...
分类:
其他好文 时间:
2015-07-09 16:19:57
阅读次数:
155
1.之前的my_transaction 是mac 包,其中的pload 是ip 包,如下:
2.现在要求mac 中指定ip 地址等数据,需要约束mac 包跑咯爱的值:
要对ip_transaction 约束,需自己计算,容易错。
3.可简化:
可重用性不高。
4.加入crc错误,如下:
、
只变了一行。
5.给DUT IP...
分类:
其他好文 时间:
2015-07-09 14:43:13
阅读次数:
200
这道题纯考数学,懒得打字解释了 方法如下from math import factorial class Solution: # @param {integer} n # @param {integer} k # @return {string} def getPermuta...
分类:
其他好文 时间:
2015-07-09 06:16:58
阅读次数:
113
Longest Consecutive Sequence
分类:
其他好文 时间:
2015-07-08 22:15:54
阅读次数:
137