我正在尝试在 VHDL 中模拟微处理器作为作业的一部分。它是一个非常基本的模型,甚至不需要包含所有操作码。我想解决以下问题。
我必须在 mw_process 之后运行 mr_process。但是,只有 mw_process 无限运行,如波形图所示。
BEGIN
m : CODEMEM PORT MAP(addbus, data_in, data_out, control);
mw_process : process -- Write the entered commands
begin
addbus <= "00000000"; -- mvi a, 0f
data_in <= "00001111";
control <= '1';
wait for 100 ps;
addbus <= "00000001";
data_in <= "00001111";
control <= '1';
wait for 100 ps;
addbus <= "00000010"; -- mvi b,08
data_in <= "00001000";
control <= '1';
wait for 100 ps;
addbus <= "00000011";
data_in <= "00001000";
control <= '1';
wait for 100 ps;
end process;
mr_process : process -- Read the entered commands
begin
addbus <= "00000000"; -- mvi a, 0f
control <= '0';
wait for 100 ps;
addbus <= "00000001";
control <= '0';
wait for 100 ps;
a <= data_out;
addbus <= "00000010"; -- mvi b,08
control <= '0';
wait for 100 ps;
addbus <= "00000011";
control <= '0';
wait for 100 ps;
b <= data_out;
end process;
L1: ALU PORT MAP(A, B, '1', "001", RES, CARRY, ZERO);
请帮我解决这个问题。