• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Clock Generation in NC-VHDL & NC-VERILOG

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 2279
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Clock Generation in NC-VHDL & NC-VERILOG

murali418
murali418 over 16 years ago

Hi All,

We have clock generation block in one module. The actual code in VHDL is like this


VHDL  :::::::::

 Clk_1M_s_p : process
  begin
    Clk_1M_s <= '0';
    wait for 0.5 us ;
    Clk_1M_s <= '1';
    wait for 0.5 us ;
  end process Clk_1M_s_p;
 

VERILOG ::::::::::::::::

timescale 1fs/1fs

        always  begin : Clk_1M_s_p
                Clk_1M_s <= 'b0;
                #(0.5 * 1000_000_000) ; // MicroSeconds
                Clk_1M_s <=  1'b1;
                #(0.5 * 1000_000_000) ; // MicroSeconds
        end // Clk_1M_s_p;

 

When we have compared both the clocks in the Waveform in Simvison we are getting very minute difference which we cannot expand

through zoom options. When expanded through expancd-at time option. we found there is difference in event scheduling.

 Because of this generation, few events which depends on this clock is delayed and we are getting different results in VERILOG when compared to VHDL.

Thanks in Advance

Murali

 

 

  • VHDL-VERILOG.JPG
  • View
  • Hide
  • Cancel
  • StephenH
    StephenH over 16 years ago
    This is normal, and is due to the way event-based simulation works, especially across HDL language boundaries.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • murali418
    murali418 over 16 years ago

    Hi Stephen, Thanks for the reply.

    Actually, because of the scheduling of the event we are getting some extra transactions in Verilog.

    Is there a way to sort out this or else we have  to live with this.

     

     

    Thanks in Advance

    Murali Krishna.Y

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information