Skip to content

Commit

Permalink
improved iserdes2, but still is not correct
Browse files Browse the repository at this point in the history
  • Loading branch information
dirjud committed Sep 17, 2012
1 parent 5252627 commit f44c52e
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions ISERDES2.v
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,23 @@ module ISERDES2 (
assign DFB = 0;
assign FABRICOUT = 0;
assign INCDEC = 0;
assign Q1 = 0;
assign Q2 = 0;
assign Q3 = 0;
assign Q4 = 0;
// assign Q1 = 0;
// assign Q2 = 0;
// assign Q3 = 0;
// assign Q4 = 0;
assign SHIFTOUT = 0;
assign VALID = 0;

reg [3:0] srA;
wire Din = (SERDES_MODE == "SLAVE") ? SHIFTIN : D;

always @(posedge CLK0 or posedge CLK1) begin
srA <= { Din, srA[2:0] };
end
assign Q1 = srA[0];
assign Q2 = srA[1];
assign Q3 = srA[2];
assign Q4 = srA[3];


endmodule // ISERDES2

0 comments on commit f44c52e

Please sign in to comment.