[SOLVED] CS // packages are very useful for global variable declarations

$25

File Name: CS_//_packages_are_very_useful_for_global_variable_declarations.zip
File Size: 593.46 KB

5/5 - (1 vote)

// packages are very useful for global variable declarations
package light_package;
// width declaration is optional w/ typedef enum
// used here to avoid 32-bit defaults w/ top 30 bits tied to 0
// first in list automatically maps to 2b00
// next = 2b01, etc.
// can also specify, e.g. to skip over a particular value
typedef enum logic[1:0] {red, yellow, green} colors;

endpackage

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] CS // packages are very useful for global variable declarations
$25