Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- process(iCLK) begin
- if(iCLK'event and iCLK ='1') then
- if(inRST = '0') then
- sIC <= "00";
- else
- if(sTCS = "00") then
- if( sIC = "00") then
- oSEC <= sRES;
- sIC <= sIC + 1;
- else
- oSEC <= "00000000";
- sIC <= sIC + 1;
- end if;
- elsif(sTCS = "01") then
- if( sIC = "00" or sIC = "10") then
- oSEC <= sRES;
- sIC <= sIC + 1;
- else
- oSEC <= "00000000";
- sIC <= sIC + 1;
- end if;
- elsif(sTCS = "10") then
- if( sIC = "00" or sIC = "01" or sIC = "10") then
- oSEC <= sRES;
- sIC <= sIC + 1;
- else
- oSEC <= "00000000";
- sIC <= sIC + 1;
- end if;
- elsif(sTCS = "11") then
- oSEC <= sRES;
- else
- oSEC <= sRES;
- end if;
- end if;
- end if;
- end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement