Hi everyone,
I've been trying to implement the following with Verilog A; however, I couldn't make it work thus far. What I wanna do is basically generate a rectangular pulse with more than 2 different amplitudes. For example, the amplitudes I want my pulse to have are 5, 3, 1, and -1 (in voltage).
During each unit interval, which's let's say 50 ns, I want my pulse to be equal to one of the abovewritten values.
I expect to code something like the following:
Code:@(above($abstime - unit_interval) x = 5;
@(above($abstime - 2*unit_interval) x = 3;
@(above($abstime - 3*unit_interval) x = 1;
@(above($abstime - 4*unit_interval) x = -1;
pulse <+ transition (x);
However, the second line overwrites the first line, the third line overwrites the first two lines, and so on and so forth.
Could you please help me as to how I can code such a pulse in Verilog A?
Thanks in advance!