Noo, not again, there is still something wrong. I did like you said - connected output PIO from NIOS to clear input of my counter but it doesn't want to change value to 0!
Below is my code:
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY count IS
PORT
(
set_zero: IN STD_LOGIC;
clock: IN STD_LOGIC;
result: OUT integer
);
END count;
ARCHITECTURE rtl OF count IS
SIGNAL result_reg : integer;
BEGIN
PROCESS (clock)
BEGIN
IF (clock'event AND clock = '1') THEN
IF (set_zero = '1') THEN
result_reg <= 0;
ELSE
result_reg <= result_reg + 1;
END IF;
END IF;
END PROCESS;
result <= result_reg;
END rtl;
and at the url I mentioned before there is part of my bsf shown.
Please, help:-)
Regards,
Koza