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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? aes_fips_tester.vhd

?? Consecutive AES core Description of project.. Features - AES encoder - 128/192/256 bit -
?? VHD
字號:
--*************************************************************************-- Project    : AES128                                                    *--                                                                        *-- Block Name : aes_fips_tester.vhd                                       *--                                                                        *-- Author     : Hemanth Satyanarayana                                     *--                                                                        *-- Email      : hemanth@opencores.org                                     *--                                                                        *-- Description: Test bench module to test the aes implemntation           *--              for KAT based tests.                                      *--                         .                                              *--                                                                        *-- Revision History                                                       *-- |-----------|-------------|---------|---------------------------------|*-- |   Name    |    Date     | Version |          Revision details       |*-- |-----------|-------------|---------|---------------------------------|*-- | Hemanth   | 15-Dec-2004 | 1.1.1.1 |            Uploaded             |*-- |-----------|-------------|---------|---------------------------------|*--                                                                        *--  Refer FIPS-KAT Document for details                                   *--*************************************************************************--                                                                        *-- Copyright (C) 2004 Author                                              *--                                                                        *-- This source file may be used and distributed without                   *-- restriction provided that this copyright statement is not              *-- removed from the file and that any derivative work contains            *-- the original copyright notice and the associated disclaimer.           *--                                                                        *-- This source file is free software; you can redistribute it             *-- and/or modify it under the terms of the GNU Lesser General             *-- Public License as published by the Free Software Foundation;           *-- either version 2.1 of the License, or (at your option) any             *-- later version.                                                         *--                                                                        *-- This source is distributed in the hope that it will be                 *-- useful, but WITHOUT ANY WARRANTY; without even the implied             *-- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR                *-- PURPOSE.  See the GNU Lesser General Public License for more           *-- details.                                                               *--                                                                        *-- You should have received a copy of the GNU Lesser General              *-- Public License along with this source; if not, download it             *-- from http://www.opencores.org/lgpl.shtml                               *--                                                                        *--*************************************************************************library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_arith.all;use ieee.math_real.all;use std.textio.all;use ieee.std_logic_textio.all;library std_developerskit;use std_developerskit.std_iopak.all;entity aes_fips_tester is end aes_fips_tester;architecture behavioral of aes_fips_tester iscomponent aes128_fastport(      clk       : in std_logic;      reset     : in std_logic;      start     : in std_logic;      mode      : in std_logic;      load      : in std_logic;      key       : in std_logic_vector(63 downto 0);      data_in   : in std_logic_vector(63 downto 0);      data_out  : out std_logic_vector(127 downto 0);      done      : out std_logic     );     end component;signal clock_tb: std_logic:='0';signal reset_tb: std_logic:='0';signal start_tb: std_logic:='0';signal load_tb: std_logic:='0';signal done_tb: std_logic;--#############################signal mode_tb: std_logic:='1'; -- 1-> encode; 0-> decode--#############################signal data_in_tb: std_logic_vector(63 downto 0):=X"0000000000000000";signal data_out_tb: std_logic_vector(127 downto 0);signal key_tb: std_logic_vector(63 downto 0):=X"0000000000000000";beginclock_tb <= not clock_tb after 50 ns;reset_tb <= '1','0' after 150 ns;aes_i: aes128_fast       port map(                  clk      => clock_tb,                  reset    => reset_tb,                  start    => start_tb,                  mode     => mode_tb,                  load     => load_tb,                  key      => key_tb,                  data_in  => data_in_tb,                  data_out => data_out_tb,                  done     => done_tb                 );processfile infile1 : text open read_mode is "ecb_tbl.txt";file outfile1: text open write_mode is "ecb_tb_results.txt";file infile2 : text open read_mode is "ecb_vk.txt";file outfile2: text open write_mode is "ecb_vk_results.txt";file infile3 : text open read_mode is "ecb_vt.txt";file outfile3: text open write_mode is "ecb_vt_results.txt";variable inline       : line;variable outline      : line;variable itr_numline  : string(1 to 2);variable key_line     : string(1 to 4);variable pt_line      : string(1 to 3);variable ct_line      : string(1 to 3);variable iteration_num: integer;variable hex_key_str  : string(1 to 32);variable pt_str       : string(1 to 32);variable ct_str       : string(1 to 32);variable exp_cipher   : std_logic_vector(127 downto 0);begin  wait for 1 ns;  wait until reset_tb = '0';  write(outline,string'("Tables Known Answer Tests"));  writeline(outfile1,outline);  write(outline,string'("-------------------------"));  writeline(outfile1,outline);  while(not endfile(infile1)) loop    wait until rising_edge(clock_tb);    wait until rising_edge(clock_tb);    readline(infile1,inline);    read(inline,itr_numline);    read(inline,iteration_num);    readline(infile1,inline);    read(inline,key_line);    read(inline,hex_key_str);    readline(infile1,inline);    read(inline,pt_line);    read(inline,pt_str);    readline(infile1,inline);    read(inline,ct_line);    read(inline,ct_str);    wait until rising_edge(clock_tb);    load_tb <= '1';    key_tb <= to_StdLogicVector(From_HexString(hex_key_str(1 to 16)));    data_in_tb <= to_StdLogicVector(From_HexString(pt_str(1 to 16)));    exp_cipher := to_StdLogicVector(From_HexString(ct_str));    wait until rising_edge(clock_tb);    load_tb <= '0';    key_tb <= to_StdLogicVector(From_HexString(hex_key_str(17 to 32)));    data_in_tb <= to_StdLogicVector(From_HexString(pt_str(17 to 32)));    wait until rising_edge(clock_tb);    wait until rising_edge(clock_tb);    start_tb <= '1';    wait until rising_edge(clock_tb);    start_tb <= '0';        wait until done_tb = '1';    wait until rising_edge(clock_tb);    write(outline,string'("Test Vector Number - "));    write(outline,iteration_num);    writeline(outfile1,outline);    write(outline,string'("Result: "));    if(data_out_tb = exp_cipher) then      write(outline,string'("OK"));    else      write(outline,string'("Error"));    end if;    writeline(outfile1,outline);  end loop;  wait until rising_edge(clock_tb);  write(outline,string'("Variable Key Known Answer Tests"));  writeline(outfile2,outline);  write(outline,string'("-------------------------------"));  writeline(outfile2,outline);  while(not endfile(infile2)) loop    data_in_tb <= X"0000000000000000";    wait until rising_edge(clock_tb);    wait until rising_edge(clock_tb);    readline(infile2,inline);    read(inline,itr_numline);    read(inline,iteration_num);    readline(infile2,inline);    read(inline,key_line);    read(inline,hex_key_str);    readline(infile2,inline);    read(inline,ct_line);    read(inline,ct_str);    wait until rising_edge(clock_tb);    load_tb <= '1';    key_tb <= to_StdLogicVector(From_HexString(hex_key_str(1 to 16)));    exp_cipher := to_StdLogicVector(From_HexString(ct_str));    wait until rising_edge(clock_tb);    load_tb <= '0';    key_tb <= to_StdLogicVector(From_HexString(hex_key_str(17 to 32)));    wait until rising_edge(clock_tb);    wait until rising_edge(clock_tb);    start_tb <= '1';    wait until rising_edge(clock_tb);    start_tb <= '0';        wait until done_tb = '1';    wait until rising_edge(clock_tb);    write(outline,string'("Test Vector Number - "));    write(outline,iteration_num);    writeline(outfile2,outline);    write(outline,string'("Result: "));    if(data_out_tb = exp_cipher) then      write(outline,string'("OK"));    else      write(outline,string'("Error"));    end if;    writeline(outfile2,outline);  end loop;  wait until rising_edge(clock_tb);  write(outline,string'("Variable Text Known Answer Tests"));  writeline(outfile3,outline);  write(outline,string'("--------------------------------"));  writeline(outfile3,outline);  while(not endfile(infile3)) loop    key_tb <= X"0000000000000000";    wait until rising_edge(clock_tb);    wait until rising_edge(clock_tb);    readline(infile3,inline);    read(inline,itr_numline);    read(inline,iteration_num);    readline(infile3,inline);    read(inline,pt_line);    read(inline,pt_str);    readline(infile3,inline);    read(inline,ct_line);    read(inline,ct_str);    wait until rising_edge(clock_tb);    load_tb <= '1';    data_in_tb <= to_StdLogicVector(From_HexString(pt_str(1 to 16)));    exp_cipher := to_StdLogicVector(From_HexString(ct_str));    wait until rising_edge(clock_tb);    load_tb <= '0';    data_in_tb <= to_StdLogicVector(From_HexString(pt_str(17 to 32)));    wait until rising_edge(clock_tb);    wait until rising_edge(clock_tb);    start_tb <= '1';    wait until rising_edge(clock_tb);    start_tb <= '0';        wait until done_tb = '1';    wait until rising_edge(clock_tb);    write(outline,string'("Test Vector Number - "));    write(outline,iteration_num);    writeline(outfile3,outline);    write(outline,string'("Result: "));    if(data_out_tb = exp_cipher) then      write(outline,string'("OK"));    else      write(outline,string'("Error"));    end if;    writeline(outfile3,outline);  end loop;end process;end behavioral;    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲另类一区二区| 国产精品久久三区| 99久久99精品久久久久久| 性欧美大战久久久久久久久| 欧美国产日本韩| 日韩一区国产二区欧美三区| 99久久免费精品高清特色大片| 日韩中文欧美在线| 亚洲日本免费电影| 久久精品一区二区三区不卡牛牛| 欧美视频在线不卡| 懂色av一区二区三区蜜臀| 欧美a级一区二区| 亚洲综合成人网| 国产精品人成在线观看免费| 精品免费国产一区二区三区四区| 日本道免费精品一区二区三区| 国产一区欧美一区| 亚洲成在人线免费| 亚洲码国产岛国毛片在线| 久久久久久影视| 日韩欧美国产电影| 欧美乱妇15p| 在线国产亚洲欧美| 91在线精品一区二区三区| 国产黑丝在线一区二区三区| 久久66热偷产精品| 麻豆国产欧美一区二区三区| 五月天视频一区| 亚洲一区二区三区四区的| 1024国产精品| 一区在线观看视频| 国产精品理论片在线观看| 久久尤物电影视频在线观看| 日韩欧美成人一区| 欧美一区二区三区色| 9191成人精品久久| 91 com成人网| 91精品国产综合久久精品app| 欧美色图12p| 欧美日韩一区在线观看| 欧美少妇一区二区| 欧美喷水一区二区| 日韩一区二区在线观看视频播放| 欧美一级艳片视频免费观看| 91精品国产91久久久久久最新毛片 | 成人18视频在线播放| 国产成人久久精品77777最新版本| 国产一区二区三区不卡在线观看| 国产又黄又大久久| 国产成人精品在线看| 成人h动漫精品| 色婷婷激情一区二区三区| 欧洲亚洲精品在线| 欧美裸体bbwbbwbbw| 7878成人国产在线观看| 精品久久久久久久久久久久包黑料| 日韩一区二区三区免费观看| 精品嫩草影院久久| 国产精品视频九色porn| 1024精品合集| 亚欧色一区w666天堂| 免费观看久久久4p| 国产精品一二三区| 一本到不卡免费一区二区| 欧美男女性生活在线直播观看| 69p69国产精品| 久久久不卡网国产精品一区| 国产精品毛片久久久久久| 一区二区三区免费网站| 日本免费新一区视频| 精品一区二区在线播放| 成人av网站在线观看| 欧美蜜桃一区二区三区| 2023国产一二三区日本精品2022| 国产精品美女久久久久aⅴ国产馆| 伊人一区二区三区| 蜜臀久久久久久久| 成人免费毛片嘿嘿连载视频| 日本丰满少妇一区二区三区| 日韩精品一区二区三区在线 | 日本色综合中文字幕| 国产主播一区二区三区| 色婷婷久久久久swag精品| 9191精品国产综合久久久久久| 国产女人aaa级久久久级| 亚洲成人资源在线| 国产成人在线视频免费播放| 欧美性猛交xxxx黑人交| 久久久精品综合| 亚洲图片一区二区| 国产成人精品一区二区三区网站观看| 欧美视频精品在线| 国产精品理论片在线观看| 男男成人高潮片免费网站| 成人免费看视频| 日韩亚洲电影在线| 亚洲午夜日本在线观看| 国产高清在线观看免费不卡| 欧美高清视频在线高清观看mv色露露十八| 久久久久久电影| 日韩av一级电影| 在线国产电影不卡| 亚洲欧洲成人精品av97| 黄色资源网久久资源365| 欧美日精品一区视频| 国产精品久久久久7777按摩| 久久国产精品72免费观看| 在线免费观看一区| 国产精品久久久久久久第一福利| 另类小说图片综合网| 欧美老肥妇做.爰bbww视频| 亚洲欧洲韩国日本视频| 国产成+人+日韩+欧美+亚洲| 日韩一区二区电影在线| 亚洲超碰97人人做人人爱| av电影一区二区| 国产色一区二区| 极品尤物av久久免费看| 91精品国产高清一区二区三区 | 精品亚洲欧美一区| 欧美一级艳片视频免费观看| 亚洲午夜在线视频| 欧美在线999| 亚洲人成网站色在线观看| 成人激情午夜影院| 国产三级久久久| 国产**成人网毛片九色 | 337p亚洲精品色噜噜狠狠| 亚洲欧美另类在线| 91亚洲永久精品| 亚洲女同女同女同女同女同69| 成人精品小蝌蚪| 成人欧美一区二区三区1314| av中文字幕一区| 最新不卡av在线| 91免费国产在线| 一区二区三区四区蜜桃| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 日韩精品福利网| 欧美精品日韩一区| 日本欧美一区二区在线观看| 宅男噜噜噜66一区二区66| 日本视频在线一区| 精品日韩成人av| 国产1区2区3区精品美女| 国产精品久久久久久久久免费桃花| 高清成人免费视频| 中文字幕欧美一| 欧美视频一区二| 奇米色777欧美一区二区| 精品福利视频一区二区三区| 国产精品资源网站| 国产精品电影一区二区三区| 色激情天天射综合网| 亚洲一区二区偷拍精品| 91精品国产综合久久久久久| 精品一区二区精品| 亚洲国产精品成人综合| 91麻豆swag| 奇米在线7777在线精品| www激情久久| 91麻豆精东视频| 奇米色777欧美一区二区| 久久久久99精品国产片| 91视频一区二区三区| 亚洲成人av中文| 精品国产不卡一区二区三区| 成人综合婷婷国产精品久久 | 亚洲成人自拍偷拍| 欧美成人欧美edvon| 99久久夜色精品国产网站| 丝瓜av网站精品一区二区| 久久欧美一区二区| 色婷婷综合久久久久中文| 日本欧洲一区二区| 国产精品久久久久天堂| 欧美日韩电影在线| 国产麻豆精品视频| 亚洲柠檬福利资源导航| 精品久久久久久久久久久院品网| 成人激情免费视频| 麻豆久久一区二区| 亚洲天堂精品视频| 精品日产卡一卡二卡麻豆| 色天天综合色天天久久| 久久成人久久鬼色| 亚洲久本草在线中文字幕| 日韩视频在线你懂得| 91视频在线观看| 国产呦萝稀缺另类资源| 亚洲成人一二三| 国产精品伦理在线| 欧美一区二视频| 91啪在线观看| 国产精品一区二区三区乱码| 艳妇臀荡乳欲伦亚洲一区| 国产偷v国产偷v亚洲高清| 欧美一区二区三区四区久久| 欧洲一区二区三区在线|