systemc-clang icon indicating copy to clipboard operation
systemc-clang copied to clipboard

This is a Clang tool that parses SystemC models, and synthesizes Verilog from it.

Results 37 systemc-clang issues
Sort by recently updated
recently updated
newest added

# Description When following installation instructions [here](https://systemc-clang.readthedocs.io/en/latest/install/install.html#installing-systemc-clang-on-osx) from scratch, running `make` in the system-clang-build folder throws the following error: ``` /Users/karim/Developer/SystemCVerilog/systemc-clang/src/matchers/FindTemplateTypes.cpp:103:40: error: cannot initialize a parameter of type 'clang::TemplateName::Qualified' with...

bug

In https://github.com/intel/systemc-compiler/blob/main/tests/method/test_fcall_ref.cpp The parameter `val` of `A1__const_ref2_func_4` should be generated as `hFunctionParamI` ```c++ sc_uint const_ref2(const sc_uint& val) { sc_uint j = val.range(1,0); return j+1; } hFunction A1__const_ref2_func_4 [ hFunctionRetType NONAME...

bug

- `u_xt_0` should only be present in `DIM=2` case, but appears in `DIM=3` case for port binding ``` hPortbinding u_xt_0 [ hBinop ARRAYSUBSCRIPT [ hVarref s_port [ hBinop ARRAYSUBSCRIPT [...

bug

https://github.com/intel/systemc-compiler/blob/main/tests/method/test_const_static_mem.cpp#L94 ```c++ // Constant static members, constant records struct Simple { bool a; sc_uint b; Simple(bool a, sc_uint b) : a(a), b(b) {} }; // Constant record member and local...

bug

https://github.com/intel/systemc-compiler/blob/main/tests/method/test_virtual_cast.cpp The original C++ code ```c++ #include "systemc.h" using namespace sc_core; // Virtual and non-virtual unction call with cast to base module type struct A : public sc_module { A(const...

bug

This issue tracks the progress of incorporating the zhw_decode module from [here](https://github.com/LLNL/zhw/blob/v0.6.0/) into systemc-clang repository. Changes to the design code/toolchain code will be tracked in separate issues. - [x] Add...

enhancement

There are several places where the generated loops are unbounded according to Vivado, listed as follows, although they might be bounded. [Loop 1](https://github.com/anikau31/systemc-clang/blob/master/examples/llnl-examples/zfpsynth/shared3/zhw_decode.h#L1057-L1061) ```c++ sc_uinttgtreg; for(tgtreg=0; srcreg= fpblk_sz(DIM)-1) && !(state&FOUND_0S))...

enhancement

```c++ template struct plane_reg { bool f; //full flag. sc_uint w; //word plane_reg(){f=false;w=0;} plane_reg(sc_uint wi){f=true;w=wi;} plane_reg& operator=(const plane_reg& rhs){f = rhs.f; w = rhs.w; return *this;} bool operator==(const plane_reg& rhs){return...

bug

[Here](https://github.com/anikau31/systemc-clang/blob/master/examples/llnl-examples/zfpsynth/shared3/zhw_decode.h#L1446), we are constructing an `FP`, which is `fp_t` from `rn`: ``` // Constructor used fp_t(ui_t ui) { (sign,expo,frac) = ui; } // usage fp = FP(rn); ``` But we...

bug

Given the following code where `bhdr` is of type `block_header` (in [z7test](https://github.com/anikau31/systemc-clang/blob/master/examples/llnl-examples/zfpsynth/shared3/zhw_decode.h#L1203)): ``` // calling site bhdr.set_exp(blockexpt); // definition template struct block_header { typedef typename FP::expo_t expo_t; bool zb; //full...

bug