YILDIRIM BEYAZIT UNIVERSITY EE 205 – DIGITAL DESIGN PRELIMINARY WORK – 1 – Behavioral and Structural Implementation of Gate Level Logic Models Background Knowledge: This week there will be no preliminary homework submission. Instead please setup Xilinx, study thoroughly below sections and start working on lab assignment. Basic Operators: B = {0, 1}
– Variables represent 0 or 1 only, while operators return 0 or 1 only •
is logical AND: a AND b returns 1 only when both a=1 and b=1
+ is logical OR: a OR b returns 1 if either (or both) a=1 or b=1 ’ is logical NOT: NOT a returns the opposite of a (1 if a=0, 0 if a=1)
Verilog Logic and Arithmetic Operators DESCRIPTION Addition Subtraction Multiplication Logical right shif Logical lef shif Greater than Less than Greater than or equal to Less than or equal to Equality Inequality Equal to Bitwise AND Bitwise OR Bitwise XOR Bitwise NOT
1/10
OPERATOR SYMBOL + * >> << > < >= <= == != = & | ^ ~