endmodule
+module GP_CLKBUF(input wire IN, output wire OUT);
+ assign OUT = IN;
+endmodule
+
module GP_COUNT8(input CLK, input wire RST, output reg OUT);
parameter RESET_MODE = "RISING";
endmodule
-module GP_DCMP(input[7:0] INP, input[7:0] INN, input CLK, input PWRDN);
+module GP_DCMP(input[7:0] INP, input[7:0] INN, input CLK, input PWRDN, output reg OUTP, output reg OUTN);
+ //TODO finish implementing
endmodule
module GP_DCMPREF(output reg[7:0]OUT);
always @(*) begin
case(SEL)
- 2'b00: begin
+ 2'd00: begin
OUTA <= IN0;
OUTB <= IN3;
end
- 2'b01: begin
+ 2'd01: begin
OUTA <= IN1;
OUTB <= IN2;
end
- 2'b02: begin
+ 2'd02: begin
OUTA <= IN2;
OUTB <= IN1;
end
- 2'b03: begin
+ 2'd03: begin
OUTA <= IN3;
OUTB <= IN0;
end