the first time i knew and directly downloaded
opensparc source code was eight months ago. i grab it just for hobby so i don't have any plan to buy any expensive
ide, simulator, synthesizer, or loader. i don't even want to put it into a die. i want to grab it using open source or free software and load it (part of it) into an
fpga board.
what did i do so far are:
i join
opensparc-t1 s1 project and
fpga project.
- finding open source software
i'm currently using
debian gnu/linux 4.0 for the operating system,
eclipse 3.3.1.1 and
verilog editor 0.5.2 for the
ide,
icarus verilog 0.8 for the simulator,
gtkwave 1.3.81 for the waveform viewer of the simulation result. for the synthesizer, i have tried
s1 core using
icarus verilog but it fail.
eclipse ide for verilog editor on debian gnu/linux 4.0i have added
opensparct1.1.5 and
s1 core as
eclipse project. i also set the
eclipse to automatically run some external tools for
s1 project to build
icarus simulation, run
icarus simulation, and display test waveform.
in the following example, i extract the
s1 core under
.../openSparc/s1_core/ directory.
following steps show you how to set the external tools to build
icarus simulation:
+ select
run -
external tools -
open external tools dialog...+
on the left box, double click
program+ on the right box, fill in:
___- name: s1 - build
icarus simulation
+ on
main tab, fill in:
___- location:
.../openSparc/s1_core/tools/bin/build_icarus_____(location of
build_icarus script)
___- working directory: ${workspace_loc:/s1_core}
_____(
s1 core working directory)
+ on
environment tab:
___- click on
new... button
___- fill in variable name with
FILELIST_ICARUS, value with
.../openSparc/s1_core/hdl/filelist.icarus_____(location to
filelist.icarus file)
___- click on
new... button again
___- fill in variable name with
S1_ROOT, value with
.../openSparc/s1_core_____(location to
filelist.icarus file)
+ please make sure that the directories and environment variables are correct. one mistake can destroy your data. it because the
s1 script execute "rm -rf *" command.
+ click on
apply and
close button
+ the new setting will appear at
run -
external tools -
s1 - build icarus simulationfollowing steps show you how to set the external tools to run
icarus simulation:
+ select
run -
external tools -
open external tools dialog...+
on the left box, double click on
program+ on the right box, fill in:
___- name: s1 - run
icarus simulation
+ on
main tab, fill in:
___- location:
.../openSparc/s1_core/tools/bin/run_icarus_____(location to
run_icarus script)
___- working directory: ${workspace_loc:/s1_core}
_____(
s1 core working directory)
+ on
environment tab:
___- click on
new... button
___- fill in variable name with
S1_ROOT, value with
.../openSparc/s1_core_____(location to
filelist.icarus file)
+ click on
apply and
close button
+ the new setting will appear at
run -
external tools -
s1 - run icarus simulationfollowing steps show you how to set the external tools to display test waveform:
+ select
run -
external tools -
open external tools dialog...+
on the left box, double click on
program+ on the right box, fill in:
___- name: s1 - display test waveform
+ on
main tab, fill in:
___- location:
/usr/bin/gtkwave_____(location of
gtkwave application)
___- working directory: ${workspace_loc:/s1_core}
_____(
s1 core working directory)
___- arguments:
run/sim/icarus/trace.vcd tools/src/gtkwave.sav+ on
environment tab:
___- click on
new... button
___- fill in variable name with
S1_ROOT, value with
.../openSparc/s1_core_____(location to
filelist.icarus file)
+ click on
apply and
close button
+ the new setting will appear at
run -
external tools -
s1 - display test waveformthe default font setting form
eclipse is too big for me, so i change it from
window -
preferences... than select
general -
appearance -
colors and fonts. some other
gtk default font can be changed also. read this blog on how to
make eclipse look good on linux.
i have installed
xilinx ise webpack 9.2i on my
debian gnu/
linux 4.0 box. i need only to install a new library and it just work. as the default,
debian comes with
libstdc++6, but
xilinx ise webpack 9.2i requires
libstdc++5. just install the old library without removing the new one.
the synthesis works fine but you can't find any
fpga board that is supported by
xilinx ise webpack edition that can feed
opensparc t1or even
s1 core in. the default simulator (just a simple simulator) form
xilinx ise webpack also can't simulate
s1 core test.
xilinx ise webpack on debian gnu/linux 4.0