Forum Discussion
Altera_Forum
Honored Contributor
16 years ago --- Quote Start --- How to differentiate verilog design and testbench syntax? Is it depending on the some symbol like# , $ and so on? is all the syntax with symbol for testbench? $random is for test bench? thanks --- Quote End --- What is the purpose of this? Do you want to perfom a language detection automatically by your software? Verilog: `timescale 1 ns / 1 ns module simple_counter_top( osc_clk, rst, led ); input osc_clk; ... endmodule VHDL: LIBRARY ieee; USE ieee.std_logic_1164.all; ENTITY simple_counter IS PORT ( rst : IN STD_LOGIC; osc_clk : IN STD_LOGIC; led : OUT STD_LOGIC_VECTOR(3 DOWNTO 0) ); END simple_counter; ARCHITECTURE bdf_type OF simple_counter IS COMPONENT smp_counter ..... end architecture;