Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6056211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:21:04+00:00 2026-05-23T08:21:04+00:00

I am a beginner in SystemC programming and there is one thing I noticed

  • 0

I am a beginner in SystemC programming and there is one thing I noticed (looking in the SystemC official documentation): all types that I used to deal with in VHDL simulations have not been “ported” to SystemC.

I mean:

  1. Consider std_logic in the VHDL standard library, there is not an equivalent in SystemC, however, in the SystemC documentation, I see many examples using bool.
  2. Consider std_logic_vector, I see no equivalent in SystemC. Instead I can see, in many examples, usage of sc_int.

So I’m thinking that SystemC does not provide types in order to manage single bits or electric signals, but it provides a higher abstraction like in every common C/C++ applications.

Is it so or am I missing something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:21:05+00:00Added an answer on May 23, 2026 at 8:21 am
    1. Consider std_logic in the vhdl standard library, there is not an equivalent in SystemC, however, in the sysc documentation, I see many examples using bool.
    2. Consider std_logic_vector, I see no equivalent in sysc. Instead I can see, in many examples, usage of sc_int.

    It’s not all that correct.

    In SystemC you can use sc_logic and sc_lv< T > as std_logic and std_logic_vector respectively.

    You can assign to SC_LOGIC_0 or SC_LOGIC_1 literals to sc_logic.

    While you can use integer, hex or even ‘bit-specific’ literal to assign sc_lv< T > a value.

    For example:

    class some_device : sc_module
    {
        sc_out< sc_lv<32> > address;
        sc_out< sc_logic > write_enable;
    
        SC_CTOR (some_device)
        {
            write_enable.initialize(SC_LOGIC_0);
    
            /* The following three lines do the same thing. 
             * Obviously you won't use all three at the same time... */
            address.initialize(0b00001111000011110000111100001111);
            address.initialize(0x0F0F0F0F);
            address.iniziatize(252645135);
        }
    }
    

    Hope that helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In a beginner's programming book (free licence) there was the following code, dynamically creating
Beginner level question Scenario: Have simple string cocantation tool, that I might expand later
A beginner question, bear with me: I'm just wondering under what circumstances one should
Absolute beginner question: I have a template file index.html that looks like this: ...
The Problem: I'm looking for a way to create a program that visits an
I am a beginner in JADE programming and I'm having problems running the JADE
I am beginner in Oracle database system. As I noticed, it is possible to
Iam just a beginner student socket programming.I tried a simple code from TCP/IP Sockets
I'm currently doing a project for a Beginner C programming class where i'm supposed
I'm looking for the ideal tool to use for publishing technical documentation in English

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.