diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-10-07 11:25:20 +0200 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-10-07 11:25:20 +0200 |
commit | fd3e84941de463fa1a7ebab0a69515b4bf2614cd (patch) | |
tree | 3fa721a13d41d2c0451d663a59a220a38fd5e614 /fpga/usrp3/sim/serial_to_settings/serial_settings_tasks.v | |
parent | 3b66804e41891e358c790b453a7a59ec7462dba4 (diff) | |
download | uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.gz uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.tar.bz2 uhd-fd3e84941de463fa1a7ebab0a69515b4bf2614cd.zip |
Removed copy of FPGA source files.
Diffstat (limited to 'fpga/usrp3/sim/serial_to_settings/serial_settings_tasks.v')
-rw-r--r-- | fpga/usrp3/sim/serial_to_settings/serial_settings_tasks.v | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/fpga/usrp3/sim/serial_to_settings/serial_settings_tasks.v b/fpga/usrp3/sim/serial_to_settings/serial_settings_tasks.v deleted file mode 100644 index a9e2c0344..000000000 --- a/fpga/usrp3/sim/serial_to_settings/serial_settings_tasks.v +++ /dev/null @@ -1,59 +0,0 @@ - - task serial_settings_transaction; - input [7:0] address; - input [31:0] data; - - integer x; - - begin - scl_r <= 1'b1; - sda_r <= 1'b1; - @(negedge clk); - @(negedge clk); - // Drive SDA low whilst SCL high to signal START - sda_r <= 1'b0; - @(negedge clk); - @(negedge clk); - // Send 8 Address bits MSB first on falling edge of SCL clocks - for (x = 7; x >= 0; x = x - 1) - serial_settings_bit(address[x]); - // Send 32 Data bits MSB first on falling edge of SCL clocks - for (x = 31; x >= 0; x = x - 1) - serial_settings_bit(data[x]); - // Send STOP. - scl_r <= 1'b0; - sda_r <= 1'b0; - @(negedge clk); - @(negedge clk); - @(negedge clk); - @(negedge clk); - scl_r <= 1'b1; - @(negedge clk); - @(negedge clk); - @(negedge clk); - @(negedge clk); - sda_r <= 1'b1; - @(negedge clk); - @(negedge clk); - @(negedge clk); - @(negedge clk); - end - endtask // serial_settings_transaction - - task serial_settings_bit; - input one_bit; - - begin - scl_r <= 1'b0; - sda_r <= one_bit; - @(negedge clk); - @(negedge clk); - @(negedge clk); - @(negedge clk); - scl_r <= 1'b1; - @(negedge clk); - @(negedge clk); - @(negedge clk); - @(negedge clk); - end - endtask // send_settings_bit |