|
input wire [9:0] pos_x, // X screen position. |
input should only be 3 bits (pos_x, pos_y in relation to the character being looked up/shown on screen), calculation on px_x/px_y to obtain position should be done in a wrapper around font.v
then, we would call font0 using:
pos_x = px_x[ZOOM +:2 ] or something like that ? ( equivalent to px_x[ ZOOM+2 : `ZOOM] )
check the latter, called "Indexed Vector Part select operator +:"
fpga-font/font.v
Line 5 in 0105078
input should only be 3 bits (pos_x, pos_y in relation to the character being looked up/shown on screen), calculation on px_x/px_y to obtain position should be done in a wrapper around font.v
then, we would call font0 using:
pos_x = px_x[
ZOOM +:2 ] or something like that ? ( equivalent to px_x[ZOOM+2 : `ZOOM] )check the latter, called "Indexed Vector Part select operator +:"