增加代码,1.仿真了最多202个从站,功能正常;2.测试了读写\广播等操作
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from pyutils import *
|
||||
|
||||
|
||||
|
||||
global_dev_num = 4
|
||||
|
||||
def bringup():
|
||||
gen_file_def = "sys_bringup"
|
||||
@@ -296,7 +296,16 @@ def __gen_slv_dev_predef(num):
|
||||
genPkt.gen("./generated/shin/%s.vh"%(gen_file_def, ), 1)
|
||||
|
||||
|
||||
def get_slv_dev_num():
|
||||
global global_dev_num
|
||||
|
||||
return global_dev_num
|
||||
|
||||
def gen_slv_dev_num(num):
|
||||
global global_dev_num
|
||||
|
||||
global_dev_num = num
|
||||
|
||||
__gen_slv_dev_predef(num)
|
||||
|
||||
genPkt = GenPkt()
|
||||
|
||||
Reference in New Issue
Block a user