L
Luiz Gustavo
Guest
What this instructions means?
reg [2:0] SCKr;
always @(posedge clk) SCKr <= {SCKr[1:0], SCK};
wire SCK_risingedge = (SCKr[2:1]==2'b01); // I don't understand this
part of wire.....
wire SCK_fallingedge = (SCKr[2:1]==2'b10);
// how it's possible to associate two bits of a register to a wire???
reg [2:0] SCKr;
always @(posedge clk) SCKr <= {SCKr[1:0], SCK};
wire SCK_risingedge = (SCKr[2:1]==2'b01); // I don't understand this
part of wire.....
wire SCK_fallingedge = (SCKr[2:1]==2'b10);
// how it's possible to associate two bits of a register to a wire???