Skip to content

Commit b0d5b34

Browse files
committedJan 26, 2017
Greenpak4Comparator: Don't clobber random bitstream addresses when configuring ACMP_5 (which has no input mux)
1 parent afd23bf commit b0d5b34

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/greenpak4/Greenpak4Comparator.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ bool Greenpak4Comparator::Save(bool* bitstream)
247247
return false;
248248
}
249249

250-
//Valid input, hook it up
251-
else
250+
//Valid input, hook it up.
251+
//BUGFIX: If we only have one input there's no vin config bits so don't write to m_cbaseVin
252+
else if(m_muxsels.size() > 1)
252253
{
253254
unsigned int sel = m_muxsels[m_vin];
254255

0 commit comments

Comments
 (0)