Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Thank you very much TrickyDicky! I was stuck into thinking about using the "inc" and "dec" signals as clock, I didn't know there could be only one signal acting as a clock. So that's how my code look right now :
reg inc_reg, dec_reg;
integer number;
always @(posedge clk or negedge rst)...
Hi everybody,
I'm trying to implement in an Altera's DE2-70 board (which has an embedded Cyclone II) an up/down counter,
which counts up when a press one pushbutton, and count down when a press another pushbutton. First I tried implementing just
the up counter, which looked like this ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.