资源简介
基于verilog硬件描述语言设计的SM3算法IP核,通过vivado进行设计并调试通过,提供一个C语言的调用接口
代码片段和文件信息
/******************************************************************************
*
* Copyright (C) 2009 - 2014 Xilinx Inc. All rights reserved.
*
* Permission is hereby granted free of charge to any person obtaining a copy
* of this software and associated documentation files (the “Software“) to deal
* in the Software without restriction including without limitation the rights
* to use copy modify merge publish distribute sublicense and/or sell
* copies of the Software and to permit persons to whom the Software is
* furnished to do so subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Use of the Software is limited solely to applications:
* (a) running on a Xilinx device or
* (b) that interact with a Xilinx device through a bus or interconnect.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
* IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* XILINX BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY
* WHETHER IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* Except as contained in this notice the name of the Xilinx shall not be used
* in advertising or otherwise to promote the sale use or other dealings in
* this Software without prior written authorization from Xilinx.
*
******************************************************************************/
/*
* helloworld.c: simple test application
*
* This application configures UART 16550 to baud rate 9600.
* PS7 UART (Zynq) is not initialized by this application since
* bootrom/bsp configures it to baud rate 115200
*
* ------------------------------------------------
* | UART TYPE BAUD RATE |
* ------------------------------------------------
* uartns550 9600
* uartlite Configurable only in HW design
* ps7_uart 115200 (configured by bootrom/bsp)
*/
#include
#include “platform.h“
#include “xbasic_types.h“
#include “xparameters.h“
#include
#include
#include
#include “sm3_ip.h“
#include “Xil_io.h“
#define SM3_A 0x7380166f
#define SM3_B 0x4914b2b9
#define SM3_C 0x172442d7
#define SM3_D 0xda8a0600
#define SM3_E 0xa96f30bc
#define SM3_F 0x163138aa
#define SM3_G 0xe38dee4d
#define SM3_H 0xb0fb0e4e
#define char_to_int(nbi) \
{ \
(n) = ((unsigned long)(b)[(i)] << 24) \
| ((unsigned long)(b)[(i)+1] << 16) \
| ((unsigned long)(b)[(i)+2] << 8) \
| ((unsigned long)(b)[(i)+3]); \
}
#define int_to_char(nbi) \
{ \
(b)[(i)] = (unsigned char)((n) >> 24
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-09 16:41 sm3_ip\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\edit_sm3_ip_v1_0.hw\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\edit_sm3_ip_v1_0.hw\webtalk\
文件 59 2018-01-04 18:55 sm3_ip\ip_repo\edit_sm3_ip_v1_0.hw\webtalk\.xsim_webtallk.info
文件 386 2018-01-04 18:55 sm3_ip\ip_repo\edit_sm3_ip_v1_0.hw\webtalk\labtool_webtalk.log
文件 2867 2018-01-04 18:55 sm3_ip\ip_repo\edit_sm3_ip_v1_0.hw\webtalk\usage_statistics_ext_labtool.html
文件 2433 2018-01-04 18:55 sm3_ip\ip_repo\edit_sm3_ip_v1_0.hw\webtalk\usage_statistics_ext_labtool.xm
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\edit_sm3_ip_v1_0.ip_user_files\
目录 0 2018-01-04 18:50 sm3_ip\ip_repo\edit_sm3_ip_v1_0.ip_user_files\ipstatic\
目录 0 2018-12-11 17:04 sm3_ip\ip_repo\sm3_ip_1.0\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\bd\
文件 7835 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\bd\bd.tcl
文件 36598 2018-01-04 18:55 sm3_ip\ip_repo\sm3_ip_1.0\component.xm
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\drivers\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\data\
文件 183 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\data\sm3_ip.mdd
文件 168 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\data\sm3_ip.tcl
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\src\
文件 475 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\src\Makefile
文件 185 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\src\sm3_ip.c
文件 4038 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\src\sm3_ip.h
文件 1989 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\drivers\sm3_ip_v1_0\src\sm3_ip_selftest.c
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\bfm_design\
文件 3802 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\bfm_design\design.tcl
文件 6983 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\bfm_design\sm3_ip_v1_0_tb.v
目录 0 2018-11-01 10:31 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\debug_hw_design\
文件 8412 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\debug_hw_design\design.tcl
文件 1396 2018-01-04 18:50 sm3_ip\ip_repo\sm3_ip_1.0\example_designs\debug_hw_design\sm3_ip_v1_0_hw_test.tcl
............此处省略47个文件信息
- 上一篇:华为公司c语言编程规范
- 下一篇:C++版DS证据理论
评论
共有 条评论