Skip to content

Commit 84f2ac1

Browse files
committed
RST_X -> RESETN
1 parent 064d628 commit 84f2ac1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/extension/thread_/axi_dma_active_low_reset/thread_axi_dma_active_low_reset.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ def mkLed():
1717
clk = m.Input('CLK')
1818

1919
# active low
20-
rst_x = m.Input('RST_X')
20+
resetn = m.Input('RESETN')
2121

2222
# active low -> active high
2323
rst = m.Wire('RST')
24-
rst.assign(Not(rst_x))
24+
rst.assign(Not(resetn))
2525

2626
datawidth = 32
2727
addrwidth = 10
@@ -113,11 +113,11 @@ def mkTest(memimg_name=None):
113113
clk = ports['CLK']
114114

115115
# active low
116-
rst_x = ports['RST_X']
116+
resetn = ports['RESETN']
117117

118118
# active low -> active high
119119
rst = m.Wire('RST')
120-
rst.assign(Not(rst_x))
120+
rst.assign(Not(resetn))
121121

122122
memory = axi.AxiMemoryModel(m, 'memory', clk, rst, memimg_name=memimg_name)
123123
memory.connect(ports, 'myaxi')
@@ -128,7 +128,7 @@ def mkTest(memimg_name=None):
128128

129129
#simulation.setup_waveform(m, uut)
130130
simulation.setup_clock(m, clk, hperiod=5)
131-
init = simulation.setup_reset(m, rst_x, m.make_reset(), period=100, polarity='low')
131+
init = simulation.setup_reset(m, resetn, m.make_reset(), period=100, polarity='low')
132132

133133
init.add(
134134
Delay(1000000),

tests/extension/thread_/ipxact_axi_active_low_reset/thread_ipxact_axi_active_low_reset.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ def mkLed():
1919
clk = m.Input('CLK')
2020

2121
# active low
22-
rst_x = m.Input('RST_X')
22+
resetn = m.Input('RESETN')
2323

2424
# active low -> active high
2525
rst = m.Wire('RST')
26-
rst.assign(Not(rst_x))
26+
rst.assign(Not(resetn))
2727

2828
datawidth = 32
2929
addrwidth = 10
@@ -128,11 +128,11 @@ def mkTest(memimg_name=None):
128128
clk = ports['CLK']
129129

130130
# active low
131-
rst_x = ports['RST_X']
131+
resetn = ports['RESETN']
132132

133133
# active low -> active high
134134
rst = m.Wire('RST')
135-
rst.assign(Not(rst_x))
135+
rst.assign(Not(resetn))
136136

137137
memory = axi.AxiMemoryModel(m, 'memory', clk, rst, memimg_name=memimg_name)
138138
memory.connect(ports, 'myaxi')
@@ -169,7 +169,7 @@ def ctrl():
169169

170170
#simulation.setup_waveform(m, uut)
171171
simulation.setup_clock(m, clk, hperiod=5)
172-
init = simulation.setup_reset(m, rst_x, m.make_reset(), period=100, polarity='low')
172+
init = simulation.setup_reset(m, resetn, m.make_reset(), period=100, polarity='low')
173173

174174
init.add(
175175
Delay(1000000),
@@ -215,5 +215,5 @@ def run(filename='tmp.v', simtype='iverilog', outputfile=None):
215215

216216
m = mkLed()
217217
ipxact.to_ipxact(m,
218-
clk_ports=[('CLK', ('RST_X',))],
219-
rst_ports=[('RST_X', 'ACTIVE_LOW')])
218+
clk_ports=[('CLK', ('RESETN',))],
219+
rst_ports=[('RESETN', 'ACTIVE_LOW')])

0 commit comments

Comments
 (0)