Git Product home page Git Product logo

Comments (3)

llandis avatar llandis commented on May 24, 2024

Hi!
refer to the DESim link again - I add a github repo location in the READme where you can find the source code. If you would like to contribute a Linux release, please use the issues on the fpgacademy site and we would be thrilled to get some outside help.
Thanks
Larry

from fpga-devcloud.

llandis avatar llandis commented on May 24, 2024

Did the link above help you get what you need to port DESim to Linux?
Thanks!
Larry

from fpga-devcloud.

dlly11 avatar dlly11 commented on May 24, 2024

Did the link above help you get what you need to port DESim to Linux?
Thanks!
Larry

Hi,

Yes I was able to get it to work. I haven't had time to test all of the demo programs.
To get it to work, in the C header files wherever saw:
`ifdef _WIN32
#include <winsock2.h>
#include <Ws2tcpip.h>
typedef SOCKET sockfd;

#else
typedef int sockfd;
#endif`

I modified to:
`ifdef _WIN32
#include <winsock2.h>
#include <Ws2tcpip.h>
typedef SOCKET sockfd;

#else
#include <sys/socket.h> // New Line
typedef int sockfd;
#endif`

I also modified the makefile from:
`
MODELSIM_DIR = C:\intelFPGA\19.1\modelsim_ae

CFLAGS = -m32 -static -c -Wall -g -fno-diagnostics-show-caret -fpic -Iinclude -I$(MODELSIM_DIR)/include
LDFLAGS = -m32 -static -g -shared -lmtipli

ifeq ($(OS),Windows_NT)
LDFLAGS += -lws2_32
LDFLAGS += -L$(MODELSIM_DIR)/win32aloem
endif`

to :
`
ifeq ($(OS),Windows_NT)
MODELSIM_DIR = C:\intelFPGA\19.1\modelsim_ae

else
MODELSIM_DIR = ~/intelFPGA/19.1/modelsim_ae
endif`

CFLAGS = -m32 -static -c -Wall -g -fno-diagnostics-show-caret -fpic -Iinclude -I$(MODELSIM_DIR)/include

ifeq ($(OS),Windows_NT)
LDFLAGS = -m32 -static -g -shared -lmtipli
LDFLAGS += -lws2_32
LDFLAGS += -L$(MODELSIM_DIR)/win32aloem

else
LDFLAGS = -m32 -static -g -shared -Llib/mtipli
LDFLAGS += -L$(MODELSIM_DIR)/win32aloem
endif`

After following the instructions in the READMEs, compiling with make and running the demos worked fine.
If there is a better way to do any of that please let me know

Thanks
-David

from fpga-devcloud.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.