clock counter

Thread Starter

sawagedf

Joined Oct 14, 2008
3
Hello everyone. I need help creating testbench for clock counter. the process is as following: "RUN" is is the input along with the clock. If "RUN" is high the counter (internal) will start counting the clock cycles (rising edges) when the counter reaches specific number, the output (B_clk_9600) will be high. this is only part of big project. I tried to simulate the code i created but the simulator keeos giving me errors. I tried to declare the counter as register of integer value that has that specific number of clock cycles and decrement the counter by 1 every clock cycle but I did not know how to initalize that counter. the source gives me error ( multiple sources for the counter). if you can help, it will be great
thanks
 
Top