Coder Social home page Coder Social logo

cluelogic / cluelib Goto Github PK

View Code? Open in Web Editor NEW
77.0 77.0 37.0 1.03 MB

A generic class library in SystemVerilog

JavaScript 2.56% CSS 0.74% Shell 0.02% C++ 0.05% HTML 77.46% Makefile 0.44% TeX 0.07% Python 0.02% Batchfile 0.01% SystemVerilog 18.63%

cluelib's People

Contributors

cluelogic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cluelib's Issues

text::change replaces first occurrence of substr ... not specified occurrence (ie by start_pos)

hate messing with another dude's code but should something like:

static function string change( string s,
string sub,
int start_pos = 0,
int end_pos = -1 );
// string old_str = slice( s, start_pos, end_pos );
int my_start_pos;
int my_end_pos;
int idx;
int idx2;

if (start_pos < 0) my_start_pos = start_pos + s.len();
    else               my_start_pos = start_pos;
if (end_pos < 0)   my_end_pos = end_pos + s.len();
    else               my_end_pos = end_pos;

    idx2 = 0;
    for (idx = my_start_pos; idx <= my_end_pos;  idx++) begin 
                  s.putc(idx, sub.getc(idx2)) ;
                  idx2 = idx2 + 1;
    end
    return s;

Compile error

Hi, I'm getting this compile error after unziping and running make for the first time. What am I doing wrong?

-- Compiling DPI/PLI C++ file ../src/cl_dpi.cc
** Error: (vlog-70) Compilation of the C/C++ src files failed with the error messages given below.
In file included from /home/questasim/include/svdpi.h:15:0,
from ../src/cl_dpi.cc:28:
/usr/include/string.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Support the unit of kitchen_timer

Support something like this:
kitchen_timer kt = new( 2, 1ms ); // new( value, unit ); set timer as 2ms

// implementation
repeat ( value ) #unit;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.