Skip to content

Commit 306a18f

Browse files
committed
RELEASE V1.21 (incl stable bitstreams)
1 parent 4a4fdfa commit 306a18f

File tree

9 files changed

+51
-8
lines changed

9 files changed

+51
-8
lines changed

README.md

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,21 @@ Getting Started
2626

2727
* Hardware: Currently, we develop QNICE-FPGA on a Nexys 4 DDR development
2828
board, so if you own one, the fastest way of getting started is to
29-
download the bitstream file `dist_kit\env1.bit` on the SD card of the
29+
download the bitstream file `dist_kit/qnice.bit` on the SD card of the
3030
Nexys board and set the jumpers to read the FPGA configuration from the
31-
SD card. Attach an "old" USB keyboard supporting boot mode to the board
32-
and attach a VGA monitor. Attach the USB cable to your desktop computer,
33-
so that you can setup a serial (terminal) connection between the desktop
34-
and the FPGA.
31+
SD card. Do not copy more than one `*.bit` file on the SD card, i.e. do
32+
not copy `dist_kit/q-tris.bit`, yet. Do empty the "Recycle Bin" or similar
33+
of your host OS between two `*.bit` copies, so that the Nexys board does not
34+
accidentally read the `*.bit` from your trash instead of the recent one.
35+
36+
* If you do not own a Nexys 4 DDR board, then use your VHDL development
37+
environment to synthesize QNICE-FPGA. The root file for the system
38+
is `vhdl/env1.vhdl`. Make sure that you connect at least the IO pins
39+
for PS2, VGA, UART and the two switches.
40+
41+
* Attach an "old" USB keyboard supporting boot mode to the board and attach
42+
a VGA monitor. Attach the USB cable to your desktop computer, so that you
43+
can setup a serial (terminal) connection between the desktop and the FPGA.
3544

3645
* On your host computer: Open a terminal and head to the root folder of the
3746
QNICE-FPGA GIT repository.
@@ -82,3 +91,28 @@ Getting Started
8291
and page up/down keys to scroll.
8392

8493
More documentation to come.
94+
95+
Q-TRIS
96+
------
97+
98+
Q-TRIS is a Tetris clone and the first game ever developed for QNICE-FPGA.
99+
The rules of the game are very close to the "official" Tetris rules as
100+
they can be found on
101+
[http://tetris.wikia.com/wiki/Tetris_Guideline](http://tetris.wikia.com/wiki/Tetris_Guideline).
102+
103+
![Q_TRIS_IMG](doc/demos/demo_q_tris.jpg)
104+
105+
Clearing a larger amount of lines at once (e.g. Double, Triple, Q-TRIS)
106+
leads to much higher scores. Clearing a certain treshold of lines leads to the
107+
next level. The game speed increases from level to level. If you clear
108+
1.000 lines, then you win the game.
109+
110+
Q-TRIS uses the PS2/USB keyboard and VGA, no matter how STDIN/STDOUT
111+
are routed. All speed calculations are based on a 50 MHz CPU that is equal
112+
to the CPU revision contained in release V1.21.
113+
114+
The game can run stand-alone, i.e. instead of the Monitor as the "ROM"
115+
for the QNICE-FPGA: Just use `dist_kit/q-tris.bit` instead of the
116+
above-mentioned `dist_kit/qnice.bit`. Or, you can run it regularly as an app
117+
within the Monitor environment. In this case, compile it and then load it with
118+
the `M L` command sequence and start Q-TRIS using the address `0x8000`.

VERSIONS.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Version 1.21 February, 13 2016
2+
================================
3+
4+
* Fixed predecrement CPU bug
5+
* Q-TRIS V1.0: Tetris clone and first game ever programmed for Q-NICE.
6+
Needs VGA and keyboard. Located in demos/q-tris.asm, starts at 0x8000 when
7+
being run via the monitor. Additionally, there is a special stand-alone
8+
autostart bitstream for the Digilent Nexys 4 DDR in dist_kit/q-tris.bit
9+
110
Version 1.2 January, 10 2016
211
=============================
312

demos/q-tris.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
; are routed. All speed calculations are based on a 50 MHz CPU that is equal
1919
; to the CPU revision contained in release V1.21.
2020
;
21-
; The game can run stand-alone, i.e. instead of the monitor as the "ROM"
21+
; The game can run stand-alone, i.e. instead of the Monitor as the "ROM"
2222
; for the QNICE-FPGA - or - it can run regularly as an app. In the latter case
2323
; it loads to 0x8000. #define QTRIS_STANDALONE for the standalone mode.
2424
;

dist_kit/q-tris.bit

3.65 MB
Binary file not shown.
File renamed without changes.

doc/demos/demo_q-tris.jpg

-1.56 MB
Binary file not shown.

doc/demos/demo_q_tris.jpg

682 KB
Loading

pore/boot_message.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ PORE$NEWLINE .ASCII_W "\n"
22

33
; PORE$RESETMSG .ASCII_W "QNICE-FPGA [WIP] [only 16 reg-banks!] by sy2002 in January 2016 (GIT #"
44

5-
PORE$RESETMSG .ASCII_W "QNICE-FPGA Version 1.21 by sy2002 in February 2016 (GIT COMMIT #8e368ed)\n"
5+
PORE$RESETMSG .ASCII_W "QNICE-FPGA Version 1.21 by sy2002 in February 2016 (GIT COMMIT #4a4fdfa)\n"

vhdl/env1_globals.vhd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package env1_globals is
1313
constant ROM_FILE : string := "../monitor/monitor.rom";
1414
constant ROM_SIZE : natural := 2840;
1515
--constant ROM_FILE : string := "../demos/q-tris.rom";
16-
--constant ROM_SIZE : natural := 4522;
16+
--constant ROM_SIZE : natural := 4542;
1717

1818
-- file name of file and file size (in lines) of the file containing the Power On & Reset Execution (PORE) ROM
1919
constant PORE_ROM_FILE : string := "../pore/pore.rom";

0 commit comments

Comments
 (0)