Reputation: 71
module input2 (output [3:0] out1, out2, input [3:0] in1, input clk);
clocking c_clk @(posedge clk);
output #2ns out1, temp = in1[1:0];
input in1;
endclocking
clocking d_clk @(posedge clk);
output out2;
input #2ns svar = in1[3:2];
endclocking
assign out1 = c_clk.temp ^ 4'b1101;
assign out2 = d_clk.svar + in1;
endmodule
My tool is giving an error:
Reading of a clocking block output (c_clk.temp ) is not allowed.
I have not found any standard for this statement. How can I solve this error?
Upvotes: 0
Views: 1056