Forum Discussion

MShai9's avatar
MShai9
Icon for New Contributor rankNew Contributor
6 years ago

Getting an error :object "led" on left-hand side of assignment must have a variable data type

module test (clk,led); input clk; output led; reg [7:0] counter; always@(posedge clk) begin if (counter < 100) counter <= counter +1; else counter <= 0; end always @ (counter) begin ...