The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 10:30am
Pages: 1
Send Topic Print
Problems with verilog AMS code from designer's guide website (Read 10644 times)
love_analog
Senior Member
****
Offline



Posts: 101

Problems with verilog AMS code from designer's guide website
Jul 14th, 2010, 3:19pm
 
Hi I was trying to compile the PLL code downloaded from
http://www.designers-guide.org/VerilogAMS/

I get compilation errors with the following msg. Can anyone confirm that the code is broken & what needs to be done to fix it.

ncvlog: *E,FNDKWD (./my_rtl/pfd.v,14|34): A SystemVerilog keyword was found where an i

dentifier was expected.

module pfd (qinc, qdec, active, ref, reset);

                                         |

ncvlog: *E,EXPRCC (./my_rtl/pfd.v,14|42): expecting a right brace ('}') [13.3.1(IEEE)]

.

   input reset, active, ref;

                          |

ncvlog: *E,FNDKWD (./my_rtl/pfd.v,16|27): A SystemVerilog keyword was found where an i

dentifier was expected.

   always @(posedge ref or posedge fr_rst) begin

                      |

ncvlog: *E,ILLPRI (./my_rtl/pfd.v,27|23): illegal expression primary [4.2(IEEE)].

   always @(posedge ref or posedge fr_rst) begin

                      |

ncvlog: *E,CBYREF (./my_rtl/pfd.v,27|23): The 'ref' formal argument direction is only

allowed within tasks and functions.

   always @(posedge ref or posedge fr_rst) begin

                         |

ncvlog: *E,FNDKWD (./my_rtl/pfd.v,27|26): A Verilog keyword was found where an identif

ier was expected.

   always @(posedge ref or posedge fr_rst) begin

                                         |

ncvlog: *E,EXPSMC (./my_rtl/pfd.v,27|42): expecting a semicolon (';') [12.3.2(IEEE)].

           if (fr_rst) q1 <= 0; else q1 <= 1;

                     |

ncvlog: *E,EXPSMC (./my_rtl/pfd.v,28|15): expecting a semicolon (';') [12.3.2(IEEE)].

           if (fr_rst) q1 <= 0; else q1 <= 1;

                           |

ncvlog: *E,EXPSMC (./my_rtl/pfd.v,28|21): expecting a semicolon (';') [12.3.2(IEEE)].

           if (fr_rst) q1 <= 0; else q1 <= 1;
Back to top
 
 

loveanalog.blogspot.com
The Power of Analog
View Profile   IP Logged
Ken Kundert
Global Moderator
*****
Offline



Posts: 2386
Silicon Valley
Re: Problems with verilog AMS code from designer's guide website
Reply #1 - Jul 14th, 2010, 4:49pm
 
Apparently 'reset' is a keyword in system-verilog. You should change 'reset' to something else, such as 'rst'.

-Ken
Back to top
 
 
View Profile WWW   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.