• 大小: 7.04MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-19
  • 语言: 其他
  • 标签: FPGA  VGA  GRAY  

资源简介

基于FPGA的灰度图中值滤波,首先将彩色图片进行转灰度处理,紧接着进行数据流的中值滤波。图片大小256*256,开发板zybo.

资源截图

代码片段和文件信息

/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                       */
/*  \   \        Copyright (c) 2003-2009 Xilinx Inc.                */
/*  /   /          All Right Reserved.                                 */
/* /---/   /\                                                         */
/* \   \  /  \                                                      */
/*  \___\/\___\                                                    */
/***********************************************************************/

/* This file is designed for use with ISim build 0x7708f090 */

#define XSI_HIDE_SYMBOL_SPEC true
#include “xsi.h“
#include 
#ifdef __GNUC__
#include 
#else
#include 
#define alloca _alloca
#endif
static const char *ng0 = “D:/FPGA_ise/vga_histogram_zybo/tb_clk_div.v“;
static int ng1[] = {0 0};



static void Always_40_0(char *t0)
{
    char t3[8];
    char *t1;
    char *t2;
    char *t4;
    char *t5;
    char *t6;
    char *t7;
    unsigned int t8;
    unsigned int t9;
    unsigned int t10;
    unsigned int t11;
    unsigned int t12;
    char *t13;
    char *t14;
    char *t15;
    unsigned int t16;
    unsigned int t17;
    unsigned int t18;
    unsigned int t19;
    unsigned int t20;
    unsigned int t21;
    unsigned int t22;
    unsigned int t23;
    char *t24;

LAB0:    t1 = (t0 + 2528U);
    t2 = *((char **)t1);
    if (t2 == 0)
        goto LAB2;

LAB3:    goto *t2;

LAB2:    xsi_set_current_line(40 ng0);
    t2 = (t0 + 2336);
    xsi_process_wait(t2 10000LL);
    *((char **)t1) = &&LAB4;

LAB1:    return;
LAB4:    xsi_set_current_line(40 ng0);
    t4 = (t0 + 1448);
    t5 = (t4 + 56U);
    t6 = *((char **)t5);
    memset(t3 0 8);
    t7 = (t6 + 4);
    t8 = *((unsigned int *)t7);
    t9 = (~(t8));
    t10 = *((unsigned int *)t6);
    t11 = (t10 & t9);
    t12 = (t11 & 1U);
    if (t12 != 0)
        goto LAB8;

LAB6:    if (*((unsigned int *)t7) == 0)
        goto LAB5;

LAB7:    t13 = (t3 + 4);
    *((unsigned int *)t3) = 1;
    *((unsigned int *)t13) = 1;

LAB8:    t14 = (t3 + 4);
    t15 = (t6 + 4);
    t16 = *((unsigned int *)t6);
    t17 = (~(t16));
    *((unsigned int *)t3) = t17;
    *((unsigned int *)t14) = 0;
    if (*((unsigned int *)t15) != 0)
        goto LAB10;

LAB9:    t22 = *((unsigned int *)t3);
    *((unsigned int *)t3) = (t22 & 1U);
    t23 = *((unsigned int *)t14);
    *((unsigned int *)t14) = (t23 & 1U);
    t24 = (t0 + 1448);
    xsi_vlogvar_wait_assign_value(t24 t3 0 0 1 0LL);
    goto LAB2;

LAB5:    *((unsigned int *)t3) = 1;
    goto LAB8;

LAB10:    t18 = *((unsigned int *)t3);
  

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-04-08 13:38  赵丽颖中值滤波\
     目录           0  2018-04-08 13:36  赵丽颖中值滤波\vga_median_filter\
     文件         250  2018-04-07 22:29  赵丽颖中值滤波\vga_median_filter\average_tt.cmd_log
     文件           6  2018-04-08 12:37  赵丽颖中值滤波\vga_median_filter\average_tt.lso
     文件         172  2018-04-08 12:37  赵丽颖中值滤波\vga_median_filter\average_tt.prj
     文件        2232  2018-04-08 12:37  赵丽颖中值滤波\vga_median_filter\average_tt.stx
     文件         273  2018-04-07 22:29  赵丽颖中值滤波\vga_median_filter\average_tt.tfi
     文件        5036  2018-04-08 12:58  赵丽颖中值滤波\vga_median_filter\average_tt.v
     文件        1166  2018-04-08 12:37  赵丽颖中值滤波\vga_median_filter\average_tt.xst
     文件      393385  2018-03-28 21:57  赵丽颖中值滤波\vga_median_filter\CrazyBird.coe
     文件           6  2018-03-29 12:51  赵丽颖中值滤波\vga_median_filter\div_clk.lso
     文件          26  2018-03-29 12:51  赵丽颖中值滤波\vga_median_filter\div_clk.prj
     文件        1689  2018-03-29 12:51  赵丽颖中值滤波\vga_median_filter\div_clk.stx
     文件        1538  2018-03-29 12:53  赵丽颖中值滤波\vga_median_filter\div_clk.v
     文件        1146  2018-03-29 12:51  赵丽颖中值滤波\vga_median_filter\div_clk.xst
     文件        1362  2018-04-08 12:36  赵丽颖中值滤波\vga_median_filter\fuse.log
     文件         707  2018-04-08 12:36  赵丽颖中值滤波\vga_median_filter\fuse.xmsgs
     文件         263  2018-04-08 12:36  赵丽颖中值滤波\vga_median_filter\fuseRelaunch.cmd
     目录           0  2018-04-08 12:58  赵丽颖中值滤波\vga_median_filter\ipcore_dir\
     文件         233  2018-04-07 22:37  赵丽颖中值滤波\vga_median_filter\ipcore_dir\coregen.cgp
     文件        3081  2018-04-07 22:37  赵丽颖中值滤波\vga_median_filter\ipcore_dir\coregen.log
     文件      393385  2018-03-28 21:57  赵丽颖中值滤波\vga_median_filter\ipcore_dir\CrazyBird.coe
     文件        1273  2018-03-29 08:57  赵丽颖中值滤波\vga_median_filter\ipcore_dir\create_rom.tcl
     文件        1286  2018-04-07 22:30  赵丽颖中值滤波\vga_median_filter\ipcore_dir\create_shift_1_ip.tcl
     文件        1286  2018-04-07 22:34  赵丽颖中值滤波\vga_median_filter\ipcore_dir\create_shift_2_ip.tcl
     文件        1286  2018-04-07 22:36  赵丽颖中值滤波\vga_median_filter\ipcore_dir\create_shift_3_ip.tcl
     目录           0  2018-04-07 22:19  赵丽颖中值滤波\vga_median_filter\ipcore_dir\rom\
     文件         346  2018-03-29 09:34  赵丽颖中值滤波\vga_median_filter\ipcore_dir\rom.asy
     文件        1344  2018-04-08 13:37  赵丽颖中值滤波\vga_median_filter\ipcore_dir\rom.gise
     文件     1179648  2018-03-29 09:34  赵丽颖中值滤波\vga_median_filter\ipcore_dir\rom.mif
     文件           0  2018-04-08 12:58  赵丽颖中值滤波\vga_median_filter\ipcore_dir\rom.ncf
............此处省略356个文件信息

评论

共有 条评论