display.v 599 Bytes
//
// Display for vi_rand
//
// 11/7/94 Kluster
//

module display(vclk, reset_l, rand);
//
// Inputs
//
input			vclk;
input			reset_l;
input 	[5:0]		rand;

reg	[1:256*8]	filename;

//
//  Open output file
//
initial
begin	
  if ($getstr$plusarg("out=", filename) == 1)
    begin	
      if ($open_out_file(filename) == -1)
        begin
          $write("Cannot open out file \n");
          $finish();
        end	
    end	
end


always @(posedge vclk) 
begin
  if ($output_rand(reset_l, rand) == -1)
    begin
      $write("Cannot write output values \n");
      $finish();
    end
end

endmodule