The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Design Languages >> Verilog-AMS >> How do I generate the following voltage profile? https://designers-guide.org/forum/YaBB.pl?num=1453259912 Message started by Rosh on Jan 19th, 2016, 7:18pm |
Title: How do I generate the following voltage profile? Post by Rosh on Jan 19th, 2016, 7:18pm Hi everyone, I am trying to generate the following voltage profile. Picture attached. http://imgur.com/141W8kp The specifications are : Vhigh: Voltage 1 Tr: Rise time Vlow: Voltage 2 Time: Time after which Vhigh falls to Vlow Tf: Fall time Code:
However, I get an error saying I cannot include a transition operator inside a conditional statement. So how do I tell the compile to drop the voltage after a time? |
Title: Re: How do I generate the following voltage profile? Post by Geoffrey_Coram on Jan 20th, 2016, 8:05am I think you are missing some basic understanding of how the Verilog-A contribution operator works. The code you posted would set the voltage on "n1" to vout_high for all time *except* for the timepoint exactly at droop_time. I think the code below will work better. Code:
However, I get an error saying I cannot include a transition operator inside a conditional statement. So how do I tell the compile to drop the voltage after a time?[/quote] |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |