Error in line 3 syntax error

145 views
Skip to first unread message

devesh kadambari

unread,
Oct 28, 2020, 10:08:21 PM10/28/20
to EDA Playground
module de_3_to_8( in,decoder_out);
  input [3:0] in;
  output [7:0] decoder_out;// Error in syntax

  //individual wires
  assign decoder_out[0]= ~in[2] & ~in[1] & ~in[0];
  assign decoder_out[1]= ~in[2] & ~in[1] & in[0];
  assign decoder_out[2]= ~in[2] & in[1] & ~in[0]; 
  assign decoder_out[3]= ~in[2] & in[1] & in[0];
  assign decoder_out[4]= in[2] & ~in[1] & ~in[0];
  assign decoder_out[5]= in[2] & ~in[1] &  in[0];
  assign decoder_out[6]= in[2] &  in[1] & ~in[0];
  assign decoder_out[7]= in[2] &  in[1] &  in[0];
 
endmodule

I`m getting an error at the output declaration shown above. I`m not understanding how is the syntax wrong in line 3. Help needed

ambar noatay

unread,
Oct 29, 2020, 2:25:17 AM10/29/20
to EDA Playground
Hey  this code is working on Icarus Verilog 0.9.7 . 

EDA Playground

unread,
Oct 29, 2020, 5:07:18 AM10/29/20
to EDA Playground
I see no errors. Neither does Riviera Pro. BTW, it is much easier just to post the URL of your code than to cut and paste it.

Matthew

--
Reply all
Reply to author
Forward
0 new messages