Skip to content

Commit 12dd180

Browse files
authored
Merge pull request #2118 from sdamghan/odin_arch_dsp
Fix dsp models port sizes in the Verilog file generated by Odin-II
2 parents 32c437b + 80e8385 commit 12dd180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ODIN_II/SRC/VerilogWriter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ std::string Verilog::Writer::declare_ports(t_model* model) {
169169
input_stream << TAB
170170
<< INPUT_PORT << TAB
171171
<< OPEN_SQUARE_BRACKET
172-
<< input_port->size << COLON << "0"
172+
<< input_port->size - 1 << COLON << "0"
173173
<< CLOSE_SQUARE_BRACKET
174174
<< TAB << input_port->name
175175
<< COMMA << std::endl;
@@ -184,7 +184,7 @@ std::string Verilog::Writer::declare_ports(t_model* model) {
184184
output_stream << TAB
185185
<< OUTPUT_PORT << TAB
186186
<< OPEN_SQUARE_BRACKET
187-
<< output_port->size << COLON << "0"
187+
<< output_port->size - 1 << COLON << "0"
188188
<< CLOSE_SQUARE_BRACKET
189189
<< TAB << output_port->name
190190
<< COMMA << std::endl;

0 commit comments

Comments
 (0)