K
konstantink
Guest
Hi, everyone!
Please, somebody explain one thing. Regarding such code:
module top ( clk, reset, in_a, in_b, out );
input clk, reset, in_a, in_b;
output out;
reg out;
always @( posedge clk or negedge reset )
if ( reset == 1'b0 )
out <= 1'b0;
else
out <= ( clk ) ? in_a : in_b;
endmodule
The question is: is the output of the multiplexer regarded as clock
line and why?
And can you tell me when the clock propagation stops?
Thanks a lot!!!!
Please, somebody explain one thing. Regarding such code:
module top ( clk, reset, in_a, in_b, out );
input clk, reset, in_a, in_b;
output out;
reg out;
always @( posedge clk or negedge reset )
if ( reset == 1'b0 )
out <= 1'b0;
else
out <= ( clk ) ? in_a : in_b;
endmodule
The question is: is the output of the multiplexer regarded as clock
line and why?
And can you tell me when the clock propagation stops?
Thanks a lot!!!!