|
|
@@ -72,7 +72,7 @@ module S5443TopPulseProfileTb;
|
|
|
//COMMANDS FOR REG_MAP
|
|
|
parameter [31:0] MeasCmdBypass = {8'h11,8'h0,8'h63,8'h1};
|
|
|
parameter [31:0] MeasCmdFft = {8'h11,8'h0,8'h63,7'h5,1'b1};
|
|
|
- parameter [31:0] MeasCmd = {8'h11,8'h1,8'h53,8'h0};
|
|
|
+ parameter [31:0] MeasCmd = {8'h11,8'hff,8'h53,8'h0};
|
|
|
// parameter [31:0] MeasCmd = {8'h11,8'h3e,8'h63,8'h0};
|
|
|
parameter [31:0] AdcCtrl = {8'h12,24'h2};
|
|
|
parameter [31:0] SensCtrlCmd = {1'b0,27'h0,4'b1};
|
|
|
@@ -202,7 +202,7 @@ module S5443TopPulseProfileTb;
|
|
|
assign trig1R = trig1;
|
|
|
|
|
|
reg [32:0] extPulseTrigCnt;
|
|
|
- wire extPulseTrig = extPulseTrigCnt==32'd50;
|
|
|
+ wire extPulseTrig = extPulseTrigCnt==32'd500;
|
|
|
|
|
|
wire [5:0] extTrigBus;
|
|
|
wire [5:0] extTrigDir;
|
|
|
@@ -224,7 +224,7 @@ module S5443TopPulseProfileTb;
|
|
|
|
|
|
assign extTrigBus [0] = (MeasCmd[16]) ? extPulseTrig:1'bz; //1 - in, 0 - out
|
|
|
assign extTrigBus [1] = (MeasCmd[17]) ? 0:1'bz; //1 - in, 0 - out
|
|
|
- assign extTrigBus [2] = (MeasCmd[18]) ? 0:1'bz; //1 - in, 0 - out
|
|
|
+ assign extTrigBus [2] = (MeasCmd[18]) ? extPulseTrig:1'bz; //1 - in, 0 - out
|
|
|
assign extTrigBus [3] = (MeasCmd[19]) ? 0:1'bz; //1 - in, 0 - out
|
|
|
assign extTrigBus [4] = (MeasCmd[20]) ? 0:1'bz; //1 - in, 0 - out
|
|
|
assign extTrigBus [5] = (MeasCmd[21]) ? 0:1'bz; //1 - in, 0 - out
|
|
|
@@ -245,7 +245,7 @@ end
|
|
|
|
|
|
always @(posedge Clk50) begin
|
|
|
if (!rst) begin
|
|
|
- if (extPulseTrigCnt!=32'd50) begin
|
|
|
+ if (extPulseTrigCnt!=32'd500) begin
|
|
|
extPulseTrigCnt <= extPulseTrigCnt+32'd1;
|
|
|
end else begin
|
|
|
extPulseTrigCnt <= 32'd0;
|