Tagged: mac os Toggle Comment Threads | Keyboard Shortcuts

  • CG 11:45 am on August 19, 2010 Permalink | Reply
    Tags: mac os, sl,   

    Snow Leopard: running in 32 or 64 bit? 

    Have just upgraded memory to 4GB and just found out that the Intel Core 2 Duo is 64 bit, I want to know whether my system running in 32 or 64 bit.

    By default Snow Leopard run in 32 bit but can be changed to 64 by hitting “6” and “4” while booting. This is the result before:

    After I boot and hold “6” and “4” keys, nothing’s changed. Why?
    Because the EFI is still 32-bit, so my system cannot run 64-bit kernel. Oh well.

    More about this here:

    1. http://macperformanceguide.com/SnowLeopard-64bit.html
    2. http://www.askdavetaylor.com/snow_leopard_running_32_bit_64_bit_32bit_64bit.html
    3. http://superuser.com/questions/9083/can-a-32-bit-os-run-in-a-64-bit-processor
    4. http://news.cnet.com/8301-13579_3-10320314-37.html
    5. http://www.9to5mac.com/snow-leopard-64-bit-32-bit-firmware-efi
    6. http://www.apple.com/macosx/technology/
    7. http://www.ahatfullofsky.comuv.com/English/Programs/SMS/SMS.html
    Advertisements
     
  • CG 12:51 pm on May 4, 2010 Permalink | Reply
    Tags: , , mac os,   

    Compiling VHDL with GHDL on Mac OS 

    1. Download GHDL for Mac OS download here
    2. Put the whole directory in the home directory
    3. Type a simple .vhdl code from here

      -- Hello world program.
      use std.textio.all; -- Imports the standard textio package.

      -- Defines a design entity, without any ports.
      entity hello_world is
      end hello_world;

      architecture behaviour of hello_world is
      begin
      process
      variable l : line;
      begin
      write (l, String'("Hello world!"));
      writeline (output, l);
      wait;
      end process;
      end behaviour;

    4. Compile the file:  wine ghdl.exe -a hello_world.vhdl
    5. Build an executable file:  wine ghdl.exe -e hello_world
    6. Run the code:  wine ghdl.exe -r hello_world or wine ./hello_world

    Notes:

    the working directory is : /Users/chika/.wine/drive_c/Program Files/Ghdl/bin

     
    • Nadav 2:31 am on May 5, 2010 Permalink | Reply

      When I write VHDL or Verilog I like to use automated tools. C-to-Verilog.com is a website which allows you to compiler your C code into hardware circuits. It has a great pipelining algorithm for superb performance.

    • vincent 6:15 pm on August 25, 2010 Permalink | Reply

      Thanks for this help on how to install and use ghdl in OS X unfortunately it does not work. Instructions seem not to cover what to do with the wine stuff. Could you please help?

      thanks
      vin

    • Tinh 9:42 am on April 8, 2015 Permalink | Reply

      Hello! thanks for you instruction. However, wen i run a command line “wine ghdl.exe -a file.vhdl” it said that “-bash: wine: command not found”. so do i need to install wine? or just copy from the dmg that you provided? thanks!

      • CG 12:20 pm on April 8, 2015 Permalink | Reply

        yes you have to install wine! 🙂

  • CG 12:35 pm on May 4, 2010 Permalink | Reply
    Tags: , mac os, macports, , wine   

    Installing Wine on Mac OS 

    I have to install Wine, because I want to use GHDL to compile VHDL.

    Useful links:

    1. http://davidbaumgold.com/tutorials/wine-mac/
    2. http://wiki.winehq.org/MacOSX
    3. http://wiki.winehq.org/MacOSX/Installing

    But before installing Wine I had to installed Macports for Snow Leopard, downloaded from here.

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel