File: x_bases.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 (22 lines) | stat: -rw-r--r-- 444 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
/*
 * Test bases.
 *  dependencies:
 *	number
 */

module main;
	reg [0:15] b;
	reg [15:0] a;

	initial
		begin
		a = 16'habcd;
		b = 43981;
		$write("%s (a=0xabcd, b=43981...\n",
			"numbers are 16 bits wide");
		$write("a %h %d %o %b (not specified)\n",a,a,a,a);
		$write("a %3h %10d %7o %16b (3/10/7/16)\n",a,a,a,a);
		$write("b %h %d %o %b (not specified)\n",b,b,b,b);
		$write("b %3h %10d %7o %16b (3/10/7/16)\n",b,b,b,b);
		end
endmodule