User`s manual

102 dot_index <= 0;
103 state <= state+1;
104 end
105
106 8’h01:
107 begin
108 // End reset
109 disp_reset_b <= 1’b1;
110 state <= state+1;
111 end
112
113 8’h02:
114 begin
115 // Initialize dot register (set all dots to zero)
116 disp_ce_b <= 1’b0;
117 disp_data_out <= 1’b0; // dot_index[0];
118 if (dot_index == 639)
119 state <= state+1;
120 else
121 dot_index <= dot_index+1;
122 end
123
124 8’h03:
125 begin
126 // Latch dot data
127 disp_ce_b <= 1’b1;
128 dot_index <= 31; // re-purpose to init ctrl reg
129 disp_rs <= 1’b1; // Select the control register
130 state <= state+1;
131 end
132
133 8’h04:
134 begin
135 // Setup the control register
136 disp_ce_b <= 1’b0;
137 disp_data_out <= control[31];
138 control <= {control[30:0], 1’b0}; // shift left
139 if (dot_index == 0)
140 state <= state+1;
141 else
142 dot_index <= dot_index-1;
143 end
144
145 8’h05:
146 begin
147 // Latch the control register data / dot data
34