text mode vga

OP #5966185
Rate this post
useful
not useful
Hello, I have a VGA device with which I draw any character from the ROM 
(but only one) on the screen, but I would like to write several 
characters on the screen and for this I need to connect the RAM. But I 
do not know how to connect in the code ...
Please look at my code and say what needs to be fixed / added to it.
Attached files:
Guest #5966229
Rate this post
useful
not useful
You do not describe what you REALLY want to do.
But in any case:

assign char_addr = 7'h41;//symbol A

This is a fixed assignment -> make is variable, controlled by whatever 
you like.

assign text_bit_on = (pixel_x[10:3] == 1 && pixel_y[10:4] == 4) ? 
font_bit : 1'b0;

This is the position you are drawing.



Why not start with something like this:

char_addr = pixel_x[10:3];
text_bit_on = 1'b0;

It should draw all the chars 0..255 until your x position goes beyond 
screen.
OP #5966275
Rate this post
useful
not useful
FPGA zum Spass wrote:
> It should draw all the chars 0..255 until your x position goes beyond
> screen.

Thanks for the answer, I want to write a string of characters from the 
wart or keyboard (or when you click on the button), for this you need to 
transfer the characters in RAM and from there draw them on the screen 
(probably) I don’t know how to do this ...

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now