I have already research the internet and book. I just can not find any state machine regarding this project. A lot of example that i found just simply explanation on the verilog code. Can some one suggest a basic FSM for this project title.
For this project, my supervisor want me to design VGA controller based on state machine. I already have the code and some explanation of it. I already draw a state diagram for it based on the code and she kind of reject it. I have no idea what VGA controller state machine looks like.
work is based on the formation of 2-channel synchronization and channel images that arise from the timing charts monitor control. Write very simple. Without understanding how someone else's code will not help
process (main_Clk )
begin
if (main_Clk'event and main_Clk = '1')
then
if h_cnt = "11000100100" then h_cnt <= "00000000001";
else h_cnt <= h_cnt + 1;
end if;
--***************************************************************************
if h_cnt = "11000100100" then
if v_cnt = "10000101001" then v_cnt <= "00000000000";
else v_cnt <= v_cnt + 1;
end if;
end if;
end if;
end process ;
--**************************************hhhhhhhh ssysysysysysyy
process (main_Clk )
begin
if (main_Clk'event and main_Clk = '1')
then
if h_cnt = "10010011000" then --1176
border_h <= '0';
elsif h_cnt = "11000100100" then --1572
border_h <= '1';
elsif h_cnt = "10011100001" then --1249
h_sy <= '1';
elsif h_cnt = "10101011110" then --1374
h_sy <= '0';
end if;
end if;
end process ;
--******************************************vvvvvvvvvvvvvvv sysysysysysysysysy
process (main_Clk )
begin
if (main_Clk'event and main_Clk = '1')
then
if h_cnt = "11000100100" then
if v_cnt = "01111111111" then --1023
border_v <= '0';
elsif v_cnt = "10000101001" then --1065
border_v <= '1';
elsif v_cnt = "10000000000" then --1024
v_sy <= '1';
elsif v_cnt = "10000000100" then --1028
v_sy <= '0';
end if;
end if;
end if;
end process ;
border <= border_v and border_h;
---------- Post added at 12:17 ---------- Previous post was at 12:15 ----------
main clk = 100 MHz (108 not possible)
mode 1280*1024
I'm suppose to target my VGA controller to spartan 3e . It has clock of 50Mhz and the design is for 25Mhz. How do i want to solve this. Can anyone give an idea.