diff options
Diffstat (limited to 'usrp2/control_lib')
-rw-r--r-- | usrp2/control_lib/double_buffer.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usrp2/control_lib/double_buffer.v b/usrp2/control_lib/double_buffer.v index e8e565963..8865bddee 100644 --- a/usrp2/control_lib/double_buffer.v +++ b/usrp2/control_lib/double_buffer.v @@ -51,8 +51,8 @@ module double_buffer reg [BUF_SIZE-1:0] len0, len1; assign data_o = read_ptr ? data_o_1 : data_o_0; - assign rw0_adr = (read_ok & ~read_ptr) ? read_adr : write_adr; - assign rw1_adr = (read_ok & read_ptr) ? read_adr : write_adr; + assign rw0_adr = (write_ok & ~write_ptr) ? write_adr : read_adr; + assign rw1_adr = (write_ok & write_ptr) ? write_adr : read_adr; wire [35:0] access_dat_o_0, access_dat_o_1; wire access_ptr; |