aboutsummaryrefslogtreecommitdiffstats
path: root/tests/memlib/memlib_clock_sdp.txt
blob: 00e911ef81f07eba1596221cb83d819f03009c9a (plain)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
ram block \RAM_CLOCK_SDP {
	cost 64;
	abits 10;
	widths 1 2 4 8 16 per_port;
	init any;
	port sw "W" {
		ifdef SHARED_CLK {
			ifdef WCLK_ANY {
				option "WCLK" "ANY" {
					clock anyedge "CLK";
				}
			}
			ifdef WCLK_POS {
				option "WCLK" "POS" {
					clock posedge "CLK";
				}
			}
			ifdef WCLK_NEG {
				option "WCLK" "NEG" {
					clock negedge "CLK";
				}
			}
		} else {
			ifdef WCLK_ANY {
				option "WCLK" "ANY" {
					clock anyedge;
				}
			}
			ifdef WCLK_POS {
				option "WCLK" "POS" {
					clock posedge;
				}
			}
			ifdef WCLK_NEG {
				option "WCLK" "NEG" {
					clock negedge;
				}
			}
		}
	}
	port sr "R" {
		ifdef SHARED_CLK {
			ifdef RCLK_ANY {
				option "RCLK" "ANY" {
					clock anyedge "CLK";
				}
			}
			ifdef RCLK_POS {
				option "RCLK" "POS" {
					clock posedge "CLK";
				}
			}
			ifdef RCLK_NEG {
				option "RCLK" "NEG" {
					clock negedge "CLK";
				}
			}
		} else {
			ifdef RCLK_ANY {
				option "RCLK" "ANY" {
					clock anyedge;
				}
			}
			ifdef RCLK_POS {
				option "RCLK" "POS" {
					clock posedge;
				}
			}
			ifdef RCLK_NEG {
				option "RCLK" "NEG" {
					clock negedge;
				}
			}
		}
	}
}