|
Bit vector 宣告也是.$ ~* t. E- p; x# K3 ? Z2 f" e
Ex.- A4 P/ W" ?# l/ q. }2 F: V/ a% b
Signal S1, S2, S3: std_logic_vector (7 downto 0);
6 p% N; G ^% ^8 {) m' c KSignal B1, B2, B3: bit_vector (7 downto 0);
1 k; X" z! q, l, [B1<= “11001100”;3 [* n. I H: F
B2<= X”FF”;
& h5 C+ L6 `( Z! z3 ~/ x* ?B3<= “11” & O”77”;-- Match the length by concatenating 2 bits with two octal digits
5 d; z/ a; f( FS1<= “11001100”;9 L- f+ ?9 h2 I. d, }) ?
S2<= To_StdLogicVector (X”FF”);
2 A+ z s Z0 n" V/ D$ TS3<= To_StdLogicVector (O”377”);-- Length taken care by To_StdLogicVector( ) |
|