summaryrefslogtreecommitdiffstats
path: root/usrp2/gpmc/gpmc_wb.v
diff options
context:
space:
mode:
authorMatt Ettus <matt@ettus.com>2010-04-15 12:52:18 -0700
committerMatt Ettus <matt@ettus.com>2010-04-15 12:52:18 -0700
commit7d00d3a7b93d53b2f60107f0e43645d35788cf2f (patch)
tree76990f89b1992bf007411522b285b7e6c30745e4 /usrp2/gpmc/gpmc_wb.v
parentf89ed91930f5933c827726d17b8c5b0313b6c297 (diff)
downloaduhd-7d00d3a7b93d53b2f60107f0e43645d35788cf2f.tar.gz
uhd-7d00d3a7b93d53b2f60107f0e43645d35788cf2f.tar.bz2
uhd-7d00d3a7b93d53b2f60107f0e43645d35788cf2f.zip
handle all tri-state in the top level of gpmc
Diffstat (limited to 'usrp2/gpmc/gpmc_wb.v')
-rw-r--r--usrp2/gpmc/gpmc_wb.v6
1 files changed, 3 insertions, 3 deletions
diff --git a/usrp2/gpmc/gpmc_wb.v b/usrp2/gpmc/gpmc_wb.v
index 64f6a1c00..db6fbc6e9 100644
--- a/usrp2/gpmc/gpmc_wb.v
+++ b/usrp2/gpmc/gpmc_wb.v
@@ -1,7 +1,7 @@
module gpmc_wb
- (input EM_CLK, inout [15:0] EM_D, input [10:1] EM_A, input [1:0] EM_NBE,
+ (input EM_CLK, input [15:0] EM_D_in, output [15:0] EM_D_out, input [10:1] EM_A, input [1:0] EM_NBE,
input EM_NCS, input EM_NWE, input EM_NOE,
input wb_clk, input wb_rst,
@@ -27,7 +27,7 @@ module gpmc_wb
always @(posedge wb_clk)
if(we_del == 2'b10) // Falling Edge
begin
- wb_dat_mosi <= EM_D;
+ wb_dat_mosi <= EM_D_in;
wb_sel_o <= ~EM_NBE;
end
@@ -37,7 +37,7 @@ module gpmc_wb
if(wb_ack_i)
EM_D_hold <= wb_dat_miso;
- assign EM_D = wb_ack_i ? wb_dat_miso : EM_D_hold;
+ assign EM_D_out = wb_ack_i ? wb_dat_miso : EM_D_hold;
assign wb_cyc_o = wb_stb_o;