Hii,
I've no experience in verilog-A so, i hope that you can help me
I want to realize a box, which has a constant phase shift across the frequency.
An input has a AC magnitude of 1V and AC phase of 0 degree.
At the outputs, I want 2 signals:
- one with AC magnitude= input magnitude and a phase=phase of input
- other with AC magnitude= input magnitude and a phase=phase of input+90degrees
I'm doing something like that, but doesn work.
Code Verilog - [expand] |
1
2
3
4
5
6
7
8
9
10
| module phase_splitter(single, lag, lead);
inout single, lag, lead;
electrical single, lag, lead;
ground gnd;
parameter real phase_shift = 0 from (0:360);
isource #(.ac(single),.acphase(phase_shift/2)) is1(gnd, lead);
isource #(.ac(single),.acphase(-phase_shift/2)) is2(gnd, lag);
endmodule // phase-splitter |
What's wrong ?
Thanks in advance