EmbDev.net

Forum: FPGA, VHDL & Verilog verilog Voltage Control Oscillator


von Rock B. (rocko445)


Attached files:

Rate this post
useful
not useful
Hello, from the  theory in the attached photo i have implemented  the 
formula  in the VERILOG code bellow, the syntax check was fine but when 
i tried in XILINX  to force values  the simulation gives me an empty 
screen and says:

# run 1.00us
INFO: Simulator is stopped.

where did i go wrong in entering the coefficients?
Thanks
1
module vvco(fo,vctl,kv);
2
input fo,vctl,kv;
3
4
reg vco_b=1'b0;
5
reg fo_b=3'b0;
6
reg vctl_b=3'b0;
7
reg kv_b=3'b0;
8
9
10
always #((1/fo_b-vctl_b*kv_b/fo_b^2)/2) vco_b<=~vco_b;
11
12
endmodule

: Edited by User
von Duke Scarring (Guest)


Rate this post
useful
not useful
Rock B. wrote:
> i tried in XILINX  to force values
I never worked with forced values to simulate a design.
I usually write testbench to check my code and apply different stimuli.

Duke

von Varun (Guest)


Rate this post
useful
not useful
I am also facing the same problem.

von Klakx (Guest)


Rate this post
useful
not useful
maybe it is not supported by your simulator, as noted in the last 
paragraph of your document

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.