// // Title : 4-16 decoder test fixture // Author : Carl Ebeling // Company : CSE 370 // //------------------------------------------------------------------------------------------------- // // File : decode4_16_tf.v // // Description : This test fixture tests the 4-16 Decoder // //------------------------------------------------------------------------------------------------- `timescale 1ns / 1ns module decode4_16_tf (A, En, Q); output [3:0] A; output En; input [15:0] Q; reg [3:0] A; reg En; integer errors; integer count; initial begin errors = 0; for (count = 0; count < 32; count = count + 1) begin { A, En } = count; #10 // Wait 10 ns. if (Q != (En<