assign OUT = IN;
endmodule
-module GP_COUNT8(input CLK, input wire RST, output reg OUT);
+module GP_COUNT8(input CLK, input wire RST, output reg OUT, output reg[7:0] POUT);
parameter RESET_MODE = "RISING";
//Combinatorially output whenever we wrap low
always @(*) begin
OUT <= (count == 8'h0);
+ OUT <= count;
end
//POR or SYSRST reset value is COUNT_TO. Datasheet is unclear but conversations w/ Silego confirm.
endmodule
module GP_COUNT8_ADV(input CLK, input RST, output reg OUT,
- input UP, input KEEP);
+ input UP, input KEEP, output reg[7:0] POUT);
parameter RESET_MODE = "RISING";
parameter RESET_VALUE = "ZERO";
endmodule
module GP_COUNT14_ADV(input CLK, input RST, output reg OUT,
- input UP, input KEEP);
+ input UP, input KEEP, output reg[7:0] POUT);
parameter RESET_MODE = "RISING";
parameter RESET_VALUE = "ZERO";