`timescale 1ns / 1ps

////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer:
//
// Create Date:   22:45:50 08/30/2009
// Design Name:   VGAControl
// Module Name:   N:/myhome/Teaching/2009_2010/Gateway/ColouringTheWorld_Lab10/VGAControlTB.v
// Project Name:  ColouringTheWorld_Lab10
// Target Device:  
// Tool versions:  
// Description: 
//
// Verilog Test Fixture created by ISE for module: VGAControl
//
// Dependencies:
// 
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
// 
////////////////////////////////////////////////////////////////////////////////

module VGAControlTB;

	// Inputs
	reg CLK;
	reg [7:0] COLOUR_IN;

	// Outputs
	wire [7:0] COLOUR_OUT;
	wire [9:0] ADDRH;
	wire [8:0] ADDRV;
	wire HS;
	wire HV;

	// Instantiate the Unit Under Test (UUT)
	VGAControl uut (
		.CLK(CLK), 
		.COLOUR_IN(COLOUR_IN), 
		.COLOUR_OUT(COLOUR_OUT), 
		.ADDRH(ADDRH), 
		.ADDRV(ADDRV), 
		.HS(HS), 
		.HV(HV)
	);

	initial uut.ADDRH = 10'b0000000000;
	initial uut.ADDRV = 10'b000000000;

	
	initial begin
		// Initialize Inputs
		CLK = 0;
		forever #50 CLK = ~CLK;
	end	
		
	initial begin
		
		COLOUR_IN = 0;

      #100 COLOUR_IN = 8'd10;
      #100 COLOUR_IN = 8'd20;
      #100 COLOUR_IN = 8'd30;
      #100 COLOUR_IN = 8'd40;
      #100 COLOUR_IN = 8'd50;
      #100 COLOUR_IN = 8'd60;
      #100 COLOUR_IN = 8'd70;
      #100 COLOUR_IN = 8'd80;
      #100 COLOUR_IN = 8'd90;
      #100 COLOUR_IN = 8'd100;
      #100 COLOUR_IN = 8'd110;
      #100 COLOUR_IN = 8'd120;
      #100 COLOUR_IN = 8'd130;
      #100 COLOUR_IN = 8'd10;
      #100 COLOUR_IN = 8'd20;
      #100 COLOUR_IN = 8'd30;
      #100 COLOUR_IN = 8'd40;
      #100 COLOUR_IN = 8'd50;
      #100 COLOUR_IN = 8'd60;
      #100 COLOUR_IN = 8'd70;
      #100 COLOUR_IN = 8'd80;
      #100 COLOUR_IN = 8'd90;
      #100 COLOUR_IN = 8'd100;
      #100 COLOUR_IN = 8'd110;
      #100 COLOUR_IN = 8'd120;
      #100 COLOUR_IN = 8'd130;
      #100 COLOUR_IN = 8'd10;
      #100 COLOUR_IN = 8'd20;
      #100 COLOUR_IN = 8'd30;
      #100 COLOUR_IN = 8'd40;
      #100 COLOUR_IN = 8'd50;
      #100 COLOUR_IN = 8'd60;
      #100 COLOUR_IN = 8'd70;
      #100 COLOUR_IN = 8'd80;
      #100 COLOUR_IN = 8'd90;
      #100 COLOUR_IN = 8'd100;
      #100 COLOUR_IN = 8'd110;
      #100 COLOUR_IN = 8'd120;
      #100 COLOUR_IN = 8'd130;
      #100 COLOUR_IN = 8'd10;
      #100 COLOUR_IN = 8'd20;
      #100 COLOUR_IN = 8'd30;
      #100 COLOUR_IN = 8'd40;
      #100 COLOUR_IN = 8'd50;
      #100 COLOUR_IN = 8'd60;
      #100 COLOUR_IN = 8'd70;
      #100 COLOUR_IN = 8'd80;
      #100 COLOUR_IN = 8'd90;
      #100 COLOUR_IN = 8'd100;
      #100 COLOUR_IN = 8'd110;
      #100 COLOUR_IN = 8'd120;
      #100 COLOUR_IN = 8'd130;
		
		// Wait 100 ns for global reset to finish
		#100;


	end
      
endmodule

