0_0_37312839_20185.cpp:15:8: error: stray '@' in program
always@(posedge Clk) begin
^
0_0_37312839_20185.cpp:16:3: error: missing terminating ' character
Counter = Counter + 8'b00000001;
^
0_0_37312839_20185.cpp:17:3: error: missing terminating ' character
if (Counter%3==0) begin State = State+2'b01; end
^
0_0_37312839_20185.cpp:18:3: error: missing terminating ' character
if (Counter%5==0) begin State = State+2'b01; end
^
0_0_37312839_20185.cpp:19:3: error: missing terminating ' character
if (Counter%7==0) begin State = State+2'b01; end
^
0_0_37312839_20185.cpp:20:3: error: missing terminating ' character
if (Counter%11==0) begin State = State+2'b01; end
^
0_0_37312839_20185.cpp:23:8: error: stray '@' in program
always@(A or B or K or State) begin
^
0_0_37312839_20185.cpp:25:4: error: missing terminating ' character
2'b00: C = A+B;
^
0_0_37312839_20185.cpp:26:4: error: missing terminating ' character
2'b01: C = A-B;
^
0_0_37312839_20185.cpp:27:4: error: missing terminating ' character
2'b10: C = A*B;
^
0_0_37312839_20185.cpp:28:4: error: missing terminating ' character
2'b11: C = A/B;
^
0_0_37312839_20185.cpp:30:3: error: missing terminating ' character
if ((K==2'b01) && (A<B)) begin
^
0_0_37312839_20185.cpp:31:4: error: missing terminating ' character
C = 8'b00000000-C;
^
0_0_37312839_20185.cpp:32:4: error: missing terminating ' character
Sign = 1'b1;
^
0_0_37312839_20185.cpp:34:4: error: missing terminating ' character
Sign = 1'b0;
^
0_0_37312839_20185.cpp:38:4: error: missing terminating ' character
2'b00: begin
^
0_0_37312839_20185.cpp:57:5: error: missing terminating ' character
Who = 4'b0001;
^
0_0_37312839_20185.cpp:59:4: error: missing terminating ' character
2'b01: begin
^
0_0_37312839_20185.cpp:78:5: error: missing terminating ' character
Who = 4'b0010;
^
0_0_37312839_20185.cpp:80:4: error: missing terminating ' character
2'b10: begin
^
0_0_37312839_20185.cpp:100:5: error: missing terminating ' character
Who = 4'b0100;
^
0_0_37312839_20185.cpp:102:4: error: missing terminating ' character
2'b11: begin
^
0_0_37312839_20185.cpp:122:5: error: missing terminating ' character
Who = 4'b1000;
^
0_0_37312839_20185.cpp:1:1: error: 'module' does not name a type
module test(A,B,K,Clk,Led,Sign,Who);
^
0_0_37312839_20185.cpp:2:2: error: 'input' does not name a type
input [3:0] A, B;
^
0_0_37312839_20185.cpp:3:2: error: 'input' does not name a type
input [1:0] K;
^
0_0_37312839_20185.cpp:4:2: error: 'input' does not name a type
input Clk;
^
0_0_37312839_20185.cpp:5:2: error: 'output' does not name a type
output [6:0] Led;
^
0_0_37312839_20185.cpp:6:2: error: 'output' does not name a type
output Sign;
^
0_0_37312839_20185.cpp:7:2: error: 'output' does not name a type
output [3:0] Who;
^
0_0_37312839_20185.cpp:8:2: error: 'reg' does not name a type
reg [6:0] Led;
^
0_0_37312839_20185.cpp:9:2: error: 'reg' does not name a type
reg Sign;
^
0_0_37312839_20185.cpp:10:2: error: 'reg' does not name a type
reg [3:0] Who;
^
0_0_37312839_20185.cpp:11:2: error: 'reg' does not name a type
reg [7:0] C;
^
0_0_37312839_20185.cpp:12:2: error: 'reg' does not name a type
reg [1:0] State;
^
0_0_37312839_20185.cpp:13:2: error: 'reg' does not name a type
reg [7:0] Counter;
^
0_0_37312839_20185.cpp:15:9: error: expected constructor, destructor, or type conversion before '(' token
always@(posedge Clk) begin
^
0_0_37312839_20185.cpp:41:6: error: expected unqualified-id before numeric constant
4'b0001: Led = 7'b0110000;
^
0_0_37312839_20185.cpp:42:6: error: expected unqualified-id before numeric constant
4'b0010: Led = 7'b1101101;
^
0_0_37312839_20185.cpp:43:6: error: expected unqualified-id before numeric constant
4'b0011: Led = 7'b1111001;
^
0_0_37312839_20185.cpp:44:6: error: expected unqualified-id before numeric constant
4'b0100: Led = 7'b0110011;
^
0_0_37312839_20185.cpp:45:6: error: expected unqualified-id before numeric constant
4'b0101: Led = 7'b1011011;
^
0_0_37312839_20185.cpp:46:6: error: expected unqualified-id before numeric constant
4'b0110: Led = 7'b1011111;
^
0_0_37312839_20185.cpp:47:6: error: expected unqualified-id before numeric constant
4'b0111: Led = 7'b1110000;
^
0_0_37312839_20185.cpp:48:6: error: expected unqualified-id before numeric constant
4'b1000: Led = 7'b1111111;
^
0_0_37312839_20185.cpp:49:6: error: expected unqualified-id before numeric constant
4'b1001: Led = 7'b1111011;
^
0_0_37312839_20185.cpp:50:6: error: expected unqualified-id before numeric constant
4'b1010: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:51:6: error: expected unqualified-id before numeric constant
4'b1011: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:52:6: error: expected unqualified-id before numeric constant
4'b1100: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:53:6: error: expected unqualified-id before numeric constant
4'b1101: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:54:6: error: expected unqualified-id before numeric constant
4'b1110: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:55:6: error: expected unqualified-id before numeric constant
4'b1111: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:56:5: error: 'endcase' does not name a type
endcase
^
0_0_37312839_20185.cpp:62:6: error: expected unqualified-id before numeric constant
4'b0001: Led = 7'b0110000;
^
0_0_37312839_20185.cpp:63:6: error: expected unqualified-id before numeric constant
4'b0010: Led = 7'b1101101;
^
0_0_37312839_20185.cpp:64:6: error: expected unqualified-id before numeric constant
4'b0011: Led = 7'b1111001;
^
0_0_37312839_20185.cpp:65:6: error: expected unqualified-id before numeric constant
4'b0100: Led = 7'b0110011;
^
0_0_37312839_20185.cpp:66:6: error: expected unqualified-id before numeric constant
4'b0101: Led = 7'b1011011;
^
0_0_37312839_20185.cpp:67:6: error: expected unqualified-id before numeric constant
4'b0110: Led = 7'b1011111;
^
0_0_37312839_20185.cpp:68:6: error: expected unqualified-id before numeric constant
4'b0111: Led = 7'b1110000;
^
0_0_37312839_20185.cpp:69:6: error: expected unqualified-id before numeric constant
4'b1000: Led = 7'b1111111;
^
0_0_37312839_20185.cpp:70:6: error: expected unqualified-id before numeric constant
4'b1001: Led = 7'b1111011;
^
0_0_37312839_20185.cpp:71:6: error: expected unqualified-id before numeric constant
4'b1010: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:72:6: error: expected unqualified-id before numeric constant
4'b1011: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:73:6: error: expected unqualified-id before numeric constant
4'b1100: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:74:6: error: expected unqualified-id before numeric constant
4'b1101: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:75:6: error: expected unqualified-id before numeric constant
4'b1110: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:76:6: error: expected unqualified-id before numeric constant
4'b1111: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:77:5: error: 'endcase' does not name a type
endcase
^
0_0_37312839_20185.cpp:82:5: error: expected unqualified-id before 'case'
case(C[3:0])
^
0_0_37312839_20185.cpp:84:6: error: expected unqualified-id before numeric constant
4'b0001: Led = 7'b0110000;
^
0_0_37312839_20185.cpp:85:6: error: expected unqualified-id before numeric constant
4'b0010: Led = 7'b1101101;
^
0_0_37312839_20185.cpp:86:6: error: expected unqualified-id before numeric constant
4'b0011: Led = 7'b1111001;
^
0_0_37312839_20185.cpp:87:6: error: expected unqualified-id before numeric constant
4'b0100: Led = 7'b0110011;
^
0_0_37312839_20185.cpp:88:6: error: expected unqualified-id before numeric constant
4'b0101: Led = 7'b1011011;
^
0_0_37312839_20185.cpp:89:6: error: expected unqualified-id before numeric constant
4'b0110: Led = 7'b1011111;
^
0_0_37312839_20185.cpp:90:6: error: expected unqualified-id before numeric constant
4'b0111: Led = 7'b1110000;
^
0_0_37312839_20185.cpp:91:6: error: expected unqualified-id before numeric constant
4'b1000: Led = 7'b1111111;
^
0_0_37312839_20185.cpp:92:6: error: expected unqualified-id before numeric constant
4'b1001: Led = 7'b1111011;
^
0_0_37312839_20185.cpp:93:6: error: expected unqualified-id before numeric constant
4'b1010: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:94:6: error: expected unqualified-id before numeric constant
4'b1011: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:95:6: error: expected unqualified-id before numeric constant
4'b1100: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:96:6: error: expected unqualified-id before numeric constant
4'b1101: Led = 7'b0000001;
^
0_0_37312839_20185.cpp:97:6: error: expected unqualified-id before numeric constan
|