Skip to content

Commit bbe0e3d

Browse files
committed
fix linter issue
1 parent 2fd575f commit bbe0e3d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/jtag.v

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ module jtag (
1717
input wire tck,
1818
/* verilator lint_off UNUSED */
1919
input wire tdi,
20-
output wire tdo,
2120
input wire tms,
22-
input wire trst_n
21+
input wire trst_n,
22+
output wire tdo
2323
);
2424

2525
wire trst;
@@ -69,14 +69,13 @@ module jtag (
6969
reg byte_transmitter_enable;
7070
reg reset_byte_transmitter;
7171
wire transmitter_channel; // for byte_transmitter to write to TDO
72-
reg r_transmitter_channel;
7372

7473
byte_transmitter id_byte_transmitter (
7574
.clk(tck),
7675
.reset(trst | reset_byte_transmitter), // TODO: We need to be able to reset the byte_counter?
7776
.enable(byte_transmitter_enable),
7877
.in(IdCodeDrRegister),
79-
.out(r_transmitter_channel), // make this another wire.
78+
.out(transmitter_channel), // make this another wire.
8079
.done(idcode_out_done)
8180
);
8281

@@ -110,7 +109,6 @@ module jtag (
110109
current_ir_instruction <= 4'b1110; // IDCODE is the default instruction.
111110
r_output_selector_transmitter <= 1; // by default the tap controller writes
112111
tap_channel <= 0; // How can an X sneak in here?
113-
r_transmitter_channel <= 0;
114112
byte_transmitter_enable <= 0;
115113
reset_byte_transmitter <= 0;
116114
end else begin
@@ -285,6 +283,7 @@ module jtag (
285283
assume (trst);
286284
assert (current_state != 5'bX_XXXX);
287285
assert (r_output_selector_transmitter != 1'bX);
286+
assert (transmitter_channel != 1'bX);
288287
assert (tdo != 1'bX);
289288
end
290289
end

0 commit comments

Comments
 (0)