JacquesKleynhans
Member level 2
Hi, Guys i have a little latch up issue somewhere below which i cant seem to resolve pls help.
As im very new to vhdl dont judge ...
I have looked on the forum, but no one replies after there problems are fixed. So the solution is lost once again
Kind Regards.
As im very new to vhdl dont judge ...
Code:
process(state_reg, nand_opr, nand_rdy, data_mem, data_in, data_in_reg, data_out_reg) --sensitivity list
begin
data_in_next <= data_in_reg;
data_out_next <= data_out_reg;
state_next <= idle;
ready <= '0';
case state_reg is
when idle =>
ready <= '1';
counter <= (others => '0');
if nand_rdy = '0' then
state_next <= idle;
elsif nand_opr = "000" then --Reset state
state_next <= rst_1;
elsif nand_opr = "001" then --Read ID state
state_next <= rid_1;
elsif nand_opr = "010" then --Read page state
state_next <= read_1;
elsif nand_opr = "011" then --Write Page state
state_next <= prog_1;
elsif nand_opr = "100" then --Erase Block state
state_next <= idle;
elsif nand_opr = "101" then --Read status state
state_next <= stat_1;
elsif nand_opr = "110" then --Reserved state 1
state_next <= idle;
elsif nand_opr = "111" then --Reserved state 2
state_next <= idle;
--else -- any other character combinations
--state_next <= idle;
end if;
I have looked on the forum, but no one replies after there problems are fixed. So the solution is lost once again
Kind Regards.