8000 Add ability to parameterize transient end time · Issue #59 · Xyce/Xyce · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add ability to parameterize transient end time #59

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

Open
olde-fortran opened this issue Apr 4, 2022 · 3 comments
Open

Add ability to parameterize transient end time #59

olde-fortran opened this issue Apr 4, 2022 · 3 comments

Comments

@olde-fortran
Copy link
.param endtime = '34 * clk_period'
.tran 50p 'endtime'

This is really handy when I want to parameterize the clock period, but make sure that, say, 32 clock cycles are captured.

ng-spice allows this. Xyce gives me: Netlist error: Cannot convert '{endtime}' to double for expression TSTOP

Right now I either have to adjust the end time manually, OR if the measurement isn't affected I can plug in a large enough value to satisfy all the clk_period values that I'm testing, but the simulations take longer. (I'm sweeping the clk_period by launching Xyce multiple times)

@Karlsefni2012
Copy link
Member

I think this is something we can add to Xyce. I'll add it to our internal issue tracker.

@Karlsefni2012
Copy link
Member

I wanted to mention that this issue got fixed on the Xyce development branch a while ago. I meant to give an update here, but forgot. It was (mostly) fixed in this commit:

3d521da

@yakimetsd
Copy link

As this issue is still open, I would like to propose another approach to the end time definition: once all the defined measurements are completed, transient simulation may be optionally automatically stopped. I think it is called "autostop" in spectre and ngspice. What do you think of such a proposal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0