URL
https://opencores.org/ocsvn/lcd_block/lcd_block/trunk
Show entire file |
Details |
Blame |
View Log
Rev 9 |
Rev 10 |
Line 172... |
Line 172... |
lcd_init_state_done:
|
lcd_init_state_done:
|
begin
|
begin
|
lcd_init_done <= 1;
|
lcd_init_done <= 1;
|
lcd_init_state_next <= lcd_init_state_done;
|
lcd_init_state_next <= lcd_init_state_done;
|
end
|
end
|
endcase;
|
endcase
|
end;
|
end
|
end;
|
end
|
|
|
|
// On the most cases you can only write to the display...
|
assign lcd_rw = 0;
|
assign lcd_rw = 0;
|
|
assign lcd_rs = rs_in;
|
|
assign disable_flash = 1;
|
|
|
// Will assign the output of the FSM init or the FSM data depending if initialization is already done
|
// Will assign the output of the FSM init or the FSM data depending if initialization is already done
|
assign lcd_e = (!lcd_init_done) ? lcd_init_e_out : lcd_data_e_out;
|
assign lcd_e = (!lcd_init_done) ? lcd_init_e_out : lcd_data_e_out;
|
assign lcd_nibble = (!lcd_init_done) ? lcd_init_data_out : lcd_data_data_out ;
|
assign lcd_nibble = (!lcd_init_done) ? lcd_init_data_out : lcd_data_data_out ;
|
assign lcd_rs = rs_in;
|
|
|
|
/*
|
/*
|
FSM that deals to send data to the LCD (nibble High + nibble Low)
|
FSM that deals to send data to the LCD (nibble High + nibble Low)
|
*/
|
*/
|
always @ (posedge clk)
|
always @ (posedge clk)
|
Line 280... |
Line 282... |
lcd_data_states <= lcd_data_rst;
|
lcd_data_states <= lcd_data_rst;
|
end
|
end
|
|
|
endcase
|
endcase
|
end
|
end
|
end;
|
end
|
|
|
endmodule
|
endmodule
|
|
|
No newline at end of file
|
No newline at end of file
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.