On 30/04/2011 08:01, V G wrote: > Hey all, I'm trying to make a simple Verilog program to display the hex > value of 4 (binary) switches. The program is organized into two modules. > > I've done some reading, but still don't really understand the whole modul= e > business. Anyway, I'm getting an error with my code. > > Code: http://pastebin.com/c0jRk1jw > > UCF: http://pastebin.com/1DnRY3mB > > Error: http://pastebin.com/R6HQm0hr > > I'm not sure what's wrong and how to go about fixing this. I know what I > want to do but not really sure how this whole module and parameter passin= g > thing works, and what a parameter really is in Verilog. > > Maybe I should do VHDL first... Try changing your output sseg to a reg (so put output reg [7:0] sseg) --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .