如果pstate.el == el0,则如果EL2ENABLED()&& hcr_el2.tge == 1,则Aarch64.SystemagccessTrap(EL2,0x18);否则AARCH64.SYSTEMACCESSTRAP(EL1,0x18); elsif pstate.el == el1,然后如果EL2ENABLED()&& hcr_el2.tid3 == 1,则AARCH64.SYSTEMACCESSTRAP(EL2,0x18);否则返回ID_AA64ISAR0_EL1; elsif pstate.el == el2,然后返回id_aa64isar0_el1; elsif pstate.el == el3,然后返回id_aa64isar0_el1;
1实体问题是2端口(Clk:在std_logic中; 3重置:在std_logic中; 4启用:在std_logic中; 5 Up_down:在std_logic中; 6计数:输出std_logic_vector(3 downto 0)); 7结束问题; 8 9问题的架构a是10信号sCount:std_logic_vector(3 downto 0)); 11信号a,b:std_logic; 12开始13过程(...)14开始15如果Reset =‘1'则16 sCount <=“0000”; 17 a <=‘0'; 18 elsif clk'event and clk = ‘1' then 19 if Enable = ‘1' then 20 if Up_down = ‘1' then 21 if sCount = “1001” then 22 sCount <= “0000”; 23 a <='1'; 24 else 25 sCount <= sCount + '1'; 26 a <='0'; 27 end if; 28 else 29 if sCount = “0000” then 30 sCount = “1001”; 31 a <='1'; 32 else 33 sCount = sCount – ‘1'; 34 a <='0'; 35 end if; 36 end if; 37 end if; 38 end process; 39 40 Count <= sCount; 41 42 过程(…) 43 开始 44 如果 sCount = “0111” 则 45 b <='1'; 46 否则 47 b <='0'; 48 结束如果; 49 结束过程; 50 51 结束 a;