Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Voltage-Controlled Delay in VerilogA using absdelay()

Status
Not open for further replies.

melkord

Full Member level 3
Full Member level 3
Joined
May 18, 2018
Messages
151
Helped
0
Reputation
0
Reaction score
1
Trophy points
18
Activity points
1,772
I want to model Voltage-Controlled Delay in VerilogA using absdelay(target_waveform, delay_control).
But somehow only the first value of delay_control that is used.
In other words, the delay is there but with fixed value.
Did I miss anything?

1678204121455.png

Code:
// VerilogA for Regulator, voltage_controlled_delay, veriloga

`include "constants.vams"
`include "disciplines.vams"
//`timescale 1ns / 1ps

module voltage_controlled_delay(CONTROL_IN, IN, OUT, ENABLE, VDDA_P1V2, GNDA, VSSA_N1V2);
input CONTROL_IN; electrical CONTROL_IN;
input IN; electrical IN;
output OUT; electrical OUT;

input ENABLE; electrical ENABLE;
input VDDA_P1V2; electrical VDDA_P1V2;
input GNDA; electrical GNDA;
input VSSA_N1V2; electrical VSSA_N1V2;

//integer time_delay;
//parameter real time_delay = 1.0e-9 from (0:inf);
//real time_delay = 7.0e-9;
real v;
real time_delay;   // must be positive


analog
begin
    time_delay = V(CONTROL_IN)*3e-7;
    V(OUT) <+ absdelay(V(IN), time_delay);
end


endmodule


Other posts like here and here showed that it should work.
--- Updated ---

Solved.
It needs the third argument, i.e., max delay value.

RTFM for me.
1678205679603.png

--- Updated ---

1678205728536.png
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top