File: brams_xc2v.txt

package info (click to toggle)
yosys 0.23-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,644 kB
  • sloc: cpp: 138,485; python: 8,605; yacc: 3,451; sh: 2,358; makefile: 1,204; lex: 696; perl: 399; ansic: 371; javascript: 323; tcl: 78; vhdl: 46
file content (33 lines) | stat: -rw-r--r-- 665 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
# Block RAMs for Virtex 2, Spartan 3, Spartan 3E, Spartan 3A(N)
# The corresponding mapping file is brams_xc2v_map.v

ram block $__XILINX_BLOCKRAM_ {
	abits 14;
	widths 1 2 4 9 18 36 per_port;
	ifdef HAS_BE {
		option "USE_BE" 1 byte 9;
	}
	cost 129;
	init any;
	port srsw "A" "B" {
		option "USE_BE" 0 width tied;
		ifdef HAS_BE {
			option "USE_BE" 1 width tied 9 18 36;
		}
		clock posedge;
		clken;
		rdsrst any gated_clken;
		rdinit any;
		portoption "WRITE_MODE" "NO_CHANGE" {
			rdwr no_change;
		}
		portoption "WRITE_MODE" "WRITE_FIRST" {
			rdwr new_only;
		}
		portoption "WRITE_MODE" "READ_FIRST" {
			rdwr old;
			wrtrans all old;
		}
		optional;
	}
}