- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I am using quartus 2 9.1 sp2. I want to run an ALTPLL considering only one input (Clk) and two output ( c0 and locked output). I have generated the vhdl file for modelsim. I simulate it with 50MHz clock and i see no output on both the output signals. Please see the files below for .bdf and modelsim screenshot. Please help me how to see the output and what changes i need to make. Thank you AshLink Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
do you think the input-clock is 50MHz?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Ash,
Just to check with you if the pll_locked got asserted? Can you try to apply a reset to the PLL?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yea that's what i have designed in Mega wizard plug in manager. I have chosen 50MHz for the input clock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi akira,
yea that's what i have designed in Mega wizard plug in manager. I have chosen 50MHz for the input clock Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi tiny007,
I added a reset as per what you said. still the output remains the same Undefined. Is there somewhere i am going wrong?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi amod,
Two things: you only show 5-6 ns on your waveforms, the PLL models, like real PLLs, take some time to initialize and sync before you get an output. 6ns is not nearly enough time. I forget how long this takes in simulation (I think it's a lot less than for the real devices) but give it a us or so before you give up. Second, it looks like the clock you're feeding it is NOT 50MHz, but 10GHz! The period shown is 0.1ns, check your clock generation. -Fred- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
FredH is right. Where is your testbench? Post it here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi krasner,
Could you please explain me how to generate testbench ?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you getting any warning when you run modelsim? Perhaps a library is not set up. See this thread: http://www.alteraforum.com/forum/showthread.php?t=21634
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A testbench is simply a verilog or vhdl script where you set up you input signals to the system that you are simulating. Usually, you would write one by hand.
How did you set up the input clock signal to your pll system?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yea there is and its Warning: (vsim-3473) Component instance "b2v_inst : altpll0" is not bound.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok my input clock signal is the input pin clk1 in the bdf file 50MHz. if i look into ppl1.vhd file. i dont have altera_mf header file. Can this be the problem ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK this means you are missing the pll library. Make sure you are including all the altera libraries in your modelsim environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok i found out that. Is there a way do that ? Can you direct me here please? I need to get this work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yup. you have to include the altera_mf library
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It should me under C:/altera/modelsim_ase/altera/<vhdl or verilog>/altera_mf
You have to provide that path- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In your vhdl file try including LIBRARY altera_mf;
USE altera_mf.all;
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page