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.

Not getting right output from DCM

Status
Not open for further replies.

Tajwar

Newbie level 6
Joined
May 19, 2013
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,404
Can any1 help me . y im not getting shifted clock at output?


Untitled.png

here is the code for it
module test(input clk, rst, inc,ref_clk, enable, output reg s_clk1, s_clk2, output done, clk_valid
);


wire temp1, temp2;

always@(posedge ref_clk)
begin
if(rst)
begin
s_clk1<=0;
s_clk2<=0;
end
else
begin
s_clk1<=temp1;
s_clk2<=temp2;
end
end



dcm1 instance_name
(// Clock in ports
.CLK_IN1 (clk), // IN
// Clock out ports
.CLK_OUT1 (temp1), // OUT
.CLK_OUT2 (temp2), // OUT
// Dynamic phase shift ports
.PSCLK (ref_clk), // IN
.PSEN (enable), // IN
.PSINCDEC (inc), // IN
.PSDONE (done), // OUT
// Status and control signals
.RESET (rst), // IN
.CLK_VALID (clk_valid)); // OUT
// INST_TAG_END ------ End INSTANTIATION Template ---------


endmodule
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top