-- (c) ALSE 2003
-- --------------------------------------------------------
--  Demo Clock for MaxQuick Board - http://www.alse-fr.com
-- --------------------------------------------------------
--
-- Contact : info@alse-fr.com
-- Version : 1.0
-- Date    : Oct 2003
-- Note    : SW3 & SW4 should be resynchronized.
--
-- Any question ? please contact us at mailto:info@alse-fr.com
-- You are also welcome to attend one of our Training Courses
-- (Altera or Doulos).


Verify the Design
-----------------

We have created a simple testbench and a simulation script.
The design is tested in an accelerated mode (less clock cycles)
and actually run much faster than the real time !!!
(it simulates hours in just seconds).
We've not created a self-testing testbench ; you must inspect
(eyeball) the waveform.


* Launch ModelSim AE.

* File > Change Directory to the _MaxClk/Src directory

* do simu.do

* Inspect the waveform...


Compile & Program the Device
----------------------------

* Make sure your Windows driver for the ByteBlaster II cable
  is correctly installed.

* Connect the ByteBlaster II cable to the board and
 to your parallel port.

* Apply the power to the Max board.

* Launch Quartus II v3.0

* Make sure the Tcl console is opened
  (View > Utility Windows > Tcl console)

* In the console, change directory to the Fit subdir :
  cd <path>/_MaxClk/Fit
  where <path>/_MaxClk is where this readme.txt file is located
  Note the use of slash "/" delimiter (not backslash !)

* Execute the provided Tcl script :
  source DoQuartus.tcl
  (this script is also saved in src/saved_.tcl)

* Make sure the project has compiled correctly without error.

* Open the Programmer utility from Quartus (Tools > Programmer).
  Verify that the ByteBlaster cable is correctly detected.
  You may want to check also the JTag chain and make sure the
  ByteBlaster can "see" the 7128 device.
  Don't forget to check the "Program/Configure "and the "Verify"
  boxes before launching the programming !

* Hit the "Start Programming" button.

* When the programming is done, you can adjust the "clock" with
  the buttons SW3 (hours) and SW4 (minutes).

This example fills only around 50% of the device.

When this all works, you'll be able to easily modify the design
or the script to create many other interesting applications !

 ! Have Fun !

  Bert Cuzeau
  Technical Manager ALSE
