亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? corepwm_pkg.vhd

?? Actel Fusion System Management Development Kit UART Example. Contains Libero design using CoreABC. P
?? VHD
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
  fm.f_integer := x;
  return(fm);
 end fmt;

function fmt ( x : std_logic_vector) return T_FMT is
 variable fm : T_FMT;
 begin
  fm.f_type   := VECT;
  fm.f_vector(x'length-1 downto 0) := x;
  fm.f_length := x'length;
  return(fm);
 end fmt;

function fmt ( x : string ) return T_FMT is
 variable fm : T_FMT;
 begin
  fm.f_type   := STRG;
  fm.f_string(x'range) := x;
  if x'length+1<MAXSTRLEN then
    fm.f_string(x'length+1) := NUL;
  end if;
  fm.f_length := x'length;
  return(fm);
 end fmt;

function fmt ( x : std_logic) return T_FMT is
 variable fm : T_FMT;
 variable x1 : std_logic_vector ( 0 downto 0);
 begin
  x1(0) := x;
  fm.f_type   := VECT;
  fm.f_vector(x1'length-1 downto 0) := x1;
  fm.f_length := x1'length;
  return(fm);
 end fmt;

---------------------------------------------------------------------------
-- The Main Print Routine
--

procedure printf( str    : STRING; 
                  Params : T_FMT_ARRAY ) is
 file FSTR : TEXT is out "STD_OUTPUT";
 variable ll : LINE;
 variable str1,pstr : STRING (1 to MAXSTRLEN); 
 variable ip,op,pp,iplen : INTEGER;
 variable numlen : INTEGER;
 variable zeros  : BOOLEAN;
 variable more   : BOOLEAN;
 variable intval : INTEGER;
 variable vectval: QWORD;
 variable len    : INTEGER;
 variable ftype  : T_NUMTYPE;
 variable tnow   : INTEGER;
 begin
   iplen := str'length;
   ip:=1; op:=0; pp:=params'low;
   while ip<= iplen and str(ip)/=NUL loop
     if str(ip) = '%' then
       more:=TRUE;
       numlen:=0; zeros:=FALSE; 
       while more loop
          more:=FALSE;
          ip:=ip+1;
          ftype  := params(pp).f_type;
          intval := params(pp).f_integer;
          vectval:= params(pp).f_vector;
          len    := params(pp).f_length;
          case str(ip) is 
            when '0'     => ZEROS:=TRUE;
                            more:=TRUE;
            when '1' to '9' => 
                            numlen:= 10* numlen + character'pos(str(ip))-48;
                            more := TRUE;
            when '%'     => pstr := strcopy("%");
            when 'd'     => case ftype is
                              when INT  => pstr := 
                                           inttostr(intval,10,numlen,zeros);
                              when VECT => if is01(vectval,len) then
                                             intval:= 
                                         conv_integer(vectval(len-1 downto 0));
                                             pstr := 
                                         inttostr(intval,10,numlen,zeros);
                                           end if;
                              when others => pstr :=
                                         strcopy("INVALID PRINTF d:" & str);
                            end case;
                            pp:=pp+1;
            when 't'     => tnow := NOW / 1 ns;
                            pstr := inttostr(tnow,10,numlen,zeros);
            when 'h'     => case ftype is
                              when INT  => pstr := 
                                            inttostr(intval,16,numlen,zeros);
                              when VECT => if is01(vectval,len) then
                                             intval:= 
                                       conv_integer(vectval(len-1 downto 0));
                                             pstr := 
                                       inttostr(intval,16,numlen,zeros);
                                           end if;
                              when others => pstr :=
                                       strcopy("INVALID PRINTF h:" & str);
                            end case;
                            pp:=pp+1;
            when 'b'     => case ftype is
                              when INT    => vectval := ( others => '0');
                                             vectval(31 downto 0) :=
                                              conv_std_logic_vector(intval,32);
                                             len:=1;
                                             for i in 1 to 31 loop
                                             if vectval(i)='1' then
                                               len:=i;
                                             end if;
                                             end loop;
                                             pstr := 
                                        vecttostr(vectval,len,2,numlen,zeros);
                              when VECT   => pstr :=
                                        vecttostr(vectval,len,2,numlen,zeros);
                              when others => pstr := 
                                        strcopy("INVALID PRINTF b:" & str);
                            end case;
                            pp:=pp+1;
            when 'x'     => case ftype is
                              when INT  => pstr :=
                                      inttostr(intval,16,numlen,zeros);
                              when VECT => pstr :=
                                      vecttostr(vectval,len,16,numlen,zeros);
                              when others => pstr :=
                                      strcopy("INVALID PRINTF x:" & str);
                            end case;
                            pp:=pp+1;
            when 's'     => case ftype is
                              when STRG   => pstr:=params(pp).f_string;
                              when others => pstr :=
                                      strcopy("INVALID PRINTF s:" & str);
                            end case;
                            pp:=pp+1;
            when others  => pstr := strcopy("ILLEGAL FORMAT");
                            assert FALSE
                             report "TEXTIO Processing Problem"
                             severity FAILURE;
          end case;
       end loop;
       len := strlen(pstr);
       for i in 1 to len loop
          str1(op+i) := pstr(i);
       end loop;
       ip:=ip+1;
       op:=op+len;
     elsif str(ip)='\' then
       case str(ip+1) is
         when 'n' => str1(op+1):= NUL;
                     write( ll , str1 );
                     writeline( FSTR, ll);
                     op := 0; ip:=ip+1;
                     str1(op+1) := NUL;
         when others => 
       end case;
       ip:=ip+1;
     else
      op:=op+1;
      str1(op) := str(ip);
      ip:=ip+1;
     end if;
   end loop;
   if op>0 then
     str1(op+1):=NUL; 
     write( ll , str1 );
     writeline(FSTR, ll);
   end if;
 end printf;


procedure printf( str : STRING; params : T_FMT ) is
variable f_fmt : T_FMT_ARRAY ( 1 to 1);
begin
  f_fmt(1) := params;
  printf(str,f_fmt);
end printf;

procedure printf( str : STRING ) is
variable fm : T_FMT_ARRAY ( 1 to 1);
begin
  fm(1).f_type := NONE;
  printf(str,fm);
end printf;

procedure ifprintf( enable : BOOLEAN;
                    str    : STRING; 
                    Params : T_FMT_ARRAY ) is
begin
 if enable then
   printf(str,params);
 end if;
end ifprintf;

procedure ifprintf( enable : BOOLEAN; str : STRING; params : T_FMT ) is
variable f_fmt : T_FMT_ARRAY ( 1 to 1);
begin
 if enable then
    f_fmt(1) := params;
    printf(str,f_fmt);
 end if;
end ifprintf;

procedure ifprintf( enable : BOOLEAN; str : STRING ) is
variable fm : T_FMT_ARRAY ( 1 to 1);
begin
 if enable then
   fm(1).f_type := NONE;
   printf(str,fm);
 end if;
end ifprintf;



---------------------------------------------------------------------------
-- The Main Print Routine  Replicated to provide printf function
--

procedure fprintf( FSTR   : out text;
                   str    : STRING; 
                   Params : T_FMT_ARRAY ) is
 variable ll : LINE;
 variable str1,pstr : STRING (1 to MAXSTRLEN); 
 variable ip,op,pp,iplen : INTEGER;
 variable numlen : INTEGER;
 variable zeros  : BOOLEAN;
 variable more   : BOOLEAN;
 variable intval : INTEGER;
 variable vectval: QWORD;
 variable len    : INTEGER;
 variable ftype  : T_NUMTYPE;
 begin
   iplen := str'length;
   ip:=1; op:=0; pp:=params'low;
   while ip<= iplen and str(ip)/=NUL loop
     if str(ip) = '%' then
       more:=TRUE;
       numlen:=0; zeros:=FALSE; 
       while more loop
          more:=FALSE;
          ip:=ip+1;
          ftype  := params(pp).f_type;
          intval := params(pp).f_integer;
          vectval:= params(pp).f_vector;
          len    := params(pp).f_length;
          case str(ip) is 
            when '0'     => ZEROS:=TRUE;
                            more:=TRUE;
            when '1' to '9' => 
                            numlen:= 10* numlen + character'pos(str(ip))-48;
                            more := TRUE;
            when '%'     => pstr := strcopy("%");
            when 'd'     => case ftype is
                              when INT  => pstr := inttostr(intval,10,numlen,zeros);
                              when VECT => if is01(vectval,len) then
                                             intval:= conv_integer(vectval(len-1 downto 0));
                                             pstr := inttostr(intval,10,numlen,zeros);
                                           end if;
                              when others => pstr := strcopy("INVALID fprintf d:" & str);
                            end case;
                            pp:=pp+1;  
            when 'h'     => case ftype is
                              when INT  => pstr := inttostr(intval,16,numlen,zeros);
                              when VECT => if is01(vectval,len) then
                                             intval:= conv_integer(vectval(len-1 downto 0));
                                             pstr := inttostr(intval,16,numlen,zeros);
                                           end if;
                              when others => pstr := strcopy("INVALID fprintf h:" & str);
                            end case;
                            pp:=pp+1;  
            when 'b'     => case ftype is
                              when INT    => vectval := ( others => '0');
                                             vectval(31 downto 0) := conv_std_logic_vector(intval,32);
                                             len:=1;
                         for i in 1 to 31 loop
                                               if vectval(i)='1' then
                         len:=i;
                           end if;
                         end loop;
                                             pstr := vecttostr(vectval,len,2,numlen,zeros);
                              when VECT   => pstr := vecttostr(vectval,len,2,numlen,zeros);
                              when others => pstr := strcopy("INVALID fprintf b:" & str);
                            end case;                   
                            pp:=pp+1;  
            when 'x'     => case ftype is
                              when INT  => pstr := inttostr(intval,16,numlen,zeros);
                              when VECT => pstr := vecttostr(vectval,len,16,numlen,zeros);
                              when others => pstr := strcopy("INVALID fprintf x:" & str);
                            end case;
                            pp:=pp+1;  
            when 's'     => case ftype is
                              when STRG   => pstr:=params(pp).f_string;
                              when others => pstr := strcopy("INVALID fprintf s:" & str);
                            end case;
                            pp:=pp+1;
            when others  => pstr := strcopy("ILLEGAL FORMAT");
          end case;
       end loop;
       len := strlen(pstr);
       for i in 1 to len loop
          str1(op+i) := pstr(i);
       end loop;
       ip:=ip+1;
       op:=op+len;
     elsif str(ip)='\' then
       case str(ip+1) is
         when 'n' => str1(op+1):= NUL;
                     write( ll , str1 );
                     writeline( FSTR, ll);
                     op := 0; ip:=ip+1;
                     str1(op+1) := NUL;
         when others => 
       end case;
       ip:=ip+1;
     else
      op:=op+1;
      str1(op) := str(ip);
      ip:=ip+1;
     end if;
   end loop;
   if op>0 then
     str1(op+1):=NUL; 
     write( ll , str1 );
     writeline(FSTR, ll);
   end if;
 end fprintf;


procedure fprintf( FSTR : out text; str : STRING; params : T_FMT ) is
variable f_fmt : T_FMT_ARRAY ( 1 to 1);
begin
  f_fmt(1) := params;
  fprintf(fstr,str,f_fmt);
end fprintf;

procedure fprintf( FSTR : out text; str : STRING ) is
variable fm : T_FMT_ARRAY ( 1 to 1);
begin
  fm(1).f_type := NONE;
  fprintf(fstr,str,fm);
end fprintf;


------------------------------------------------------------------------
-- Check value of signal (expected output) & print message if mis-match
-- (single-bit version)
------------------------------------------------------------------------
procedure checksig (
d:			std_logic;
sig_name:	string;
v:			bit;
ERRCNT:		inout	integer) is
variable	nomatch:		boolean;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产在线观看| 一本久久a久久精品亚洲| 中文字幕一区日韩精品欧美| 欧洲视频一区二区| 国产福利一区二区三区在线视频| 亚洲一区二区成人在线观看| 国产精品天干天干在线综合| 91精品国产综合久久香蕉麻豆 | 日韩电影在线免费看| 国产午夜精品久久| 日韩欧美国产1| 欧美视频日韩视频| 99免费精品在线观看| 国产一区二区三区蝌蚪| 日本色综合中文字幕| 一区二区视频在线| 国产精品国产三级国产普通话三级| 欧美电影免费观看高清完整版在| 欧美亚洲综合色| 色综合天天综合给合国产| 国产精品亚洲视频| 国产在线观看一区二区| 麻豆免费看一区二区三区| 亚洲美女屁股眼交| 日韩一区在线播放| 国产亚洲欧美色| 久久天堂av综合合色蜜桃网| 91精品综合久久久久久| 欧美日韩精品三区| 欧美视频一区在线| 欧美日韩中文字幕一区| 91国偷自产一区二区开放时间| 不卡欧美aaaaa| 国产成人av电影免费在线观看| 精品一区二区三区在线播放| 日韩国产精品91| 青青草97国产精品免费观看| 丝袜美腿亚洲色图| 视频一区免费在线观看| 日韩av一区二区三区| 日日骚欧美日韩| 日日夜夜免费精品视频| 日本伊人精品一区二区三区观看方式| 一区二区成人在线| 亚洲制服丝袜一区| 午夜精品一区二区三区免费视频 | 7777精品伊人久久久大香线蕉完整版 | 日韩午夜电影av| 日韩一区二区在线播放| 日韩一区二区三区免费观看| 日韩午夜激情免费电影| 久久综合狠狠综合久久综合88| 久久综合成人精品亚洲另类欧美| 日韩精品专区在线影院重磅| 日韩精品一区二区三区在线观看| 精品成人一区二区三区| 国产视频不卡一区| 成人免费一区二区三区视频 | 国产高清精品久久久久| av电影在线观看完整版一区二区| 99久久综合国产精品| 99国产欧美久久久精品| 欧美日韩一区二区欧美激情| 欧美一卡二卡三卡| 国产欧美日韩亚州综合| 自拍偷拍国产精品| 日韩精品电影一区亚洲| 精品亚洲欧美一区| 成人h版在线观看| 日本道精品一区二区三区| 欧美情侣在线播放| 久久久久成人黄色影片| 亚洲日穴在线视频| 日韩福利视频导航| 成人精品gif动图一区| 91精品办公室少妇高潮对白| 欧美一区二区三区影视| 国产日产精品一区| 午夜视频一区二区三区| 国产一区二区三区在线看麻豆| 91亚洲精华国产精华精华液| 在线播放国产精品二区一二区四区 | 午夜激情一区二区三区| 国产伦精品一区二区三区免费迷 | 国产一区二区三区在线看麻豆| 91免费精品国自产拍在线不卡| 91精品国产aⅴ一区二区| 国产精品美女www爽爽爽| 图片区日韩欧美亚洲| 国产成人在线看| 欧美久久一区二区| 中文字幕一区二区三中文字幕| 日本中文在线一区| 色中色一区二区| 久久久777精品电影网影网| 亚洲主播在线播放| 高清在线成人网| 91精品国产一区二区三区 | 久久国产麻豆精品| 在线国产亚洲欧美| 国产精品丝袜91| 极品少妇一区二区三区精品视频| 欧美丝袜丝交足nylons| 国产精品美女久久久久久久久| 免费亚洲电影在线| 欧美艳星brazzers| 一区免费观看视频| 国产伦精品一区二区三区视频青涩 | 一本一道久久a久久精品综合蜜臀| 欧美成人性福生活免费看| 亚洲一区自拍偷拍| 91在线无精精品入口| 日本一区二区三区免费乱视频 | 欧美国产日产图区| 精品一区二区免费视频| 91.com在线观看| 亚洲成人激情av| 色综合咪咪久久| 亚洲欧洲在线观看av| 成人深夜视频在线观看| 久久久影视传媒| 久久狠狠亚洲综合| 日韩欧美国产精品| 日本 国产 欧美色综合| 欧美精品乱人伦久久久久久| 亚洲一区二区三区爽爽爽爽爽| av成人动漫在线观看| 国产蜜臀97一区二区三区| 国产一二三精品| 久久综合久久99| 国内外成人在线视频| 精品久久久久久久久久久久久久久| 日韩电影在线观看网站| 91精品一区二区三区在线观看| 天天综合天天做天天综合| 欧美日韩性生活| 午夜激情久久久| 欧美一级精品大片| 极品少妇一区二区| 久久久国产一区二区三区四区小说 | 亚洲va中文字幕| 在线免费观看日本一区| 亚洲国产日日夜夜| 欧美美女喷水视频| 美国三级日本三级久久99| 日韩欧美一二区| 国产一区在线看| 国产肉丝袜一区二区| 成人午夜在线免费| 亚洲欧洲日产国码二区| 91视频观看视频| 亚洲国产欧美另类丝袜| 欧美日本在线观看| 日韩av网站免费在线| 久久―日本道色综合久久| 粉嫩嫩av羞羞动漫久久久| 中文字幕亚洲不卡| 欧美性猛交xxxx黑人交| 奇米影视一区二区三区小说| 2021国产精品久久精品| 成人国产亚洲欧美成人综合网| 亚洲蜜臀av乱码久久精品 | 欧美国产激情一区二区三区蜜月| 成人听书哪个软件好| 亚洲综合视频网| 精品国产自在久精品国产| 成人午夜视频在线| 亚洲国产日日夜夜| 久久久久久电影| 欧美性感一类影片在线播放| 日韩成人一级大片| 欧美国产激情一区二区三区蜜月 | 911精品产国品一二三产区| 国产一区二区三区精品视频| 中文字幕日本乱码精品影院| 欧美日韩成人在线一区| 国产精品综合av一区二区国产馆| 日韩毛片在线免费观看| 欧美一区三区二区| 99精品国产99久久久久久白柏| 日韩精品一二三| 中文在线免费一区三区高中清不卡| 在线欧美一区二区| 国产电影一区二区三区| 亚洲一区二区在线播放相泽| 久久久91精品国产一区二区三区| 欧美性猛交xxxx乱大交退制版 | 欧美精品在欧美一区二区少妇| 国内外成人在线| 亚洲福利一二三区| 亚洲国产精品高清| 欧美精品高清视频| 99精品欧美一区二区三区小说| 日本va欧美va精品发布| 亚洲乱码中文字幕综合| 国产亚洲成aⅴ人片在线观看| 欧美三级午夜理伦三级中视频| 国产不卡视频在线观看| 日本网站在线观看一区二区三区| 成人免费一区二区三区视频|