mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
Make &A<> use the same thread access syntax as &PV<>.
This patch makes &A<> use the same thread access syntax as &PV<> this is two unsigned numbers separated by a space instead of a single number.
This commit is contained in:
+3
-11
@@ -1071,7 +1071,7 @@ vpiHandle vpip_make_vthr_A(char*label, unsigned addr)
|
||||
return &(obj->base);
|
||||
}
|
||||
|
||||
vpiHandle vpip_make_vthr_A(char*label, char*symbol)
|
||||
vpiHandle vpip_make_vthr_A(char*label, unsigned tbase, unsigned twid)
|
||||
{
|
||||
struct __vpiArrayVthrA*obj = (struct __vpiArrayVthrA*)
|
||||
malloc(sizeof (struct __vpiArrayVthrA));
|
||||
@@ -1082,16 +1082,8 @@ vpiHandle vpip_make_vthr_A(char*label, char*symbol)
|
||||
assert(obj->array);
|
||||
free(label);
|
||||
|
||||
unsigned base;
|
||||
unsigned wid;
|
||||
char sflag;
|
||||
int rc = sscanf(symbol, "T<%u,%u,%c>", &base, &wid, &sflag);
|
||||
assert(rc == 3);
|
||||
free(symbol);
|
||||
|
||||
obj->address = base;
|
||||
obj->wid = wid;
|
||||
assert(sflag == 'u');
|
||||
obj->address = tbase;
|
||||
obj->wid = twid;
|
||||
|
||||
return &(obj->base);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user