openofdm 01:Power Trigger

本文介绍了OpenOFDM中Power Trigger模块的工作原理,该模块接收I/Q样本并检测潜在的包活动期间的触发信号。在硬件稳定阶段可以跳过初始样本以避免杂散信号。模块主要包含三个状态:S_SKIP、S_IDLE和S_PACKET,并根据设定的阈值、窗口大小和采样点数进行功率检测和触发信号的产生。
摘要由CSDN通过智能技术生成

 0. 

  

It takes the I/Q samples as input and asserts the trigger signal during a potential packet activity.

Optionally, it can be configured to skip the first certain number of samples before detecting a power trigger. This is useful to skip the spurious signals during the initial hardware stabilization phase.

The logic of the power_trigger module is quite simple: after skipping certain number of initial samples, it waits for significant power increase and triggers the trigger signal upon detection. The trigger signal is asserted until the power level is smaller than a threshold for certain number of continuous samples.

    input clock,                //时钟
    input enable,               //模块使能
    input reset,                //复位

    input set_stb,              //设置选通信号
    input [7:0] set_addr,       //设置地址,8位
    input [31:0] set_data,      //设置数据,32位

    input [31:0] sample_in,     //采样输入,32位
    input sample_in_strobe,     //采样输入选通信号

    output reg trigger          //触发信号

1. 

先通过setting_reg模块设置set_stb、set_addr和set_data等相关参数:(1)信号检测阈值[15:0] power_thres;(2)信号消失检测窗口长度[15:0] window_size;(3)信号出现时跳过的采样点数目[31:0] num_sample_to_skip。

power_thres = 16'd100;

window_size = 16'd80;

num_sample_to_skip = 32'd0; //原来是32‘d500_0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值