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 7875609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:00:45+00:00 2026-06-03T03:00:45+00:00

In this code , I am creating number of Decoder outputs (D1,D2,D3…) depending on

  • 0

In this code, I am creating number of Decoder outputs (D1,D2,D3…) depending on Decoder Type (4×1, 8×1, 16x) in the truth table.

If the Decoder Type is 4×1 I create 4x outputs 4*(D0,D1,D2,D3) for 4 different Decoders.

If the Decoder Type is 8×1 I create 2x outputs 2*(D0,D1,D2,D3,D4,D5,D6,D7) for 2 different Decoders.

If the Decoder Type is 16×1 I create 1x outputs 1*(D0,D1,D2,D3,D4,D5,D6,D7,...,D15) for 1 Decoder.

Now to make it easy for the user to distinguish between the various decoders, I would like to put the decoder name ontop of the corresponding Decoderoutputs. For example When I have 4×1 decoders, how can I put headers Decoder1, Decoder2, Decoder3, Decoder4 on top of (D0,D1,D2,D3)(D0,D1,D2,D3)(D0,D1,D2,D3)(D0,D1,D2,D3)?

P.S. In the code you can change the decodertype to 8x1 or 16x1. It’s defined as follows:

var decoderType="4x1";
  • 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-06-03T03:00:46+00:00Added an answer on June 3, 2026 at 3:00 am

    The idea is to use colspan property of td tag. You should add the following code to generateTruthTableHTML function:

    text += "<th class='th' colspan="+VariableCount+">Variable</td>";
    for(var k = 0; k < counter; k++) {
      var count = Math.pow(2,VariableNames.length) /counter;
      text += "<th class='th' colspan=" + count + ">Decoder&nbsp;" +
              (k+1) + "</th>";
    }    
    text += "</tr><tr>";
    

    Edited fiddle

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

Sidebar

Related Questions

I have this webdav code thats creating folders in SharePoint: HttpWebRequest request = (System.Net.HttpWebRequest)HttpWebRequest.Create(folderAddress);
The code below is creating a server to communicate with clients.This code works fine
I am creating a rails app and have used this code in one of
I am creating panels in code in this way: DockableContent dockableContent = CreateDockableContent<TView>(model); dockableContent.Show(_dockingManager,
I copy and paste code from this URL for creating and reading/writing a proc
I am creating a custom code generator using c#... this generator now only creates
In my code I'm creating a number of lookup tables. var Dict1 = data1.ToDictionary(dim
ANyone know whats wrong with this code for creating a zip file containing a
Consider a dynamic dropdown-menu. Because of creating this code server side I don't know
I'm having trouble creating a port in Unix. This code keeps returning Error creating

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.