Skip to content

Commit

Permalink
Improve error message during block conversion of channels with no FIF…
Browse files Browse the repository at this point in the history
…O config.

PiperOrigin-RevId: 661446110
  • Loading branch information
grebe authored and copybara-github committed Aug 9, 2024
1 parent f2e7bca commit 3aadb2f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xls/codegen/block_conversion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,9 @@ class CloneNodesIntoBlockHandler {
channel->kind() == ChannelKind::kStreaming) {
StreamingChannel* streaming_channel =
down_cast<StreamingChannel*>(channel);
XLS_RET_CHECK(streaming_channel->fifo_config().has_value());
XLS_RET_CHECK(streaming_channel->fifo_config().has_value())
<< absl::StreamFormat("Channel %s has no fifo config.",
channel->name());

xls::Instantiation* instantiation;
auto [itr, inserted] =
Expand Down

0 comments on commit 3aadb2f

Please sign in to comment.