Answers for "verilog montor"

0

verilog monitor

 `timescale 1ns / 1psmodule stimulus;
// Inputs	
reg x;	
reg y;	
// Outputs	
wire z;
// Instantiate the Unit Under Test (UUT)
comparator uut (
  .x(x),
  .y(y),
  .z(z)	);
initial begin
	$dumpfile("test.vcd");
	$dumpvars(0,stimulus);
	// Initialize Inputs
	x = 0;
	y = 0;
	#20 x = 1;
	#20 y = 1;
	#20 y = 0;
	#20 x = 1;
	#40 ; 	
end

initial begin
	$monitor("t=%3d x=%d,y=%d,z=%d \n",$time,x,y,z, );
end
endmodule  
Posted by: Guest on June-15-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language