The command line and the output folder (v7.1)¶
What changed for whoever runs YANC between v6.0 and v7.1 (2026-10-11 to
2026-10-13), so the manual can say it. The details and the commits are in
the CHANGELOG ([Unreleased]); how to run is in
simulation.md.
before (v6.0) |
now (v7.1) |
|---|---|
four or five tools per program: |
one command, |
the processor named by |
the processor takes the source file’s name; the two directives are errors |
|
the user’s files beside the source; everything generated in one folder, |
|
gone: the source is the argument, |
|
|
|
|
|
|
C++ errors at a line of |
at the file and line written, a header’s too |
the tools added to the PATH by hand |
|
For the documentation (issue #40)¶
The user-facing text says:
install: unpack the package and run
install.bat(Windows) or./install.sh(Linux) once; a new terminal knowsyanc;yanc prog.cmm(orprog.cpp) makes the processorprogin the folderprog/:prog.v, its memoriesprog_inst.mif/prog_data.mifand the testbenchprog_tb.v;-opicks another folder,-Sstops atprog.asm,yanc prog/prog.asmassembles only,-f/-cset the testbench clock and length,-Iadds a C++ include folder,--wave-arraysshows each array element in the waveform,-vshows the tools it runs;the processor’s name is the file’s: to rename the processor, rename the file;
the files the program reads (an array initialised from a file,
input_N.txt,cade_k.txt) stay beside the source; the simulation runs in the output folder and writesoutput_N.txtthere;the messages are in English;
--lang=ptorYANC_LANG=ptswitches the C± tools to Portuguese;simulating and the waveform are as before, from the output folder (README Quick start).