Thread: HCL

  1. #1
    Registered User
    Join Date
    Sep 2007


    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
    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
    Farncombe, Surrey, England
    I suspect it's some sort of hardware description language, but I don't know. And I have no idea as to the answer.

    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
    Replies: 42
    Last Post: 10-04-2001, 08:08 AM