-- Read Upper
process(n_mem_cs, n_mem_rd, n_mem_upperB, mem_addr_int) begin
if n_mem_cs='0' and n_mem_rd='0' and n_mem_upperB='0' then
mem_data_node(15 downto 8) <= To_stdlogicvector(sram_upper(mem_addr_int));
else
mem_data_node(15 downto 8) <= (others => 'Z');
end if;
end process;
-- Read Lower
process(n_mem_cs, n_mem_rd, n_mem_lowerB, mem_addr_int) begin
if n_mem_cs='0' and n_mem_rd='0' and n_mem_lowerB='0' then
mem_data_node(7 downto 0) <= To_stdlogicvector(sram_lower(mem_addr_int));
else
mem_data_node(7 downto 0) <= (others => 'Z');
end if;
end process;
-- データの流れを見やすいように上位のデータは55から+1, 下位のデータはAAから+1して、出力 process(master_sync, n_mem_we) begin -- Read Upper
if master_sync='1' then
mem_data_node2(15 downto 8) <= x"55";
elsif n_mem_we'event and n_mem_we='1' then
if n_mem_cs='0' and n_mem_rd='0' and n_mem_upperB='0' then
mem_data_node2(15 downto 8) <= mem_data_node2(15 downto 8) + 1;
end if;
end if;
end process;
mem_data_node(15 downto 8) <= mem_data_node2(15 downto 8) when n_mem_cs='0' and n_mem_rd='0' and n_mem_upperB='0' else (others => 'Z');
process(master_sync, n_mem_we) begin -- Read Lower
if master_sync='1' then
mem_data_node2(7 downto 0) <= x"AA";
elsif n_mem_we'event and n_mem_we='1' then
if n_mem_cs='0' and n_mem_rd='0' and n_mem_lowerB='0' then
mem_data_node2(7 downto 0) <= mem_data_node2(7 downto 0) + 1;
end if;
end if;
end process;
mem_data_node(7 downto 0) <= mem_data_node2(7 downto 0) when n_mem_cs='0' and n_mem_rd='0' and n_mem_lowerB='0' else (others => 'Z');
library modelsim_lib;
use modelsim_lib.util.all;
-- init_signal_spy でIS61LV25616_instの下にmaster_syncを持ってくる
process begin
init_signal_spy("../camdispcntrl_sram_inst/master_sync", "master_sync", 1, -1);
wait;
end process;
-- init_signal_spy でIS61LV25616_instの下にmaster_syncを持ってくる
process begin
init_signal_spy("/testbench/camdispcntrl_sram_inst/master_sync", "/testbench/is61lv25616_inst/master_sync", 1, -1);
wait;
end process;
日 | 月 | 火 | 水 | 木 | 金 | 土 |
---|---|---|---|---|---|---|
- | - | - | - | - | 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 | - | - | - | - | - | - |