1. Poor problem description, must make many assumptions on what you are really trying to accomplish
2. Posted in wrong forum (ASIC) should be in FPGA (Xilinx Spartan 3AN)
3. Asking for code, without showing that you've made any effort.
4. At least you gave a polite thanks.
1. Ah, now we get to see code.
2. This isn't synthesizable Verilog code.
3. Still don't know exactly what you want to accomplish, would have to make many assumptions to give any meaningful help.
4. Should read:
http://www.catb.org/~esr/faqs/smart-questions.html so you know how to ask questions the "right" way.
As a complete guess, assuming you have a clock
clk that is used to count out the timing of the 20 cycles high and 20 cycles low...
1. create a 6-bit counter that rolls over at a count equal to 39
2. for any count less than 20 output high on
q
3. for any count greater than 19 output low on
q
4. write code.
5. run simulation.
6. hand in working homework