aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp2/control_lib/settings_fifo_ctrl.v
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-07-02 14:10:57 -0700
committerJosh Blum <josh@joshknows.com>2012-07-02 14:10:57 -0700
commitf6247e0bb01b23517adae108f22873ba55d722e3 (patch)
tree62b1f589a669a81bb9be2134f54495924e910989 /fpga/usrp2/control_lib/settings_fifo_ctrl.v
parent485fe5873bcf45c264dfc6853748247aeddc215c (diff)
parentf139c98ae7bf1f9f38b42417540a1294fe26ef68 (diff)
downloaduhd-f6247e0bb01b23517adae108f22873ba55d722e3.tar.gz
uhd-f6247e0bb01b23517adae108f22873ba55d722e3.tar.bz2
uhd-f6247e0bb01b23517adae108f22873ba55d722e3.zip
Merge branch 'fpga_master'
Diffstat (limited to 'fpga/usrp2/control_lib/settings_fifo_ctrl.v')
-rw-r--r--fpga/usrp2/control_lib/settings_fifo_ctrl.v9
1 files changed, 6 insertions, 3 deletions
diff --git a/fpga/usrp2/control_lib/settings_fifo_ctrl.v b/fpga/usrp2/control_lib/settings_fifo_ctrl.v
index 82651e776..37f11776e 100644
--- a/fpga/usrp2/control_lib/settings_fifo_ctrl.v
+++ b/fpga/usrp2/control_lib/settings_fifo_ctrl.v
@@ -19,6 +19,7 @@
module settings_fifo_ctrl
#(
+ parameter XPORT_HDR = 1, //extra transport hdr line
parameter PROT_DEST = 0, //protocol framer destination
parameter PROT_HDR = 1, //needs a protocol header?
parameter ACK_SID = 0 //stream ID for packet ACK
@@ -120,6 +121,8 @@ module settings_fifo_ctrl
localparam WAIT_EOF = 10;
localparam STORE_CMD = 11;
+ localparam START_STATE = (XPORT_HDR)? READ_LINE0 : VITA_HDR;
+
reg [4:0] in_state;
//holdover from current read inputs
@@ -140,13 +143,13 @@ module settings_fifo_ctrl
always @(posedge clock) begin
if (reset) begin
- in_state <= READ_LINE0;
+ in_state <= START_STATE;
end
else begin
case (in_state)
READ_LINE0: begin
- if (reading/* && in_data[32]*/) in_state <= VITA_HDR;
+ if (reading) in_state <= VITA_HDR;
end
VITA_HDR: begin
@@ -216,7 +219,7 @@ module settings_fifo_ctrl
end
STORE_CMD: begin
- if (~command_fifo_full) in_state <= READ_LINE0;
+ if (~command_fifo_full) in_state <= START_STATE;
end
endcase //in_state