From c6e44f2da127a3ca8e18698d3bd1444306542ab2 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Mon, 16 Jun 2014 09:45:03 -0700 Subject: [PATCH] Fix argument ordering for synthesized casez compare. --- synth2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synth2.cc b/synth2.cc index 5cfaa4c1e..242eed8c1 100644 --- a/synth2.cc +++ b/synth2.cc @@ -535,8 +535,8 @@ bool NetCase::synth_async_casez_(Design*des, NetScope*scope, // Note that the expression that may have windcards must // go in the pin(2) input. This is the definiton of the // NetCaseCmp statement. - connect(condit_dev->pin(2), esig->pin(0)); - connect(condit_dev->pin(1), guard->pin(0)); + connect(condit_dev->pin(1), esig->pin(0)); + connect(condit_dev->pin(2), guard->pin(0)); NetNet*condit = new NetNet(scope, scope->local_symbol(), NetNet::TRI, condit_type);