// Demo for "final" smtc constraints module demo4(input clk, rst, inv2, input [15:0] in, output reg [15:0] r1, r2); always @(posedge clk) begin if (rst) begin r1 <= in; r2 <= -in; end else begin r1 <= r1 + in; r2 <= inv2 ? -(r2 - in) : (r2 - in); end end endmodule am2_tb.v?h=master' type='application/atom+xml'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/techlibs/xilinx/tests/bram2_tb.v
blob: 0fe4137c677954a65759bf64cd607b82ecea69d4 (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