Fixed undeclared "count" in GP_COUNT8_ADV

This commit is contained in:
Andrew Zonenberg 2017-08-07 20:21:55 -07:00
parent db20e3f1c2
commit ac75524f69
1 changed files with 2 additions and 0 deletions

View File

@ -219,6 +219,8 @@ module GP_COUNT8_ADV(input CLK, input RST, output reg OUT,
parameter COUNT_TO = 8'h1;
parameter CLKIN_DIVIDE = 1;
reg[7:0] count = COUNT_TO;
initial begin
if(CLKIN_DIVIDE != 1) begin
$display("ERROR: CLKIN_DIVIDE values other than 1 not implemented");