Skip to content

Commit 8201885

Browse files
committed
ol2/tt_top: mask_rev support
1 parent 84922e8 commit 8201885

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

ol2/tt_top/openframe_project_wrapper.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ module openframe_project_wrapper (
114114
.io_out (gpio_out[37:0]),
115115
.io_oeb (gpio_oeb[37:0]),
116116
.user_clock2 (k_zero),
117+
.mask_rev (mask_rev),
117118
.k_zero (k_zero),
118119
.k_one (k_one)
119120
);

ol2/tt_top/tt_um_tpl.v

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ module {mod_name} (
1818
input wire [7:0] uio_in,
1919
output wire [7:0] uio_out,
2020
output wire [7:0] uio_oe,
21+
input wire [31:0] mask_rev,
2122
input wire ena,
2223
input wire clk,
2324
input wire rst_n

py/tt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def __init__(self, placer, cfg_data):
113113
self.height = cfg_data.get('height', 1)
114114
self.pg_vdd = cfg_data.get('pg_vdd', False)
115115
self.analog = cfg_data.get('analog', False)
116+
self.mask_rev = cfg_data.get('mask_rev', False)
116117

117118
def as_dict(self):
118119
return {
@@ -125,6 +126,7 @@ def as_dict(self):
125126
'height': self.height,
126127
'pg_vdd': self.pg_vdd,
127128
'analog': self.analog,
129+
'mask_rev': self.mask_rev,
128130
}
129131

130132
@property

rtl/tt_top.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ module tt_top #(
2828
// From caravel
2929
input wire user_clock2,
3030

31+
// For Tim Edwards - mask_rev
32+
input wire [31:0] mask_rev,
33+
3134
// Convenient constants for top-level tie-offs
3235
output wire k_zero,
3336
output wire k_one
@@ -237,6 +240,7 @@ module tt_top #(
237240
.ana (l_um_ana[j*N_A+:N_A]),
238241
.ow (l_um_ow[j*U_OW+:U_OW]),
239242
.iw (l_um_iw[j*U_IW+:U_IW]),
243+
.mask_rev(mask_rev),
240244
.ena (l_um_ena[j]),
241245
.k_zero (l_um_k_zero[j]),
242246
.pg_vdd (l_um_pg_vdd[j])

rtl/tt_user_module.v.mak

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module tt_user_module #(
3030
inout wire [N_A-1:0] ana,
3131
output wire [N_OW-1:0] ow,
3232
input wire [N_IW-1:0] iw,
33+
input wire [31:0] mask_rev,
3334
input wire ena,
3435
input wire k_zero,
3536
input wire pg_vdd
@@ -53,6 +54,9 @@ module tt_user_module #(
5354
tt_um_${mod.name} tt_um_I (
5455
% if mod.analog:
5556
.ua (ana),
57+
% endif
58+
% if mod.mask_rev:
59+
.mask_rev (mask_rev),
5660
% endif
5761
.uio_in (uio_in),
5862
.uio_out (uio_out),

0 commit comments

Comments
 (0)