Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7711265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:19:53+00:00 2026-06-01T01:19:53+00:00

I am creating a test bench for a BCD_counter. When i try to compile

  • 0

I am creating a test bench for a BCD_counter.

When i try to compile the test bench, i consistently get the error that reads:

“Error: …/…/../Test_UpDownCounter.vhdl(38): VHDL Compiler exiting.”

This is the only error I am getting, and line 38 is the last line of my code. I am wondering what could be the problem?

Here is my code, any help will be much appreciated.

entity test_BCD is
  end entity test_BCD;

  architecture test of test_BCD is 
     signal t_clk, t_direction, t_init, t_enable: bit;
     signal t_q : integer;

     component UpDownCounter is 
          port(clk, direction, init, enable: in bit;
              q_out: out integer);
     end component;

     begin
       my_design: UpDownCounter port map (t_enable, t_q, t_clk, t_direction, t_init, t_enable);


       clk_gen: process
          constant High_time : Time :=5 ns;
          constant Low_time : Time := 5 ns;
       begin
          wait for High_time;
          t_clk <= '1';
          wait for Low_time;
          t_clk <= '0';
       end process clk_gen; 


       -- Initialization process (code that executes only once).
       init: process
       begin 
          -- enable signal
          t_enable <= '1', '0' after 100 ns, '1' after 200 ns;
          t_direction <= '1', '0' after 50 ns, '1' after 100 ns, '0' after 150 ns;
          t_init <= '0', '1' after 20 ns, '0' after 30 nz, '1' after 150 ns;
          wait;
       end process init;
end architecture test;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:19:55+00:00Added an answer on June 1, 2026 at 1:19 am

    This line:

    t_init <= '0', '1' after 20 ns, '0' after 30 nz, '1' after 150 ns;
    

    has nz rather than (I assume) ns as the time units. Which my compiler tells me straight away:

    ** Error: test1.vhd(34): (vcom-1136) Unknown identifier "nz".
    

    I’d raise a bug report with whatever compiler that it to generate better error messages!


    While I’m here:

    Your instantiation of UpDownCounter looks wrong – your signals look to be in a different order to the component declaration you’ve used.


    And in this:

     clk_gen: process
          constant High_time : Time :=5 ns;
          constant Low_time : Time := 5 ns;
       begin
          wait for High_time;
          t_clk <= '1';
          wait for Low_time;
          t_clk <= '0';
       end process clk_gen; 
    

    Your labels High_time and Low_time are back to front – try changing one of them and see whether the high or low ime changes as you expect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I'm creating test application that has a user control with a Button that
I have successfully set up a quick test of creating a REST-like service that
I am creating unit test py file (tests.py) then i received the below error
I am creating test.js from Java, as per below. Test.js implements function d(), that
I'm creating test data for a Rails app. How do I define the value
I have the following couple of C pre-processor macros for creating test functions: //
When I am creating a test project in Visual Studio, do I just create
I am creating a test program to test the functionality of program which calcultes
I am creating Junit test cases in Spring. private static BeanFactory servicefactory = null;
I've created a small script to test creating my own help based powershell and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.