Tarzan Posted October 29, 2020 Report Posted October 29, 2020 module de_3_to_8( in,decoder_out,enable); input [3:0] in; output [7:0] decoder_out;// syntax error //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 Error: At line 3 syntax error. I`m not knowing what is the error with the syntax. Regards Devesh Quote
chr_sue Posted October 29, 2020 Report Posted October 29, 2020 You have to specify the data direction for the enable port. Quote
Tarzan Posted October 29, 2020 Author Report Posted October 29, 2020 Thank you sue. I have got this code working at present but I`m trying to analyze the output of this at the moment in which I have been having few doubts. After this I will update you accordingly. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.