URL
https://opencores.org/ocsvn/z80soc/z80soc/trunk
Subversion Repositories z80soc
[/] [z80soc/] [trunk/] [V0.7.2/] [doc/] [README-S3E.txt] - Rev 44
Compare with Previous | Blame | View Log
Z80 Computer on Spartan 3E Starter KitArquitecture------------ROT_CENTER push button (Knob) - Reserved - ResetMemory------0000H - 3FFFH - ROM4000H - 52BFH - VIDEO RAM52C0H - 57FFH - System Variables5800H - 5FFFH - Characters definition RAM6000H - 8FFFH - RAM memory9000H - FFDFH - Not used/future useFFE0H - FFFFH - LCD Video RAMRegisters---------52C0H - Z80SOC VERSION (0 = DE1, 1 = S3E)IO (Ports)----------01H - Out - Green Leds (7-0)20H - In - SW(3-0)30H - In - KEY(3-0)70H - In - Rotary control direction80H - In - PS/2 Keyboard90H - Out - Video91H - Out - Video cursor X92H - Out - Video cursor Y--Reference Sample ROMIt is provided a ROM with a reference application, and the correspondingZ80 source codes.To use the application you will need to connect the S3E board to aVGA monitor and PS/2 keyboard.The program will show how to use:Input push buttonsInput SwitchesPS/2 keyboardVideo text out (memory mapped and port mapped)LedsLCDRotary KnobRedefinition of charactersThe program starts waiting for keys to be typed in the keyboard.The characters are shown on the 40x30 video (VGA).If "A" is pressed, then the program starts another routine,that will write bytes into RAM. After 255 bytes are written,the bytes are read sequencially and the byte read displayed in the leds (binary format).When finished, waits for KEY0 (East on S3E board) and then restart again.The switches (4-0) are used as input to calculate delays. Trychanging these switches to speed up ou slow down the leds and the LCD text rotation speed.When you change these switches, it will only take effect after a Z80 reset (press the Knob button).The Rotary knob can be used at any time to rotate the text in the LCD to the left or to the right.The looping text inside the box demonstrates how to access the video ram.To change speed of scrolling, use the switches (SW).To reset the Z80, press the Knob Button (rotary).To modify the screen layout (rows x columns), edit the file z80soc_pack.vhd and find the constants:- vid_cols = number of columns (maximum is 80)- vid_lines = number of lines (maximum is 60)- pixelsxchar = 1 every character will be plotted using 8x8 pixels- pixelsxchar = 2 every character will be plotter using 16x16 pixelsThe column x lines total must not be over 3200, because this is the capacity defined for the video ram.The characters can be redefined. Every character must have 8 bytes (8 x 8 bits).Hope you enjoy.TO-DO:----- (done) Up to 80x60 Video display- Serial communication- Monitor program to allow download of programs by serial communication- Mass storage device (SD/MMC)- Video colors
