-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect $mfactor scaling for potential noise contributions #137
Comments
See also #107 |
res_v.zip Whereas after including the update from commit 477e71c, I get the same value for both (res_v.out.good): |
psphv v.1.0.6 using a macro for node collapsing and noise contribution, line 3813:
The macro is as follows (general_v1_0_4.va): define collapsibleR(b_r, r_t, r_tNom, tdevK, rThreshold, m, strict, sw_noise, P_K, noiseName) If I remove the commit 477e71c everything works fine. But with this patch "OpenVAF encountered a problem and has crashed!" |
Arpad reported what is probably the same problem, in his case compiling a version of BSIM4. When I tried it, I got some message I think from LLVM about "PHI nodes not grouped at the top of the basic block" |
I can confirm that the Cogenda model gives memory access error with commented out XYCE macro. I removed the false XYCE_VAMS branch what is in the end only to have current contribution. So that means that commit 477e71c has problems with voltage contribution if in the code is node collapsing too:
Noise comes later with current contribution:
The bsim4 code in my repo works with ngspice and Xyce. |
I guess this one is closed now. I hear incorrect noise scaling in case of factor*white_noise(...) is still an issue. Have some ideas, will report when I find a solution. No time now... |
Sorry @arpadbuermen can't confirm: I am under linux Ubuntu 22.04, llvm16.0.6. sitting in you /branches/osdi_0.3, can see your latest commit 15db2df from yesterday. No problems with "cargo build --release --bin openvaf". |
If one has
V(out) <+ white_noise(1.0, "thermal");
the Verilog-AMS LRM says (section 6.3.6 in VAMS-LRM-2023.pdf):
However, in openvaf/sim_back/src/dae/builder.rs in fn add_source_equation (for handling voltage-source equations), we have
where F_ONE is the mfactor argument to add_noise.
The text was updated successfully, but these errors were encountered: