The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Jul 17th, 2024, 1:25am
Pages: 1
Send Topic Print
passing parameters in VHDL-AMS block (Read 1657 times)
Pavel
Senior Member
****
Offline



Posts: 174
Lausanne/Switzerland
passing parameters in VHDL-AMS block
Jul 09th, 2008, 4:15am
 
Hello,

How to pass timing parameter in VHDL-AMS block.
In my schema I use Clock generator and want to have a possibility
to rapidly change its frequency from schemati editor.

But VHDL time constants style "1 ms", "105 us", etc.
aren't properly interpreted by elaborator.

Elaboration pass and simulation runs, but clock period is some accidental value (very large by the way).

For example, clock period of following instatiation of clock oscillator is about 1.682 sec.

Help, please.

Code:
`include "disciplines.vams"
`include "constants.vams"

module CLOCK_GEN_test (  );

CLOCK_GEN #(.tclk("2 us")) (*
integer library_binding
 = "LIB1";
 *)
U_DUT ( .clk( clk ) );

endmodule 

Back to top
 
 
View Profile   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.