Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
redpitaya_guide/projects/4_frequency_counter/signal_split.v
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45 lines (41 sloc)
1.48 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: Anton Potocnik | |
// | |
// Create Date: 19.11.2016 22:45:53 | |
// Design Name: | |
// Module Name: signal_split | |
// Project Name: | |
// Target Devices: | |
// Tool Versions: | |
// Description: | |
// | |
// Dependencies: | |
// | |
// Revision: | |
// Revision 0.01 - File Created | |
// Additional Comments: | |
// | |
////////////////////////////////////////////////////////////////////////////////// | |
module signal_split # | |
( | |
parameter ADC_DATA_WIDTH = 16, | |
parameter AXIS_TDATA_WIDTH = 32 | |
) | |
( | |
(* X_INTERFACE_PARAMETER = "FREQ_HZ 125000000" *) | |
input [AXIS_TDATA_WIDTH-1:0] S_AXIS_tdata, | |
input S_AXIS_tvalid, | |
(* X_INTERFACE_PARAMETER = "FREQ_HZ 125000000" *) | |
output wire [AXIS_TDATA_WIDTH-1:0] M_AXIS_PORT1_tdata, | |
output wire M_AXIS_PORT1_tvalid, | |
(* X_INTERFACE_PARAMETER = "FREQ_HZ 125000000" *) | |
output wire [AXIS_TDATA_WIDTH-1:0] M_AXIS_PORT2_tdata, | |
output wire M_AXIS_PORT2_tvalid | |
); | |
assign M_AXIS_PORT1_tdata = {{(AXIS_TDATA_WIDTH-ADC_DATA_WIDTH+1){S_AXIS_tdata[ADC_DATA_WIDTH-1]}},S_AXIS_tdata[ADC_DATA_WIDTH-1:0]}; | |
assign M_AXIS_PORT2_tdata = {{(AXIS_TDATA_WIDTH-ADC_DATA_WIDTH+1){S_AXIS_tdata[AXIS_TDATA_WIDTH-1]}},S_AXIS_tdata[AXIS_TDATA_WIDTH-1:ADC_DATA_WIDTH]}; | |
assign M_AXIS_PORT1_tvalid = S_AXIS_tvalid; | |
assign M_AXIS_PORT2_tvalid = S_AXIS_tvalid; | |
endmodule |