File: v2k_typedef_yee_inc.v

package info (click to toggle)
verilog-mode 20161124.fd230e6-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 3,764 kB
  • ctags: 5,143
  • sloc: lisp: 12,430; perl: 293; makefile: 146; sh: 35; fortran: 2
file content (28 lines) | stat: -rw-r--r-- 537 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
`ifdef __TEST_I

`else

 `define __TEST_I

 `ifdef TWO_STATE_LOGIC
typedef bit   logic_t;  // Use two-state logic
 `else
typedef logic logic_t;  // Use four-state logic
 `endif

typedef reg   ff_t;     // Default F/F type
typedef reg   lat_t;    // Default latch type

//----------------------------
// 24 bit wide pixel types
//
typedef union packed {
		      logic_t [23:0] bits;
		      struct packed {
				     logic_t [7:0] red;
				     logic_t [7:0] grn;
				     logic_t [7:0] blu;
				     } color;
		      } pixel24_t;

`endif