Skip to content

Commit

Permalink
[examples][jupyter] some note about showing diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
Godhart committed May 21, 2024
1 parent dc8d507 commit 8d0cb14
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions examples/jl-simple/hello-world.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "3d5ff310c478422c9c080c9cac4cfec3",
"model_id": "2eb5c5bdd3f24e3290fb8fcdf27f9897",
"version_major": 2,
"version_minor": 0
},
Expand Down Expand Up @@ -338,12 +338,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
"INFO: Running command ghdl -i --work=top /tmp/tmpjhiwzg91/main.vhd in directory /tmp/tmpjhiwzg91/.build\n",
"INFO: Running command ghdl -i --work=top in directory /tmp/tmpjhiwzg91/.build\n",
"INFO: Running command ghdl -m --work=top main in directory /tmp/tmpjhiwzg91/.build\n",
"analyze /tmp/tmpjhiwzg91/main.vhd\n",
"INFO: Running command ghdl -i --work=top /tmp/tmpvprxu2pw/main.vhd in directory /tmp/tmpvprxu2pw/.build\n",
"INFO: Running command ghdl -i --work=top in directory /tmp/tmpvprxu2pw/.build\n",
"INFO: Running command ghdl -m --work=top main in directory /tmp/tmpvprxu2pw/.build\n",
"analyze /tmp/tmpvprxu2pw/main.vhd\n",
"elaborate main\n",
"INFO: Running command ghdl -r --work=top main --vpi=/home/k/Works/vdf/.venv/lib/python3.11/site-packages/cocotb/libs/libcocotbvpi_ghdl.so --vcd=waves.vcd in directory /tmp/tmpjhiwzg91/.build\n",
"INFO: Running command ghdl -r --work=top main --vpi=/home/k/Works/vdf/.venv/lib/python3.11/site-packages/cocotb/libs/libcocotbvpi_ghdl.so --vcd=waves.vcd in directory /tmp/tmpvprxu2pw/.build\n",
" -.--ns INFO gpi ..mbed/gpi_embed.cpp:105 in set_program_name_in_venv Using Python virtual environment interpreter at /home/k/Works/vdf/.venv/bin/python\n",
" -.--ns INFO gpi ../gpi/GpiCommon.cpp:101 in gpi_print_registered_impl VPI registered\n"
]
Expand All @@ -362,7 +362,7 @@
"text": [
" 0.00ns INFO cocotb Running on GHDL version 4.1.0 (tarball) [Dunoon edition]\n",
" 0.00ns INFO cocotb Running tests with cocotb v1.8.1 from /home/k/Works/vdf/.venv/lib/python3.11/site-packages/cocotb\n",
" 0.00ns INFO cocotb Seeding Python random module with 1716269044\n"
" 0.00ns INFO cocotb Seeding Python random module with 1716269496\n"
]
},
{
Expand All @@ -386,12 +386,12 @@
" 200.00ns INFO cocotb.regression *********************************************************************************************\n",
" ** TEST STATUS SIM TIME (ns) REAL TIME (s) RATIO (ns/s) **\n",
" *********************************************************************************************\n",
" ** src.runner.run_coco_main_module.run PASS 200.00 0.01 20861.99 **\n",
" ** src.runner.run_coco_main_module.run PASS 200.00 0.01 20870.30 **\n",
" *********************************************************************************************\n",
" ** TESTS=1 PASS=1 FAIL=0 SKIP=0 200.00 1.30 154.31 **\n",
" ** TESTS=1 PASS=1 FAIL=0 SKIP=0 200.00 1.48 135.04 **\n",
" *********************************************************************************************\n",
" \n",
"INFO: Results file: /tmp/tmpjhiwzg91/.build/results.xml\n"
"INFO: Results file: /tmp/tmpvprxu2pw/.build/results.xml\n"
]
}
],
Expand All @@ -406,6 +406,8 @@
"source": [
"## Now look at diagrams - they are beautiful!\n",
"\n",
"> NOTE: right now diagrams would be show only if opened from jupyer notebook\n",
"\n",
"You can specify waves you want to show or just show all available"
]
},
Expand All @@ -419,17 +421,17 @@
"name": "stdout",
"output_type": "stream",
"text": [
"vcd_file = '/tmp/tmpjhiwzg91/.build/waves.vcd'\n",
"json_file = '/tmp/tmpjhiwzg91/.build/waves.vcd.general.json'\n",
"vcd_file = '/tmp/tmpvprxu2pw/.build/waves.vcd'\n",
"json_file = '/tmp/tmpvprxu2pw/.build/waves.vcd.general.json'\n",
"path_list = ['main/clk',\n",
" 'main/s']\n",
"wave_chunk = 20\n",
"start_time = 0\n",
"end_time = 0\n",
"\n",
"Create WaveJSON file \"/tmp/tmpjhiwzg91/.build/waves.vcd.general.json\".\n",
"vcd_file = '/tmp/tmpjhiwzg91/.build/waves.vcd'\n",
"json_file = '/tmp/tmpjhiwzg91/.build/waves.vcd.all of them.json'\n",
"Create WaveJSON file \"/tmp/tmpvprxu2pw/.build/waves.vcd.general.json\".\n",
"vcd_file = '/tmp/tmpvprxu2pw/.build/waves.vcd'\n",
"json_file = '/tmp/tmpvprxu2pw/.build/waves.vcd.all of them.json'\n",
"path_list = ['main/clk',\n",
" 'main/v1[7:0]',\n",
" 'main/v2[7:0]',\n",
Expand All @@ -438,7 +440,7 @@
"start_time = 0\n",
"end_time = 0\n",
"\n",
"Create WaveJSON file \"/tmp/tmpjhiwzg91/.build/waves.vcd.all of them.json\".\n"
"Create WaveJSON file \"/tmp/tmpvprxu2pw/.build/waves.vcd.all of them.json\".\n"
]
},
{
Expand All @@ -456,7 +458,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "b590e298ffc24b278b4ebefe2c5b6324",
"model_id": "65836825e9824cc8b5b07746166ef098",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -482,7 +484,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "1c2ba276ff004217abc20571234a2ba6",
"model_id": "ca9168321cc5486a88bbdb3711de652e",
"version_major": 2,
"version_minor": 0
},
Expand Down

0 comments on commit 8d0cb14

Please sign in to comment.