I have two modules
- counter: Output is a vector called error_count.
- lcd: Module to display the code on an LCD. Input includes clock and error_count.
Following snippet of the code is most relevant and attached below:
Top level module:
counter counter1 (..., error_count); lcd lcd1 (..., error_count);
module counter (..., error_count); ... output reg [31:0] error_count = 0; ... //Update counter every clock cycle endmodule
module lcd (..., error_count); ... input [31:0] error_count; ... //error_count used to display on LCD endmodule
What is wrong with this code? The display just prints 0 as the output. Is there anything wrong with the way I am passing the the vector?
Additional Info: I am using the Xilinx Spartan 3E starter kit for testing this code. The LCD code is fine and I have tested it with local counter (which was reg[31:0]).