精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 能幫我看下 這個Type integer does not match with a string literal是怎么回事么、謝謝啦

    能幫我看下 這個Type integer does not match with a string literal是怎么回事么、謝謝啦
    LIBRARY ieee;
    USE ieee.std_logic_1164.ALL;
    -- Uncomment the following library declaration if using
    -- arithmetic functions with Signed or Unsigned values
    --USE ieee.numeric_std.ALL;
    ENTITY vv IS
    END vv;
    ARCHITECTURE behavior OF vv IS
    -- Component Declaration for the Unit Under Test (UUT)
    COMPONENT comp
    PORT(
    a :IN integer range 0 to 7;
    b :IN integer range 0 to 7;
    sel :IN std_logic;
    x1 :OUT std_logic;
    x2 :OUT std_logic;
    x3 :OUT std_logic
    );
    END COMPONENT;
    --Inputs
    signal a :integer range 0 to 7 :="00000010" ;
    signal b :integer range 0 to 7 := "00000100";
    signal sel :std_logic := '0';
    \x05--Outputs
    signal x1 :std_logic;
    signal x2 :std_logic;
    signal x3 :std_logic;
    -- No clocks detected in port list.Replace below with
    -- appropriate port name
    BEGIN
    \x05-- Instantiate the Unit Under Test (UUT)
    uut:comp PORT MAP (
    a => a,
    b => b,
    sel => sel,
    x1 => x1,
    x2 => x2,
    x3 => x3
    );
    END;
    其他人氣:808 ℃時間:2020-07-03 12:47:34
    優(yōu)質(zhì)解答
    signal a :integer range 0 to 7 :="00000010" ;signal b :integer range 0 to 7 := "00000100";上面兩句有問題,既然a和b的類型是整型的子類型 integer range 0 to 7,其初值就只能是0~7當(dāng)中的某個數(shù),例如2或者4等等...
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版