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.

[SOLVED] does verilog have a main?

Status
Not open for further replies.

kenleigh

Member level 1
Joined
Jan 3, 2011
Messages
36
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,525
Where the program execution start?

My top level module looks like this?

Code:
module test( CLK_INP1, CLK_OUTP1, RST, LOCD);
 
  input CLK_INP1, RST;
  output CLK_OUTP1, LOCD;
 
// INST_TAG
  clk_wiz_v1_5 camclk
   (// Clock in ports
    .CLK_IN1            (CLK_INP1),    // IN
    // Clock out ports
    .CLK_OUT1           (CLK_OUTP1),    // OUT
    // Status and control signals
    .RESET              (RST),        // IN
    .LOCKED             (LOCD));      // OUT
// INST_TAG_END

endmodule

How do I make this run?
Will the simulator or synthesis tool automatically configure this as my starting point?
Do I have to instantiate this module?
 

What is this actually A IP core Code.... or the code that you have written....
If i m not wrong this is the IP code..
 

What is this actually A IP core Code.... or the code that you have written....
If i m not wrong this is the IP code..

The test module instantiates the IP core generated by Core Generator, it uses a PLL_BASE primitive, I haven't pasted that code here for legibility.
 

Well if that is the case you can directly simulate this....
Assign pins (Spartan 100MHz clk to CLKIP and CLK I/O capable pin to ClKOUT ) and synthesize it.
 

Well if that is the case you can directly simulate this....
Assign pins (Spartan 100MHz clk to CLKIP and CLK I/O capable pin to ClKOUT ) and synthesize it.

And how do I do that, what syntax do I use?
Also what is the execution start point in Verilog?
 

just set it as a top module.. i've running on Xilinx ISE.
 

There is no program execution in HDL. It is descibing hardware where all parts run in parallel.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top