by@progrunner17
WA
`define EOF 32'hFFFF_FFFF `define STDIN 32'h8000_0000 module cat; integer c; integer d; integer i; initial begin c = $fgetc(`STDIN); i = 0; d = 0; while (c != `EOF) begin i = 1; while( c != 10)begin d += (c - 48) * i; i = i * 2; c = $fgetc(`STDIN); end $write("%d", c); c = $fgetc(`STDIN); end end endmodule
00010101 10110000 01011110 11110100 01010110 10001101 11110111 10100110 01001110 10111110 11001001 00110111 10011001 00000011 11010010 01111000 01101000 00000110 10100011 00100100 11011011 01100111 01101001 10011100 10001010 00100101 00000100 00100000 00000001 11100111 11110000 01001011 00011100 11100011 10001000 10001011 01010101 00001010 10101011 00000000 01000010 00001110 00110111 11111101 01011011 10011111 00000000 11000100 00001111 00101101
/volume/CODE:15: syntax error /volume/CODE:15: Syntax in assignment statement l-value. /home/esolang/bin/verilog: line 4: /tmp/code: No such file or directory rm: cannot remove '/tmp/code': No such file or directory