Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to find the name 'array_of_8_logic' in scope 'AES_types' #569

Closed
martijnbastiaan opened this issue Apr 3, 2019 · 0 comments · Fixed by #704
Closed

Failed to find the name 'array_of_8_logic' in scope 'AES_types' #569

martijnbastiaan opened this issue Apr 3, 2019 · 0 comments · Fixed by #704
Labels
Milestone

Comments

@martijnbastiaan
Copy link
Member

When compiling this file, gracefully provided by @adamwalker, Clash fails to produce usable SystemVerilog output:

          vlog:          FAIL (0.13s)
            Program /opt/intelFPGA_pro/18.1/modelsim_ase/bin/vlog failed with error-code 2.
            
            Stderr was:
            
            
            Stdout was:
            Model Technology ModelSim - Intel FPGA Edition vlog 10.6d Compiler 2018.02 Feb 24 2018
            Start time: 14:11:37 on Apr 03,2019
            vlog -sv -work work /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv 
            -- Compiling package AES_types
            -- Compiling module AES_topEntity
            -- Importing package AES_types
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(39):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(39): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(40):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(40): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(41):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(41): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(43):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(43): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(68):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(68): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(72):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(72): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(254): (vlog-2730) Undefined variable: 'result_2'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(268):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(268): near "=": syntax error, unexpected '=', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(271): (vlog-2730) Undefined variable: 'result_2_reg'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(273): (vlog-2730) Undefined variable: 'result_2_reg'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(273): (vlog-2730) Undefined variable: 'result_3'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(276): (vlog-2730) Undefined variable: 'result_2_reg'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(289): (vlog-2730) Undefined variable: 'result_3_sel_alt_res'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(296): (vlog-2730) Undefined variable: 'result_3'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(296): (vlog-2730) Undefined variable: 'result_3_sel_alt_res'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(298): (vlog-2730) Undefined variable: 'result_4'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(311): (vlog-2730) Undefined variable: 'c$app_arg'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(325):  Failed to find the name 'array_of_8_logic_from_lv' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(334): (vlog-2730) Undefined variable: 'c$app_arg'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(350): (vlog-2730) Undefined variable: 'result_4'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(558):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(558): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(560):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(560): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(562):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(562): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(565):  Failed to find the name 'array_of_8_logic' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: (vlog-13069) /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(565): near ";": syntax error, unexpected ';', expecting '('.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(579): (vlog-2730) Undefined variable: 'c$app_arg_11'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(584): (vlog-2730) Undefined variable: 'c$x_app_arg_2'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(593):  Failed to find the name 'array_of_8_logic_from_lv' in scope 'AES_types' at /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1).
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(602): (vlog-2730) Undefined variable: 'c$app_arg_11'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(618): (vlog-2730) Undefined variable: 'result_13'.
            ** Error: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_topEntity.sv(628): (vlog-2730) Undefined variable: 'result_13'.
            ** Warning: /home/martijn/code/zcompiler/.clash-test-tmp/clash-test--afbb0190293853c0/Tests/Unit/Basic/AES/SystemVerilog/systemverilog/AES/AES_types.sv(1): (vlog-2275) 'AES_types' already exists and will be overwritten.
            -- Compiling package AES_types
            End time: 14:11:37 on Apr 03,2019, Elapsed time: 0:00:00
            Errors: 41, Warnings: 1

@martijnbastiaan martijnbastiaan added this to the 1.0 milestone Apr 3, 2019
christiaanb added a commit that referenced this issue Aug 13, 2019
christiaanb added a commit that referenced this issue Aug 13, 2019
christiaanb added a commit that referenced this issue Aug 14, 2019
christiaanb added a commit that referenced this issue Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant