Skip to content

Commit

Permalink
Fix another instance of the multiple possible '&' operations
Browse files Browse the repository at this point in the history
problem
  • Loading branch information
christiaanb committed Nov 17, 2014
1 parent ff9aa39 commit 50b1aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CLaSH/Netlist/VHDL.hs
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ expr _ (Identifier id_ (Just (DC (ty@(SP _ _),_)))) = text id_ <> parens (int st

expr _ (Identifier id_ (Just _)) = text id_
expr _ (DataCon ty@(Vector 1 _) _ [e]) = vhdlTypeMark ty <> "'" <> parens (int 0 <+> rarrow <+> expr False e)
expr _ e@(DataCon ty@(Vector _ _) _ [e1,e2]) = vhdlTypeMark ty <> "'" <> case vectorChain e of
expr _ e@(DataCon ty@(Vector _ elTy) _ [e1,e2]) = vhdlTypeMark ty <> "'" <> case vectorChain e of
Just es -> tupled (mapM (expr False) es)
Nothing -> parens (expr False e1 <+> "&" <+> expr False e2)
Nothing -> parens (vhdlTypeMark elTy <> "'" <> parens (expr False e1) <+> "&" <+> expr False e2)
expr _ (DataCon ty@(SP _ args) (Just (DC (_,i))) es) = assignExpr
where
argTys = snd $ args !! i
Expand Down

0 comments on commit 50b1aa2

Please sign in to comment.