としたら、CMOSカメラから出力が出てきた。うれしかった!n_cam_reset <= '0'; -- OV7640のRESETはアクティブハイ
n_mem_rd <= not r_w;
-- その他のモジュールの動作は1クロック遅れるので、最初はwrite_stateとなる
process(cs_rw, cs_sync, cam_href_1d) begin
case cs_rw is
when idle_rw =>
r_w_node <= '1';
if cs_sync=vsync_deassert and cam_href_1d='1' then
ns_rw <= write_state;
else
ns_rw <= idle_rw;
end if;
when read_state =>
r_w_node <= '1';
if cs_sync=vsync_deassert and cam_href_1d='1' then
ns_rw <= read_state;
else
ns_rw <= write_state;
end if;
when write_state =>
r_w_node <= '0';
if cs_sync=vsync_deassert and cam_href_1d='1' then
ns_rw <= read_state;
else
ns_rw <= read_state;
end if;
end case;
end process;
r_w <= r_w_node;
-- その他のモジュールの動作は1クロック遅れるので、最初はwrite_stateとなる
process(cs_rw, cs_sync, cam_href_1d) begin
case cs_rw is
when idle_rw =>
r_w_node <= '1';
if cs_sync=vsync_deassert and cam_href_1d='1' then
ns_rw <= write_state;
else
ns_rw <= idle_rw;
end if;
when read_state =>
r_w_node <= '1';
if cs_sync=vsync_deassert and cam_href_1d='1' then
ns_rw <= write_state;
else
ns_rw <= write_state;
end if;
when write_state =>
r_w_node <= '0';
if cs_sync=vsync_deassert and cam_href_1d='1' then
ns_rw <= write_state;
else
ns_rw <= read_state;
end if;
end case;
end process;
r_w <= r_w_node;
日 | 月 | 火 | 水 | 木 | 金 | 土 |
---|---|---|---|---|---|---|
- | - | - | - | - | 1 | 2 |
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | - | - | - | - | - | - |