# SPI BFM avoid tri-state default values

**URL:** <https://forum.uvvm.org/t/spi-bfm-avoid-tri-state-default-values/51>\
**Category:** Bitvis VIP SPI\
**Created:** [April 24, 2020, 9:13am UTC](https://forum.uvvm.org/t/spi-bfm-avoid-tri-state-default-values/51 "2020-04-24T09:13:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cartfjord](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/cartfjord/32/39_2.png) [@cartfjord](https://forum.uvvm.org/u/cartfjord)\
**Post date:** [April 24, 2020, 9:13am UTC](https://forum.uvvm.org/t/spi-bfm-avoid-tri-state-default-values/51/1 "2020-04-24T09:13:26Z")

</div>

Hi, is there an option to avoid the SPI BFM outputting tri-state values as default (before the first transaction)? E.g ss\_n = ‘H’ and sclk = ‘L’ by default, but I want ss\_n = ‘1’ by default, at least. After the first transaction the output is okay.

Best  
Christian

---

<div class="post-metadata">

**Author:** ![Marius](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/marius/32/43_2.png) [@Marius](https://forum.uvvm.org/u/Marius)\
**Post date:** [April 24, 2020, 12:05pm UTC](https://forum.uvvm.org/t/spi-bfm-avoid-tri-state-default-values/51/2 "2020-04-24T12:05:49Z")

</div>

Hi,  
There is no option for this at the moment, but it could be a useful feature.  
All of our developers are occupied at the moment, but if you have a good and tested solution it would be great if you could make a pull-request!

Br,  
Marius

---

<div class="post-metadata">

**Author:** ![cartfjord](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.uvvm.org/cartfjord/32/39_2.png) [@cartfjord](https://forum.uvvm.org/u/cartfjord)\
**Post date:** [April 24, 2020, 12:30pm UTC](https://forum.uvvm.org/t/spi-bfm-avoid-tri-state-default-values/51/3 "2020-04-24T12:30:11Z")

</div>

Great. I currently just have a workaround.  
I will see if I have time to write something more permanent in the near future.

Best,  
Christian
