aboutsummaryrefslogtreecommitdiffstats
path: root/usrp2/gpmc
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-06-06 02:50:18 -0700
committerMatt Ettus <matt@ettus.com>2010-06-06 02:50:18 -0700
commit3122c8c3d9740a2fd5e68b99df627bc632d764da (patch)
treeebbef17b02ff670bcd9c84361476cf6f646ccca2 /usrp2/gpmc
parent761e22013c6715987c411216d012098e60684836 (diff)
downloaduhd-3122c8c3d9740a2fd5e68b99df627bc632d764da.tar.gz
uhd-3122c8c3d9740a2fd5e68b99df627bc632d764da.tar.bz2
uhd-3122c8c3d9740a2fd5e68b99df627bc632d764da.zip
added little endian capability for gpmc to fifo and fifo to gpmc, since ARM is LE.
Diffstat (limited to 'usrp2/gpmc')
-rw-r--r--usrp2/gpmc/gpmc_async.v4
-rw-r--r--usrp2/gpmc/gpmc_sync.v4
2 files changed, 4 insertions, 4 deletions
diff --git a/usrp2/gpmc/gpmc_async.v b/usrp2/gpmc/gpmc_async.v
index f42b835ed..1050cef7d 100644
--- a/usrp2/gpmc/gpmc_async.v
+++ b/usrp2/gpmc/gpmc_async.v
@@ -64,7 +64,7 @@ module gpmc_async
.datain(tx18_data), .src_rdy_i(tx18_src_rdy), .dst_rdy_o(tx18_dst_rdy), .space(tx_fifo_space),
.dataout(tx18b_data), .src_rdy_o(tx18b_src_rdy), .dst_rdy_i(tx18b_dst_rdy), .occupied());
- fifo19_to_fifo36 f19_to_f36
+ fifo19_to_fifo36 #(.LE(1)) f19_to_f36 // Little endian because ARM is LE
(.clk(fifo_clk), .reset(fifo_rst), .clear(0),
.f19_datain({1'b0,tx18b_data}), .f19_src_rdy_i(tx18b_src_rdy), .f19_dst_rdy_o(tx18b_dst_rdy),
.f36_dataout(tx36_data), .f36_src_rdy_o(tx36_src_rdy), .f36_dst_rdy_i(tx36_dst_rdy));
@@ -89,7 +89,7 @@ module gpmc_async
.datain(rx_data_i), .src_rdy_i(rx_src_rdy_i), .dst_rdy_o(rx_dst_rdy_o),
.dataout(rx36_data), .src_rdy_o(rx36_src_rdy), .dst_rdy_i(rx36_dst_rdy));
- fifo36_to_fifo19 f36_to_f19
+ fifo36_to_fifo19 #(.LE(1)) f36_to_f19 // Little endian because ARM is LE
(.clk(fifo_clk), .reset(fifo_rst), .clear(0),
.f36_datain(rx36_data), .f36_src_rdy_i(rx36_src_rdy), .f36_dst_rdy_o(rx36_dst_rdy),
.f19_dataout({dummy,rx18_data}), .f19_src_rdy_o(rx18_src_rdy), .f19_dst_rdy_i(rx18_dst_rdy) );
diff --git a/usrp2/gpmc/gpmc_sync.v b/usrp2/gpmc/gpmc_sync.v
index bac489ca0..61c54a793 100644
--- a/usrp2/gpmc/gpmc_sync.v
+++ b/usrp2/gpmc/gpmc_sync.v
@@ -57,7 +57,7 @@ module gpmc_sync
.rclk(fifo_clk), .dataout(tx18b_data),
.src_rdy_o(tx18b_src_rdy), .dst_rdy_i(tx18b_dst_rdy), .occupied(), .arst(arst));
- fifo19_to_fifo36 f19_to_f36
+ fifo19_to_fifo36 #(.LE(1)) f19_to_f36 // Little endian because ARM is LE
(.clk(fifo_clk), .reset(fifo_rst), .clear(0),
.f19_datain({1'b0,tx18b_data}), .f19_src_rdy_i(tx18b_src_rdy), .f19_dst_rdy_o(tx18b_dst_rdy),
.f36_dataout(tx_data_o), .f36_src_rdy_o(tx_src_rdy_o), .f36_dst_rdy_i(tx_dst_rdy_i));
@@ -70,7 +70,7 @@ module gpmc_sync
wire [15:0] rx_fifo_space, rx_frame_len;
wire dummy;
- fifo36_to_fifo19 f36_to_f19
+ fifo36_to_fifo19 #(.LE(1)) f36_to_f19 // Little endian because ARM is LE
(.clk(fifo_clk), .reset(fifo_rst), .clear(0),
.f36_datain(rx_data_i), .f36_src_rdy_i(rx_src_rdy_i), .f36_dst_rdy_o(rx_dst_rdy_o),
.f19_dataout({dummy,rx18_data}), .f19_src_rdy_o(rx18_src_rdy), .f19_dst_rdy_i(rx18_dst_rdy) );