vhdl语言:如何将正弦信号的数字数据输入到wm8731并通过示波器测得正弦波? 300C
  • 我已经将正弦信号的数字部分编好 这部分代码有3个功能:1. 输出不同频率的信号 2.人为控制输出有限周期的信号 3.可以输出正弦波和三角波 详细问题:一个信号可以通过wm8731里的DA-转换器将数字信号转换成模拟信号,但是我怎么用vhdl语言去调用wm8731将并行的数字信号的数据输入到wm8731里面去 ``` entity generator_gai is port( clk,reset,zustand: in bit; --clk: 50MHz,PIN_L1; reset:SW9,PIN_L2; -- zustand: SW8,PIN_M1, Um zwischen die Sinussignal und Dreiecksignal zu wechseln. Zustand = 1: Dreiecksignal; Zustand = 0: Sinussignal; key: in bit_vector(3 downto 0); --Die Frequenz der Signal wird durch Switches von 0 bis 9999 Hz eingestellt. Spg: out integer range 256 downto 0; -- Spg: die Spannungswert der Signal Schalter: in bit_vector(7 downto 0); -- Die Zahl der Ausgabe der Signal wird durch Switches eingestellt. R: out bit; -- Ausgang der Rechtecksignal eine: out bit_vector(6 downto 0); -- Beispiel: 9876: za=6, zehn=7, hundert=8, tausend=9. Die 4 Ausgangen bedeuten, dass der Wert auf der 7-Segment dargestellt wird. zehn: out bit_vector(6 downto 0); hundert: out bit_vector(6 downto 0); tausend: out bit_vector(6 downto 0)); end generator_gai;

architecture structure of generator_gai is
signal cnt,cnt_folge,f_divide: integer range 50000000 downto 0; -- f_divide: frequenz-divide, Man möchte eine Frequenz bestimmen, muss man die Count beschränkt.
signal f_divide_halbe: integer range 25000000 downto 0;
signal sw0,sw1,sw2,sw3,sw4,sw5,sw6,sw7,sw_ges: integer range 512 downto 0; -- diese Parameter bedeuten den Wert der Schalter. a: die 1.Schalter und bedeutet 0 und 1. b: die 2.Schalter und bedeutet 0 und 2.......
signal clk1,Swg_clk: bit;-- clk1:Frequenz der Signal. Swg_clk: wenn man möchte die Taste benutzen, muss man die Schwingung beseitigen. Deshalb kann man mit der Periode sichern, dass die Tastt schon gedrückt wird.
signal Swg_cnt,Swg_cnt_folge: integer range 10000 downto 0; -- Count zum Vermeiden der Schwingung
signal key0_count,key0_count_folge,key1_count,key1_count_folge,key2_count,key2_count_folge,key3_count,key3_count_folge,clk1_count: integer range 5000000 downto 0;
signal clk1_count_folge: integer range 5000001 downto 0;
signal eine1,zehn1,hundert1,tausend1: integer range 10 downto 0; -- Die Wert der Frequenz
signal num,num_folge: integer range 255 downto 0;-- num: sie ist die Abszisse(X-wert).
signal periode,periode_folge: integer range 0 to 255; -- Die Anzahl der Ausgabe des Signals
signal key0,key0_folge: integer range 10 downto 0; -- Die Werte der Frequenz des Signals
signal key1,key1_folge: integer range 100 downto 0;

signal key2,key2_folge: integer range 1000 downto 0;
signal key3,key3_folge,key_ges: integer range 10000 downto 0;

begin
Z_Speicher:process(clk)
begin
if reset = '1' then
periode <= 1;
elsif clk = '1' and clk'event then
cnt <= cnt_folge; Swg_cnt <= Swg_cnt_folge; key0_count <= key0_count_folge; key1_count <= key1_count_folge;
key2_count <= key2_count_folge; key3_count <= key3_count_folge; key0 <= key0_folge; key1 <= key1_folge;
key2 <= key2_folge; key3 <= key3_folge; clk1_count <= clk1_count_folge; periode <= periode_folge;
end if;
if reset = '1' then
num <= 255;
elsif clk1 = '1' and clk1'event then
num <= num_folge;
end if;
end process Z_Speicher;

UE_SN:process(cnt,Swg_clk,key,reset)
begin
if cnt >= f_divide then
cnt_folge <= 0;
else
cnt_folge <= cnt + 1;
end if;
if Schalter(0) = '1' then
sw0 <= 1;
else
sw0 <= 0;
end if;
if Schalter(1) = '1' then
sw1 <= 2;
else
sw1 <= 0;
end if;
if Schalter(2) = '1' then
sw2 <= 4;
else
sw2 <= 0;
end if;
if Schalter(3) = '1' then
sw3 <= 8;
else
sw3 <= 0;
end if;
if Schalter(4) = '1' then
sw4 <= 16;
else
sw4 <= 0;
end if;
if Schalter(5) = '1' then
sw5 <= 32;
else
sw5 <= 0;
end if;
if Schalter(6) = '1' then
sw6 <= 64;
else
sw6 <= 0;
end if;
if Schalter(7) = '1' then
sw7 <= 128;
else
sw7 <= 0;
end if;
sw_ges <= sw0 + sw1 + sw2 + sw3 + sw4 + sw5 + sw6 + sw7;

if Swg_cnt >= 10000 then -- Festfrequenz 5kHz: 200us;
Swg_cnt_folge <= 0;
else
Swg_cnt_folge <= Swg_cnt + 1;
end if;

if reset = '1' then
key0_folge <= 0; key1_folge <= 0; key2_folge <= 0; key3_folge <= 0;

elsif clk = '1' and clk'event then
if clk1 = '1' then

clk1_count_folge <= clk1_count + 1; -- Das Signal kommt viele Peak auf dem Anfangsplatz aus. Deshalb muss man diese Peak vermeiden.
else
if clk1_count > 20 then
clk1_count_folge <= 0;
if num >= 255 then
periode_folge <= periode + 1;
if sw_ges = 128 then -- Wenn SW7(Schalter(7)) = 1, dann läuft das Signal immer.
num_folge <= 0;
else
if sw_ges >= periode then
num_folge <= 0;

        else 
          num_folge <= 255;
            periode_folge <= sw_ges + 1;
        end if;
      end if;
  else
    num_folge <= num + 1;
  end if; 
else
    clk1_count_folge <= 0;
end if;

end if;
if key(0) = '0' then
key0_count_folge <= key0_count + 1;
else
if key0_count > 500000 then -- Wenn man ein Key drücken, soll man die Schwingung vermeiden.
key0_count_folge <= 0;
if key0 < 9 then
key0_folge <= key0 + 1;
else
key0_folge <= 0;
end if;
else
key0_count_folge <= 0;
end if;
end if;
if key(1) = '0' then
key1_count_folge <= key1_count + 1;
else
if key1_count > 500000 then
key1_count_folge <= 0;
if key1 < 90 then
key1_folge <= key1 + 10;
else
key1_folge <= 0;
end if;
else
key1_count_folge <= 0;
end if;
end if;
if key(2) = '0' then
key2_count_folge <= key2_count + 1;
else
if key2_count > 500000 then
key2_count_folge <= 0;
if key2 < 900 then
key2_folge <= key2 + 100;
else
key2_folge <= 0;
end if;
else
key2_count_folge <= 0;
end if;
end if;
if key(3) = '0' then
key3_count_folge <= key3_count + 1;
else
if key3_count > 500000 then
key3_count_folge <= 0;
if key3 < 9000 then
key3_folge <= key3 + 1000;
else
key3_folge <= 0;
end if;
else
key3_count_folge <= 0;
end if;
end if;
end if;
if key0 = 0 and key1 = 0 and key2 = 0 and key3 = 0 then
f_divide <= 0;
else
f_divide <= 50000000/(key0 + key1 + key2 + key3);
end if;
eine1 <= key0;
zehn1 <= key1/10;
hundert1 <= key2/100;
tausend1 <= key3/1000;
end process UE_SN;

AUS_SN:process(eine1,zehn1,hundert1,tausend1,cnt)
begin
case eine1 is when 0 => eine <= "1000000"; -- Die Binärcode des Nummer für 7-Segment
when 1 => eine <= "1111001";
when 2 => eine <= "0100100";
when 3 => eine <= "0110000";
when 4 => eine <= "0011001";
when 5 => eine <= "0010010";
when 6 => eine <= "0000011";
when 7 => eine <= "1111000";
when 8 => eine <= "0000000";
when others => eine <= "0011000";
end case;
case zehn1 is when 0 => zehn <= "1000000";
when 1 => zehn <= "1111001";
when 2 => zehn <= "0100100";
when 3 => zehn <= "0110000";
when 4 => zehn <= "0011001";
when 5 => zehn <= "0010010";
when 6 => zehn <= "0000011";
when 7 => zehn <= "1111000";
when 8 => zehn <= "0000000";
when others => zehn <= "0011000";
end case;
case hundert1 is when 0 => hundert <= "1000000";
when 1 => hundert <= "1111001";
when 2 => hundert <= "0100100";
when 3 => hundert <= "0110000";
when 4 => hundert <= "0011001";
when 5 => hundert <= "0010010";
when 6 => hundert <= "0000011";
when 7 => hundert <= "1111000";
when 8 => hundert <= "0000000";
when others => hundert <= "0011000";
end case;
case tausend1 is when 0 => tausend <= "1000000";
when 1 => tausend <= "1111001";
when 2 => tausend <= "0100100";
when 3 => tausend <= "0110000";
when 4 => tausend <= "0011001";
when 5 => tausend <= "0010010";
when 6 => tausend <= "0000011";
when 7 => tausend <= "1111000";
when 8 => tausend <= "0000000";
when others => tausend <= "0011000";
end case;
if Swg_cnt >= 5000 then
Swg_clk <= '1';
else
Swg_clk <= '0';
end if;
if cnt >= f_divide/2 then
clk1 <= '1';
else
clk1 <= '0';
end if;
R <= clk1;
if zustand = '1' then
case num is when 0 => Spg <= 64; when 33 => Spg <= 97; when 66 => Spg <= 126; when 99 => Spg <= 93;
when 1 => Spg <= 65; when 34 => Spg <= 98; when 67 => Spg <= 125; when 100 => Spg <= 92;
when 2 => Spg <= 66; when 35 => Spg <= 99; when 68 => Spg <= 124; when 101 => Spg <= 91;
when 3 => Spg <= 67; when 36 => Spg <= 100; when 69 => Spg <= 123; when 102 => Spg <= 90;
when 4 => Spg <= 68; when 37 => Spg <= 101; when 70 => Spg <= 122; when 103 => Spg <= 89;
when 5 => Spg <= 69; when 38 => Spg <= 102; when 71 => Spg <= 121; when 104 => Spg <= 88;
when 6 => Spg <= 70; when 39 => Spg <= 103; when 72 => Spg <= 120; when 105 => Spg <= 87;
when 7 => Spg <= 71; when 40 => Spg <= 104; when 73 => Spg <= 119; when 106 => Spg <= 86;
when 8 => Spg <= 72; when 41 => Spg <= 105; when 74 => Spg <= 118; when 107 => Spg <= 85;
when 9 => Spg <= 73; when 42 => Spg <= 106; when 75 => Spg <= 117; when 108 => Spg <= 84;
when 10 => Spg <= 74; when 43 => Spg <= 107; when 76 => Spg <= 116; when 109 => Spg <= 83;
when 11 => Spg <= 75; when 44 => Spg <= 108; when 77 => Spg <= 115; when 110 => Spg <= 82;
when 12 => Spg <= 76; when 45 => Spg <= 109; when 78 => Spg <= 114; when 111 => Spg <= 81;
when 13 => Spg <= 77; when 46 => Spg <= 110; when 79 => Spg <= 113; when 112 => Spg <= 80;
when 14 => Spg <= 78; when 47 => Spg <= 111; when 80 => Spg <= 112; when 113 => Spg <= 79;
when 15 => Spg <= 79; when 48 => Spg <= 112; when 81 => Spg <= 111; when 114 => Spg <= 78;
when 16 => Spg <= 80; when 49 => Spg <= 113; when 82 => Spg <= 110; when 115 => Spg <= 77;
when 17 => Spg <= 81; when 50 => Spg <= 114; when 83 => Spg <= 109; when 116 => Spg <= 76;
when 18 => Spg <= 82; when 51 => Spg <= 115; when 84 => Spg <= 108; when 117 => Spg <= 75;
when 19 => Spg <= 83; when 52 => Spg <= 116; when 85 => Spg <= 107; when 118 => Spg <= 74;
when 20 => Spg <= 84; when 53 => Spg <= 117; when 86 => Spg <= 106; when 119 => Spg <= 73;
when 21 => Spg <= 85; when 54 => Spg <= 118; when 87 => Spg <= 105; when 120 => Spg <= 72;
when 22 => Spg <= 86; when 55 => Spg <= 119; when 88 => Spg <= 104; when 121 => Spg <= 71;
when 23 => Spg <= 87; when 56 => Spg <= 120; when 89 => Spg <= 103; when 122 => Spg <= 70;
when 24 => Spg <= 88; when 57 => Spg <= 121; when 90 => Spg <= 102; when 123 => Spg <= 69;
when 25 => Spg <= 89; when 58 => Spg <= 122; when 91 => Spg <= 101; when 124 => Spg <= 68;
when 26 => Spg <= 90; when 59 => Spg <= 123; when 92 => Spg <= 100; when 125 => Spg <= 67;
when 27 => Spg <= 91; when 60 => Spg <= 124; when 93 => Spg <= 99; when 126 => Spg <= 66;
when 28 => Spg <= 92; when 61 => Spg <= 125; when 94 => Spg <= 98; when 127 => Spg <= 65;
when 29 => Spg <= 93; when 62 => Spg <= 126; when 95 => Spg <= 97; when 128 => Spg <= 64;
when 30 => Spg <= 94; when 63 => Spg <= 127; when 96 => Spg <= 96; when 129 => Spg <= 63;
when 31 => Spg <= 95; when 64 => Spg <= 128; when 97 => Spg <= 95; when 130 => Spg <= 62;
when 32 => Spg <= 96; when 65 => Spg <= 127; when 98 => Spg <= 94; when 131 => Spg <= 61;

              when 132 => Spg <= 60; when 162 => Spg <= 30; when 192 => Spg <= 0; when 222 => Spg <= 30;
              when 133 => Spg <= 59; when 163 => Spg <= 29; when 193 => Spg <= 1; when 223 => Spg <= 31;
              when 134 => Spg <= 58; when 164 => Spg <= 28; when 194 => Spg <= 2; when 224 => Spg <= 32;
              when 135 => Spg <= 57; when 165 => Spg <= 27; when 195 => Spg <= 3; when 225 => Spg <= 33;
              when 136 => Spg <= 56; when 166 => Spg <= 26; when 196 => Spg <= 4; when 226 => Spg <= 34;
              when 137 => Spg <= 55; when 167 => Spg <= 25; when 197 => Spg <= 5; when 227 => Spg <= 35;
              when 138 => Spg <= 54; when 168 => Spg <= 24; when 198 => Spg <= 6; when 228 => Spg <= 36;
              when 139 => Spg <= 53; when 169 => Spg <= 23; when 199 => Spg <= 7; when 229 => Spg <= 37;
              when 140 => Spg <= 52; when 170 => Spg <= 22; when 200 => Spg <= 8; when 230 => Spg <= 38;
             when 141 => Spg <= 51; when 171 => Spg <= 21; when 201 => Spg <= 9; when 231 => Spg <= 39;
              when 142 => Spg <= 50; when 172 => Spg <= 20; when 202 => Spg <= 10; when 232 => Spg <= 40;
              when 143 => Spg <= 49; when 173 => Spg <= 19; when 203 => Spg <= 11; when 233 => Spg <= 41;
              when 144 => Spg <= 48; when 174 => Spg <= 18; when 204 => Spg <= 12; when 234 => Spg <= 42;
              when 145 => Spg <= 47; when 175 => Spg <= 17; when 205 => Spg <= 13; when 235 => Spg <= 43;
              when 146 => Spg <= 46; when 176 => Spg <= 16; when 206 => Spg <= 14; when 236 => Spg <= 44;
             when 147 => Spg <= 45; when 177 => Spg <= 15; when 207 => Spg <= 15; when 237 => Spg <= 45;
              when 148 => Spg <= 44; when 178 => Spg <= 14; when 208 => Spg <= 16; when 238 => Spg <= 46;
              when 149 => Spg <= 43; when 179 => Spg <= 13; when 209 => Spg <= 17; when 239 => Spg <= 47;
              when 150 => Spg <= 42; when 180 => Spg <= 12; when 210 => Spg <= 18; when 240 => Spg <= 48;
              when 151 => Spg <= 41; when 181 => Spg <= 11; when 211 => Spg <= 19; when 241 => Spg <= 49;                
              when 152 => Spg <= 40; when 182 => Spg <= 10; when 212 => Spg <= 20; when 242 => Spg <= 50;
             when 153 => Spg <= 39; when 183 => Spg <= 9; when 213 => Spg <= 21; when 243 => Spg <= 51;
              when 154 => Spg <= 38; when 184 => Spg <= 8; when 214 => Spg <= 22; when 244 => Spg <= 52;
              when 155 => Spg <= 37; when 185 => Spg <= 7; when 215 => Spg <= 23; when 245 => Spg <= 53;
              when 156 => Spg <= 36; when 186 => Spg <= 6; when 216 => Spg <= 24; when 246 => Spg <= 54;
              when 157 => Spg <= 35; when 187 => Spg <= 5; when 217 => Spg <= 25; when 247 => Spg <= 55;
              when 158 => Spg <= 34; when 188 => Spg <= 4; when 218 => Spg <= 26; when 248 => Spg <= 56;
              when 159 => Spg <= 33; when 189 => Spg <= 3; when 219 => Spg <= 27; when 249 => Spg <= 57;
              when 160 => Spg <= 32; when 190 => Spg <= 2; when 220 => Spg <= 28; when 250 => Spg <= 58;
              when 161 => Spg <= 31; when 191 => Spg <= 1; when 221 => Spg <= 29; when 251 => Spg <= 59;

              when 252 => Spg <= 60; when 253 => Spg <= 61; when 254 => Spg <= 62; when 255 => Spg <= 63;                 
              end case;

elsif zustand = '0' then
case num is when 0 => Spg <= 128; when 33 => Spg <= 221; when 66 => Spg <= 256; when 99 => Spg <= 212;
when 1 => Spg <= 131; when 34 => Spg <= 223; when 67 => Spg <= 256; when 100 => Spg <= 209;
when 2 => Spg <= 134; when 35 => Spg <= 225; when 68 => Spg <= 255; when 101 => Spg <= 207;
when 3 => Spg <= 137; when 36 => Spg <= 227; when 69 => Spg <= 255; when 102 => Spg <= 204;
when 4 => Spg <= 141; when 37 => Spg <= 229; when 70 => Spg <= 255; when 103 => Spg <= 202;
when 5 => Spg <= 144; when 38 => Spg <= 231; when 71 => Spg <= 254; when 104 => Spg <= 199;
when 6 => Spg <= 147; when 39 => Spg <= 233; when 72 => Spg <= 254; when 105 => Spg <= 196;
when 7 => Spg <= 150; when 40 => Spg <= 234; when 73 => Spg <= 253; when 106 => Spg <= 194;
when 8 => Spg <= 153; when 41 => Spg <= 236; when 74 => Spg <= 252; when 107 => Spg <= 191;
when 9 => Spg <= 156; when 42 => Spg <= 238; when 75 => Spg <= 251; when 108 => Spg <= 188;
when 10 => Spg <= 159; when 43 => Spg <= 239; when 76 => Spg <= 250; when 109 => Spg <= 186;
when 11 => Spg <= 162; when 44 => Spg <= 241; when 77 => Spg <= 250; when 110 => Spg <= 183;
when 12 => Spg <= 165; when 45 => Spg <= 242; when 78 => Spg <= 249; when 111 => Spg <= 180;
when 13 => Spg <= 168; when 46 => Spg <= 244; when 79 => Spg <= 247; when 112 => Spg <= 177;
when 14 => Spg <= 171; when 47 => Spg <= 245; when 80 => Spg <= 246; when 113 => Spg <= 174;
when 15 => Spg <= 174; when 48 => Spg <= 246; when 81 => Spg <= 245; when 114 => Spg <= 171;
when 16 => Spg <= 177; when 49 => Spg <= 247; when 82 => Spg <= 244; when 115 => Spg <= 168;
when 17 => Spg <= 180; when 50 => Spg <= 249; when 83 => Spg <= 242; when 116 => Spg <= 165;
when 18 => Spg <= 183; when 51 => Spg <= 250; when 84 => Spg <= 241; when 117 => Spg <= 162;
when 19 => Spg <= 186; when 52 => Spg <= 250; when 85 => Spg <= 239; when 118 => Spg <= 159;
when 20 => Spg <= 188; when 53 => Spg <= 251; when 86 => Spg <= 238; when 119 => Spg <= 156;
when 21 => Spg <= 191; when 54 => Spg <= 252; when 87 => Spg <= 236; when 120 => Spg <= 153;
when 22 => Spg <= 194; when 55 => Spg <= 253; when 88 => Spg <= 234; when 121 => Spg <= 150;
when 23 => Spg <= 196; when 56 => Spg <= 254; when 89 => Spg <= 233; when 122 => Spg <= 147;
when 24 => Spg <= 199; when 57 => Spg <= 254; when 90 => Spg <= 231; when 123 => Spg <= 144;
when 25 => Spg <= 202; when 58 => Spg <= 255; when 91 => Spg <= 229; when 124 => Spg <= 141;
when 26 => Spg <= 204; when 59 => Spg <= 255; when 92 => Spg <= 227; when 125 => Spg <= 137;
when 27 => Spg <= 207; when 60 => Spg <= 255; when 93 => Spg <= 225; when 126 => Spg <= 134;
when 28 => Spg <= 209; when 61 => Spg <= 256; when 94 => Spg <= 223; when 127 => Spg <= 131;
when 29 => Spg <= 212; when 62 => Spg <= 256; when 95 => Spg <= 221; when 128 => Spg <= 128;
when 30 => Spg <= 214; when 63 => Spg <= 256; when 96 => Spg <= 219; when 129 => Spg <= 125;
when 31 => Spg <= 216; when 64 => Spg <= 256; when 97 => Spg <= 216; when 130 => Spg <= 122;
when 32 => Spg <= 219; when 65 => Spg <= 256; when 98 => Spg <= 214; when 131 => Spg <= 119;

            when 132 => Spg <= 115; when 162 => Spg <= 33; when 192 => Spg <= 0; when 222 => Spg <= 33;
            when 133 => Spg <= 112; when 163 => Spg <= 31; when 193 => Spg <= 0; when 223 => Spg <= 35;
            when 134 => Spg <= 109; when 164 => Spg <= 29; when 194 => Spg <= 0; when 224 => Spg <= 37;
            when 135 => Spg <= 106; when 165 => Spg <= 27; when 195 => Spg <= 0; when 225 => Spg <= 40;
            when 136 => Spg <= 103; when 166 => Spg <= 25; when 196 => Spg <= 1; when 226 => Spg <= 42;
            when 137 => Spg <= 100; when 167 => Spg <= 23; when 197 => Spg <= 1; when 227 => Spg <= 44;
            when 138 => Spg <= 97; when 168 => Spg <= 22; when 198 => Spg <= 1; when 228 => Spg <= 47;
            when 139 => Spg <= 94; when 169 => Spg <= 20; when 199 => Spg <= 2; when 229 => Spg <= 49;
            when 140 => Spg <= 91; when 170 => Spg <= 18; when 200 => Spg <= 2; when 230 => Spg <= 52;
           when 141 => Spg <= 88; when 171 => Spg <= 17; when 201 => Spg <= 3; when 231 => Spg <= 54;
            when 142 => Spg <= 85; when 172 => Spg <= 15; when 202 => Spg <= 4; when 232 => Spg <= 57;
            when 143 => Spg <= 82; when 173 => Spg <= 14; when 203 => Spg <= 5; when 233 => Spg <= 60;
            when 144 => Spg <= 79; when 174 => Spg <= 12; when 204 => Spg <= 6; when 234 => Spg <= 62;
            when 145 => Spg <= 76; when 175 => Spg <= 11; when 205 => Spg <= 6; when 235 => Spg <= 65;
            when 146 => Spg <= 73; when 176 => Spg <= 10; when 206 => Spg <= 7; when 236 => Spg <= 68;
           when 147 => Spg <= 70; when 177 => Spg <= 9; when 207 => Spg <= 9; when 237 => Spg <= 70;
            when 148 => Spg <= 68; when 178 => Spg <= 7; when 208 => Spg <= 10; when 238 => Spg <= 73;
            when 149 => Spg <= 65; when 179 => Spg <= 6; when 209 => Spg <= 11; when 239 => Spg <= 76;
            when 150 => Spg <= 62; when 180 => Spg <= 6; when 210 => Spg <= 12; when 240 => Spg <= 79;
            when 151 => Spg <= 60; when 181 => Spg <= 5; when 211 => Spg <= 14; when 241 => Spg <= 82;               
            when 152 => Spg <= 57; when 182 => Spg <= 4; when 212 => Spg <= 15; when 242 => Spg <= 85;
           when 153 => Spg <= 54; when 183 => Spg <= 3; when 213 => Spg <= 17; when 243 => Spg <= 88;
            when 154 => Spg <= 52; when 184 => Spg <= 2; when 214 => Spg <= 18; when 244 => Spg <= 91;
            when 155 => Spg <= 49; when 185 => Spg <= 2; when 215 => Spg <= 20; when 245 => Spg <= 94;
            when 156 => Spg <= 47; when 186 => Spg <= 1; when 216 => Spg <= 22; when 246 => Spg <= 97;
            when 157 => Spg <= 44; when 187 => Spg <= 1; when 217 => Spg <= 23; when 247 => Spg <= 100;
            when 158 => Spg <= 42; when 188 => Spg <= 1; when 218 => Spg <= 25; when 248 => Spg <= 103;
            when 159 => Spg <= 40; when 189 => Spg <= 0; when 219 => Spg <= 27; when 249 => Spg <= 106;
            when 160 => Spg <= 37; when 190 => Spg <= 0; when 220 => Spg <= 29; when 250 => Spg <= 109;
            when 161 => Spg <= 35; when 191 => Spg <= 0; when 221 => Spg <= 31; when 251 => Spg <= 112;

            when 252 => Spg <= 115; when 253 => Spg <= 119; when 254 => Spg <= 122; when 255 => Spg <= 128;               
            end case;

end if;
end process AUS_SN;

end structure;

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
vhdl语言如何设计图像处理系统
-
VHDL错误:Error (10500): VHDL syntax error at adff.vhd(16) near text "process"; expecting "if"
-
VHDL语言中关于运算符
-
密码锁,关于eda语言的vhdl
-
VHDL 语言三位计数器
-
用VHDL或Verilog语言设计RS232接口数据转发协议
-
vhdl语言SIGNAL i : integer range 0 to 31;
-
求一个vhdl语言写的键盘防抖程序
-
vhdl点阵只亮一个,无法扫描?
-
用vhdl语言设计一个11分频电路
-
求大神VHDL数字时钟设计 所有的源程序 编译和仿真
-
用vhdl实现0到15平方运算。
-
急~关于VHDL串口驱动的问题
-
可控脉冲发生器(用vhdl语言编写)
-
求基于VHDL的16QAM调制解调设计代码?
-
vhdl编译时显示已使用但未定义
-
用vhdl语言设计(7,4)循环码
-
8255VHDL语言波形问题
-
用VHDL语言编写打砖块小游戏,求程序啊!
-
记一道字节跳动的算法面试题
点击蓝色“五分钟学算法”关注我哟加个“星标”,天天中午 12:15,一起学算法作者 | 帅地来源公众号 | 苦逼的码农前几天有个朋友去面试字节跳动,面试官问了他一道链表相...
程序员真是太太太太太有趣了!!!
网络上虽然已经有了很多关于程序员的话题,但大部分人对这个群体还是很陌生。我们在谈论程序员的时候,究竟该聊些什么呢?各位程序员大佬们,请让我听到你们的声音!不管你是前端开发...
史上最详细的IDEA优雅整合Maven+SSM框架(详细思路+附带源码)
网上很多整合SSM博客文章并不能让初探ssm的同学思路完全的清晰,可以试着关掉整合教程,摇两下头骨,哈一大口气,就在万事具备的时候,开整,这个时候你可能思路全无 ~中招了咩~ ,还有一些同学依旧在使用eclipse或者Myeclipse开发,我想对这些朋友说IDEA 的编译速度很快,人生苦短,来不及解释了,直接上手idea吧。这篇文章每一步搭建过程都测试过了,应该不会有什么差错。本文章还有个比较优秀的特点,就是idea的使用,基本上关于idea的操作都算是比较详细的,所以不用太担心不会撸idea!最后,本文
吃人的那些 Java 名词:对象、引用、堆、栈
作为一个有着 8 年 Java 编程经验的 IT 老兵,说起来很惭愧,我被 Java 当中的四五个名词一直困扰着:**对象、引用、堆、栈、堆栈**(栈可同堆栈,因此是四个名词,也是五个名词)。每次我看到这几个名词,都隐隐约约觉得自己在被一只无形的大口慢慢地吞噬,只剩下满地的衣服碎屑(为什么不是骨头,因为骨头也好吃)。
LeetCode解题汇总目录
此篇为LeetCode刷题的汇总目录,方便大家查找,一起刷题,一起PK交流! 已解题目 考点 LeetCode 1. 两数之和(哈希) LeetCode 2. 两数相加(单链表反转) LeetCode 9. 回文数 LeetCode 11. 盛最多水的容器(双指针) LeetCode 15. 三数之和 LeetCode 17. 电话号码的字母组合(回溯...
我花了一夜用数据结构给女朋友写个H5走迷宫游戏
起因 又到深夜了,我按照以往在csdn和公众号写着数据结构!这占用了我大量的时间!我的超越妹妹严重缺乏陪伴而 怨气满满! 而女朋友时常埋怨,认为数据结构这么抽象难懂的东西没啥作用,常会问道:天天写这玩意,有啥作用。而我答道:能干事情多了,比如写个迷宫小游戏啥的! 当我码完字准备睡觉时:写不好别睡觉! 分析 如果用数据结构与算法造出东西来呢? ...
不识 Pandas,纵是老手也枉然?
作者 |周志鹏 责编 | 郭 芮 这段时间和一些做数据分析的同学闲聊,我发现数据分析技能入门阶段存在一个普遍性的问题,很多凭着兴趣入坑的同学,都能够很快熟悉Python基础语法,然后不约而同的一头扎进《利用Python进行数据分析》这本经典之中,硬着头皮啃完之后,好像自己什么都会了一点,然而实际操作起来既不知从何操起,又漏洞百出。 至于原因嘛,理解不够,实践不够是两条老牌的拦路...
接班马云的为何是张勇?
上海人、职业经理人、CFO 背景,集齐马云三大不喜欢的张勇怎么就成了阿里接班人? 作者|王琳 本文经授权转载自燃财经(ID:rancaijing) 9月10日,张勇转正了,他由阿里巴巴董事局候任主席正式成为阿里巴巴董事局主席,这也意味着阿里巴巴将正式开启“逍遥子时代”。 从2015年接任CEO开始,张勇已经将阿里巴巴股价拉升了超过200%。但和马云强大的个人光环比,张勇显得尤其...
14 个实用的数据库设计技巧
点击上方“后端技术精选”,选择“置顶公众号”技术文章第一时间送达!作者:echozhjuejin.im/post/5d5b4c6951882569eb570958原始单据...
我在快手认识了 4 位工程师,看到了快速发展的公司和员工如何彼此成就!
作者 | 胡巍巍 出品 | CSDN(ID:CSDNnews) 从西二旗地铁站B口出来,步行700多米可以看到一个工业建筑风格的院子。这个独立的院子和后厂村各大互联网公司的高楼林立有些不同。 院子里有7栋6层高的楼,几栋楼之间打通,可以从A栋自由穿行到F栋。这里就是快手总部。这个园区可以容纳6000多名员工,目前40%以上是研发人员。 这些研发人员维护着快手这款日活超过2亿的ap...
让程序员崩溃的瞬间(非程序员勿入)
今天给大家带来点快乐,程序员才能看懂。 来源:https://zhuanlan.zhihu.com/p/47066521 1. 公司实习生找 Bug 2.在调试时,将断点设置在错误的位置 3.当我有一个很棒的调试想法时 4.偶然间看到自己多年前写的代码 5.当我第一次启动我的单元测试时 ...
用Python分析2000款避孕套,得出这些有趣的结论
到现在为止,我们的淘宝教程已经写到了第四篇,前三篇分别是: 第一篇:Python模拟登录淘宝,详细讲解如何使用requests库登录淘宝pc端。 第二篇:淘宝自动登录2.0,新增Cookies序列化,教大家如何将cookies保存起来。 第三篇:Python爬取淘宝商品避孕套,教大家如何爬取淘宝pc端商品信息。 今天,我们来看看淘宝系列的第四篇 我们在上一篇的时候已经将淘宝数据爬取下来了,...
Spring高级技术梳理
Spring高级技术梳理 序言正文SpringDate部分Spring全家桶之SpringData——预科阶段Spring全家桶之SpringData——Spring 整合Hibernate与Hibernate JpaSpring全家桶之SpringData——Spring Data JPASpring全家桶之SpringData——SpringData RedisSpringBoot部分Sp...
如何在Windows中开启"上帝模式"
原文链接 : https://mp.weixin.qq.com/s?__biz=MzIwMjE1MjMyMw==&amp;mid=2650202982&amp;idx=1&amp;sn=2c6c609ce06db1cee81abf2ba797be1b&amp;chksm=8ee1438ab996ca9c2d0cd0f76426e92faa835beef20ae21b537c0867ec2773be...
Docker 零基础从入门到使用
诺!这只可爱的小鲸鱼就是docker了! Docker 是什么? Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中,然后发布到任何流行的 Linux 或 Windows 机器上( 摘自百度 )。 Docker 能干什么? 在讲 Docker 能干什么之前,我们不妨先看看没有 Docker 和有Docker分别是个什么样子的? 场景一 某公司需要开发...
再见 Docker,是时候拥抱下一代容器工具了
什么是 Linux 容器?Linux 容器是由 Linux 内核所提供的具有特定隔离功能的进程,Linux 容器技术能够让你对应用及其整个运行时环境(包括全部所需文件)一...
不足20行 python 代码,高效实现 k-means 均值聚类算法
关于 k-means 均值聚类算法的原理介绍、实现代码,网上有很多,但运行效率似乎都有点问题。今天稍微有点空闲,写了一个不足20行的 k-means 均值聚类算法,1万个样本平均耗时20毫秒(10次均值)。同样的数据样本,网上流行的算法平均耗时3000毫秒(10次均值)。差距竟然达百倍以上,令我深感意外,不由得再次向 numpy 献上膝盖!
分享靠写代码赚钱的一些门路
作者 mezod,译者 josephchang10如今,通过自己的代码去赚钱变得越来越简单,不过对很多人来说依然还是很难,因为他们不知道有哪些门路。今天给大家分享一个精彩...
北漂程序员,扬帆起航的地方
随着耳畔传来“你看这碗又大又圆、你看这面又长又宽......碗大宽无影、像儿时的回忆......”听着挺带劲,于是看了一下手机,原来是吴亦凡的作品《大碗宽面》,随着入耳的旋律,脑子也不由自主的想起 10 年前,在平西府吃 5 块钱一大碗牛肉板面的情景。 平西府最有名的就是这个牌坊啦。记得每当有同事问起住哪里?都会自豪的说住在王府里;隔三差五也会邀请朋友去府上坐坐。其实打内心里讲,平西府是一个...
技术人员要拿百万年薪,必须要经历这9个段位
很多人都问,技术人员如何成长,每个阶段又是怎样的,如何才能走出当前的迷茫,实现自我的突破。所以我结合我自己10多年的从业经验,总结了技术人员成长的9个段位,希望对大家的职...
多线程编程是后台开发人员的基本功
这里先给大家分享一个小故事:在我刚开始参加工作的那年,公司安排我开发一款即时通讯软件(IM,类似于 QQ 聊天软件),在这之前我心里也知道如果多线程操作一个整型值是要加锁...
相关热词 c#二进制字符转字节 c# rc4 c#中md5加密 c# 新建mvc项目 c# 引用mysql c#动态加载非托管dll c# 两个表数据同步 c# 返回浮点json c# imap 链接状态 c# 漂亮字