HCL

This is a discussion on HCL within the C Programming forums, part of the General Programming Boards category; i want to write the HCL description of a hardware block that has four 8-bit inputs I1 to I4, and ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    15

    HCL

    i want to write the HCL description of a hardware block that has four 8-bit inputs I1 to I4, and four 8-bit outputs O1 to O4. The block sorts the inputs and presents them on the output in ascending order.

    so i'll have



    int Ascend=[

    (I1<= I2 && I1<=I3 && I1 <= I4) && (I2<=I3 && I2<=I4) && (I3<=I4): I1,I2,I3,I4

    ];

    my question is that is their an easire way to do it because if i keep doing this, i'll end up with 24 cases.

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Handel-C? I'm not familiar with it if so.
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    I suspect it's some sort of hardware description language, but I don't know. And I have no idea as to the answer.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. addictions...
    By ober in forum A Brief History of Cprogramming.com
    Replies: 42
    Last Post: 10-04-2001, 08:08 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21