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.

help needed on clock generation

Status
Not open for further replies.

Anil Rana

Junior Member level 1
Joined
Jun 24, 2005
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,478
Hi all
Can anyone suggets how to generate a clock which will give don't care 'X' on specific time.I know how to generate it but Please suggest a compact way
Thanks in advance
 

Are you referring to a simulated clock, such as a Verilog or VHDL test bench?
 

echo47 wrote

Are you referring to a simulated clock, such as a Verilog or VHDL test bench?

yes echo47 .This is used as a requirement for testbench.
 

I can't think of anything very compact.
Here's a Verilog module that outputs a clock of period 10 that becomes 'x from time 23 to 39:
Code:
module top (clk);
  reg     toggle=0, gate=0;
  output  clk;

  always  #5 toggle = ~toggle;
  initial #23 gate = 1;
  initial #39 gate = 0;

  assign clk = gate ? 'x : toggle;
endmodule
Anyone know a more compact method?
 

you can use force command in simulation tool such as modelsim
 

Thanks echo47
I think i have to consider both the methods before implementing
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top