Organization of character bit maps

Dec 08, 2006 1 Replies

Hi,



I want to design a character generator.



Using Lattice XP EBR blocks I have the following architecture of the RAM blocks available:


8192bit =3D 36bit * 256

Now I want to store ASCII characters with following dimensions:



12bit wide, 18bit high

When trying to display characters arranged successively what organization of characters in RAM would be reasonable ?



I can think of two possible alternatives:



a)


1 ..... 36 C0 C0 ...... C0 C0 C0 ..... C0 C0 C0 ...... C0 C0 C0 ...... C0 C0 C0 ...... C0 C0 C0 ...... C0

Rgds Andr=E9 C1 C1 .......C1 .=2E.


1 ...12 13 ... 24 25 ... 36 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2 .=2E. C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2

Trying again:

a)

1 ..... 36 C0 C0 ...... C0 C0 C0 ..... C0 C0 C0 ...... C0 C0 C0 ...... C0 C0 C0 ...... C0 C0 C0 ...... C0 C1 C1 .......C1 .=2E.

b)

1 ...12 13 ... 24 25 ... 36 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2 .=2E. C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C0 C1 ... C1 C2 ... C2

Rgds Andr=E9

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required