Thanks Johan for this solution but I want to include LCD blockset in Altera's DE2 Simulink library. If you examine the LCD HOLA code, it writes just the word HOLA but I want to able to write whatever I send to LCD. The person named aditya had explained the HDL code generation in detail in a word file for ex. removing floating variables and replacing them with integer values etc. But when it comes to implement the same thing with the Simulink MDL file, I fail to write to the screen. May be I'm doing wrong clocking or there is something missing for the pin input/outputs in the MDL file that I don't know. I'd be very happy if someone tries this in Simulink and reach a conclusion. Again I appreciate your effort to solve the problem.