You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
sv: assembly misses nonblocking package-variable writes of runtime processes #1969
check_package_variable_drivers in celox-frontend-core/src/symbolic/assembly.rs finds the package variables a runtime process writes by scanning its kernel for Store/Commit instructions. A nonblocking assignment in a process does not appear there as a store to the package variable, so assembly does not see it.
In a mixed-language design, where assembly is the only cross-instance check of package-variable drivers, two instances of an SV module whose always_ff runs as a process (for example because it has a host request) and nonblockingly writes one package variable are accepted, although always_ff must be the only writer of its variables (IEEE 1800-2023 9.2.2.4):
packagep; logic [7:0] shared; endpackagemoduleW(inputlogic clk, inputlogic [7:0] a);
always_ff@(posedge clk) beginp::shared <= a; $fwrite(1, "host"); endendmodule// a Veryl top instantiating W twice builds without an error
The blocking form (p::shared = a) is rejected since #1872. The same blind spot existed before #1872, which only compared stores.
Expected
Collect the nonblocking writes of process kernels as writes of their targets in the assembly driver check.
Activity