Next question: I wrote a simple program to display the value of a register on 8 LEDs. At the same time, a 4-digit 7-segment display is multiplexed to show some numbers. Single module version: http://pastebin.com/mYv7HVfy This one works. Everything works as expected. Two module version: http://pastebin.com/BbXkrWBW This one doesn't work and I don't know how to make it work. I tried to split the functionality into two modules and now the functionality of the 7-segment multiplexer is lost. What went wrong here? Also, what exactly are modules in Verilog? --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .