Commit 0f1172c3 authored by Federico Vaga's avatar Federico Vaga

sw:tool:smem: set address default

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent c7c932da
......@@ -24,8 +24,8 @@ static void help()
fprintf(stderr, "mockturtle-smem -D 0x<hex-number> -a 0x<number> [options] [value]\n\n");
fprintf(stderr, "This program reads/write to/from the Mock-Turtle shared memory. If you privide data, it will write these data into the shared memory. Then, it dumps the content after the write operation (if any). If you do not provide any data, it will simply read the current content of the shared memory\n\n");
fprintf(stderr, "-D device identificator in hexadecimal format\n");
fprintf(stderr, "-a address where start operation\n");
fprintf(stderr, "-n number of word (32bit) to read/write. The default is 1\n");
fprintf(stderr, "-a address where start operation (default: 0x00000000)\n");
fprintf(stderr, "-n number of word (32bit) to read/write. (default: 1)\n");
fprintf(stderr, "-m write operation mode. The default is 0\n");
fprintf(stderr, " raw operations\n");
fprintf(stderr, " 0 direct mode\n");
......@@ -56,7 +56,7 @@ uint64_t hex_to_int(char **argv, int index)
int main(int argc, char *argv[])
{
unsigned int i, n = 1, mod = 0;
uint32_t addr, *val, dev_id;
uint32_t addr = 0, *val, dev_id;
int err, do_write;
struct trtl_dev *trtl;
char c;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment