Hi Dave,
Sorry for not providing complete code. I tried to create 2 modules. Hope this will help you to understand my question.
module scene_one (input clock,input a, input b, input c, input d, output reg o, output reg o_d);
always @ (posedge clock) begin
o = ~((a & b) | (c^d));
o_d <= o;
end
endmodule
module scene_two (input clock,input a, input b, input c, input d, output reg o, output reg o_d);
begin
o = ~((a & b) | (c^d));
o_d <= o;
always @ (posedge clock);
end
endmodule
Can you explain how each module samples the data and provides the output?