clash-systemverilog 0.5.8 → 0.5.9
raw patch · 3 files changed
+14/−3 lines, 3 filesdep ~clash-libPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: clash-lib
API changes (from Hackage documentation)
Files
- CHANGELOG.md +3/−0
- clash-systemverilog.cabal +2/−2
- src/CLaSH/Backend/SystemVerilog.hs +9/−1
CHANGELOG.md view
@@ -1,5 +1,8 @@ # Changelog for the [`clash-systemverilog`](http://hackage.haskell.org/package/clash-systemverilog) package +## 0.5.9 *September 14 2015*+* Support for clash-lib-0.5.12+ ## 0.5.8 *September 7th 2015* * Fixes bugs: * Fix primitive for CLaSH.Sized.Internal.Signed.size# [#72](https://github.com/clash-lang/clash-compiler/pull/72)
clash-systemverilog.cabal view
@@ -1,5 +1,5 @@ Name: clash-systemverilog-Version: 0.5.8+Version: 0.5.9 Synopsis: CAES Language for Synchronous Hardware - SystemVerilog backend Description: CλaSH (pronounced ‘clash’) is a functional hardware description language that@@ -93,7 +93,7 @@ ViewPatterns Build-depends: base >= 4.6.0.1 && < 5,- clash-lib >= 0.5.8,+ clash-lib >= 0.5.12, clash-prelude >= 0.9, fgl >= 5.4.2.4, lens >= 3.9.2,
src/CLaSH/Backend/SystemVerilog.hs view
@@ -320,7 +320,15 @@ end = start - argSize + 1 expr_ _ (Identifier id_ (Just (Indexed (ty@(Product _ _),_,fI)))) = text id_ <> dot <> verilogTypeMark ty <> "_sel" <> int fI-expr_ _ (Identifier id_ (Just (Indexed ((Vector _ _),_,fI)))) = text id_ <> brackets (int fI)++expr_ _ (Identifier id_ (Just (Indexed ((Vector _ _),1,1)))) = text id_ <> brackets (int 0)+expr_ _ (Identifier id_ (Just (Indexed ((Vector n _),1,2)))) = text id_ <> brackets (int 1 <> colon <> int (n-1))++-- This is a HACK for CLaSH.Driver.TopWrapper.mkOutput+-- Vector's don't have a 10'th constructor, this is just so that we can+-- recognize the particular case+expr_ _ (Identifier id_ (Just (Indexed ((Vector _ _),10,fI)))) = text id_ <> brackets (int fI)+ expr_ _ (Identifier id_ (Just (DC (ty@(SP _ _),_)))) = text id_ <> brackets (int start <> colon <> int end) where start = typeSize ty - 1