# <font color = #bf2222>!</font> and <font color = #bf2222>~</font> 的差別 ###### tags: `verilog` `digital design` `邏輯設計` `邏設` [TOC] ## 邏輯運算 not - 表示符號: <font color = #bf2222>!</font> - 代表意義: 回傳 true / false - 只有在<font color = #bf2222>所有 bit 都是 0</font> 的時候才會回傳 1,其餘回傳 0。 ## 位元運算 not - 表示符號: <font color = #bf2222>~</font> - 代表意義:根據每一個 bit 做反相的動作 - 舉例來說: ```clike= a = 4'b0101 ~a = 4'b1010 ``` # [:maple_leaf:Homepage:maple_leaf:](https://hackmd.io/s/ByZ-fyuHV)
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up