summaryrefslogtreecommitdiff
path: root/TEST_DisplayController.v
diff options
context:
space:
mode:
authorMichael Abed <michaelabed@gmail.com>2012-03-29 16:17:45 -0400
committerMichael Abed <michaelabed@gmail.com>2012-03-29 16:17:45 -0400
commit9540811daaffad7811475ea584333ab633ba8508 (patch)
tree9c20071e05b1225f9b466dede6236a7cd53ea851 /TEST_DisplayController.v
parentf9328ba21afde12326c04e59eb542446faf5fae4 (diff)
downloadec311-lab5-master.tar.gz
ec311-lab5-master.tar.bz2
ec311-lab5-master.zip
Diffstat (limited to 'TEST_DisplayController.v')
-rw-r--r--TEST_DisplayController.v74
1 files changed, 74 insertions, 0 deletions
diff --git a/TEST_DisplayController.v b/TEST_DisplayController.v
new file mode 100644
index 0000000..c2c7271
--- /dev/null
+++ b/TEST_DisplayController.v
@@ -0,0 +1,74 @@
+`timescale 1ns / 1ps
+
+////////////////////////////////////////////////////////////////////////////////
+// Company:
+// Engineer:
+//
+// Create Date: 15:17:59 03/29/2012
+// Design Name: DisplayController
+// Module Name: /home/michael/Documents/School/EC311/lab5/TEST_DisplayController.v
+// Project Name: lab5
+// Target Device:
+// Tool versions:
+// Description:
+//
+// Verilog Test Fixture created by ISE for module: DisplayController
+//
+// Dependencies:
+//
+// Revision:
+// Revision 0.01 - File Created
+// Additional Comments:
+//
+////////////////////////////////////////////////////////////////////////////////
+
+module TEST_DisplayController;
+
+ // Inputs
+ reg [3:0] A;
+ reg [3:0] B;
+ reg [3:0] C;
+ reg [3:0] D;
+ reg clk;
+ reg rst;
+
+ // Outputs
+ wire [6:0] ssd;
+ wire [3:0] AN;
+
+ // Instantiate the Unit Under Test (UUT)
+ DisplayController uut (
+ .A(A),
+ .B(B),
+ .C(C),
+ .D(D),
+ .clk(clk),
+ .rst(rst),
+ .ssd(ssd),
+ .AN(AN)
+ );
+
+ initial begin
+ // Initialize Inputs
+ A = 0;
+ B = 0;
+ C = 0;
+ D = 0;
+ clk = 0;
+ rst = 0;
+
+ // Wait 100 ns for global reset to finish
+ #100;
+ A=4'd3;
+ B=4'd0;
+ C=4'd7;
+ D=4'd9;
+ while (1) begin
+ clk = ~clk; #1;
+ end
+ // Add stimulus here
+
+ end
+
+endmodule
+