8thjan Task
8thjan Task
Himani vandara
Guided by Aditi Paradkar
Q.1) Confirm for more complicated conditions if above
conclusion fits for it.
1: FIFO Written to All Locations (No Read)
• Wr_count = 0, Rd_count = 0
• fifo_wr = 1 (FIFO full after writing all locations)
• fifo_rd = 0 (No read performed)
• FIFO is full.
2: FIFO Written to All Locations, Then Read Out
• Wr_count = 0, Rd_count = 0
• fifo_wr = 1 (FIFO full after writing)
• fifo_rd = 1 (FIFO empty after reading all locations)
• FIFO is empty.
Continue....
Complex Conditions:
Bit:
- represents 2-state logic values (0 and 1).
- used for synthesizable designs where only binary values are needed.
- Ex; bit a;
bit [3:0] b;
Continue....
Union:
- Allows multiple variables to share the same memory.
- Ex:union { type1 var1; type2 var2; }
Array:
- A collection of elements, can be fixed, dynamic,or associative.
- Ex;type array_name[size];
type array_name[];
type array_name[index];
Continue....
Class:
- Groups data ,properties and methods.
- Ex: class class_name;
type property;
function type method();
endfunction
endclass
Continue....
Interface:
- Groups related signals for easy module connections.
- Ex: interface interface_name(input signal1, signal2);
type signal;
endndinterface
Event:
- Used for synchronization between processes.
- Ex; event my_event;
Continue....
String:
- Used to handle text.
- Ex; string msg = "Hello, SystemVerilog!";
Type:
- Allows the creation of user-defined data types using typedef.
Void:
- Represents a function or task that does not return a value.
- Ex;function void my_function();
- endfunction