Can a logic be implemented for the code written below:
module test( clk1,
clk2,
clk3,
a,
b,
c,
d);
input clk1;
input clk2;
input clk3;
input a;
input b;
input c;
output d;
always @(posedge clk1 or posedge clk2 or posedge clk3)
begin
if (clk1)
d <= a;
else if (clk2)
d <= b;
else if (clk3)
d <= c;
end
endmodule
What I really want to do in hardware is to change the value of 'd' only when either of the three clock edges(clk1,clk2,clk3) happen. Is it possible to create such a logic on hardware ?
Regards,
Kapil