Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

My FPGA is not detecting the XOR edge..

I have this verilog code, which depends on either the posedge of the clock or the XOR of my data with its delayed version.

assign x1 = data;
assign x2 = ~x1;
assign x3 = ~x2;
assign XORData = x3 ^ data; //x3 XOR data
always @(posedge clock or posedge XORData) begin
.
.
.
.
end

my FPGA is not responding to the XOR results. I feel the edge is not occuring or its occuring very very fastly, eventhough simulation is OK.

Whats the problem here?

How do u suggest I write a replacement code?

13 Replies