Result

ERROR

Code [DL]

`define EOF 32'hFFFF_FFFF
`define STDIN 32'h8000_0000

module cat;
	integer c,i,d;
	initial begin
		c = $fgetc(`STDIN);
		i = 1;
		d = 0;
		while (c != `EOF) begin
			while ( c != 10)begin

			end
			$write("%d", c);
			c = $fgetc(`STDIN);
		end
	end
endmodule

stdin

01111010
01100101
01000010
11010011
11000010
00101001
10101111
10011001
11111101
01001110
00010101
00000000
01110010
00110111
10101011
00011100
00011011
11011110
01010001
10101011
10011000
01011100
01101001
11010010
00100100
00000001
00010000
00001110
10100101
00001111
00000011
11100111
11101111
10000110
11001010
11100101
01111000
00101101
10111011
11010101
10110010
10111110
00000110
00101000
10001000
01011011
01101111
00111001
00001010
00000011

stdout

stderr

strace