File: expr_noteqeq.v

package info (click to toggle)
vbs 1.4.0-9
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,200 kB
  • ctags: 4,401
  • sloc: cpp: 17,648; yacc: 1,880; ansic: 884; makefile: 419; sh: 375; lex: 345
file content (36 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (2)
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
29
30
31
32
33
34
35
36
/*
 * Test !== comparitor.
 *  dependencies:
 *	register declaration
 *	initial procedural block
 *	system tasks
 *	if/else statement
 *	blocking assignment
 */

module main ;

	reg [0:7] a;

	initial
		begin
		a = 8'b1x0x_10xx;
		if (4'b1x01 !== 5'b01x01)
			$write("1x01 !== 1x01 (Not Ok)\n");
		else
			$write("1x01 !== 1x01 (Ok)\n");
		if (a !== 8'b1x0x_1x0x)
			$write("a !== 1x0x_1x0x (Ok)\n");
		else
			$write("a !== 1x0x_1x0x (Not Ok)\n");
		if (8'b1x0x_1x0x !== a)
			$write("1x0x_1x0x !== a (Ok)\n");
		else
			$write("1x0x_1x0x !== a (Not Ok)\n");
		if (a !== a)
			$write("a !== a (Not Ok)\n");
		else
			$write("a !== a (Ok)\n");
		end

endmodule