Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21585 Discussions

Writing a verilog code for Some signals CLK, CKE, RESET

Altera_Forum
Honored Contributor II
1,679 Views

Hi, can any1 help me how to write a verilog code for some signals like CLK, CKE, RESET. 

Actually i have written the code but iam having some conflictions with that. Iam attaching my code here please check this and suggest me wer to modify according to the information which i have attached. 

 

Here a stable clock of 500 MHz is using  

 

`timescale 1ns / 1ps module DDR3_Rst( clk, Reset, cke ); input clk; output Reset; output cke; reg Reset_i; reg cke_i; always@(clk) begin if(clk) begin# 0 Reset_i <= 1'b0;# 44 cke_i <= 1'b1; end else if(!clk) begin# 200655 Reset_i <= 1'b1; # 189985 cke_i <= 1'b0;# 310162 cke_i <= 1'b1; end end assign Reset = Reset_i; assign cke = cke_i; endmodule
0 Kudos
0 Replies
Reply