Forum Discussion
Altera_Forum
Honored Contributor
14 years agoproblem of adding custom component in SOPC
Hi~~ My SOPC setting have processor,PIO,SDRAM,FLASH..so on. I want to add a custom component which is a simple counter IP. (behavior: when I push the switch ,then the counter will plus...
Altera_Forum
Honored Contributor
14 years agoReplace always @ ( clk or in_port)
with always @ (posedge clk) You may also need to change further, if you want the counter to increment only once when you push the switch: now it keeps on increasing at the clk rate as long as you keep the switch pressed.