Am trying to code a top level module that would connect different modules to make an up/down counter that would display a hexadecimal character on a 7 segment LED on posedges; but every time I try to run the following top level module I get an error that says
'Line 25: Syntax error near "<=".'
There is no one else to ask this and am following the same outline of the example in my reference book. What am I doing wrong?
module Main_Module(a, b, c, d, e, f, g, U, R, P, Clk); input U, R, P, Clk; output a, b, c, d, e, f, g; reg [3:0] Data; wire In3 <= Data, In2 <= Data, In1 <= Data, In0 <= Data; //This is Line 25 Counter Counter_1(Clk_1Hz, R, P, U, Data); Segment_Display Segment_Display_1(a, b, c, d, e, f, g, In3, In2, In1, In0); ClkDiv1Hz ClkDiv1Hz_1(Clk, R, Clk_1Hz); endmodule
Thank you Eugene Sh.and Greg for your time!