J
Jason
Guest
I wrote a simple program for a 8-bit counter in Cadence with VerilogA
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
`include "constants.vams"
`include "disciplines.vams"
module counter(clk, reset, result, ena);
input clk;
input reset;
input ena;
output reg [7:0] result;
always @(posedge clk or posedge reset)
begin
if (reset)
result = 0;
else if (ena)
result = result + 1;
end
endmodule
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
When the compiling proceeding, I have several problems which say:
--------------------------------------------------------------------
Warning from spectre during SpectreHDL compile.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 11: Warning: `reg' is a future reserved keyword, parsing
as
identifier.
Error found by spectre during SpectreHDL compile.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 11: "output reg <<--? [7:0] result;"
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 11: Error: syntax error
Warning from spectre during SpectreHDL compile.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 13: Warning: `always' is a future reserved keyword,
parsing as
identifier.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 13: Warning: `posedge' is a future reserved keyword,
parsing as
identifier.
------------------------------------------------------------------------
I tried to search google, but there's no proper answer for this
problem. Anyone has any clue?
Thx
Jay
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
`include "constants.vams"
`include "disciplines.vams"
module counter(clk, reset, result, ena);
input clk;
input reset;
input ena;
output reg [7:0] result;
always @(posedge clk or posedge reset)
begin
if (reset)
result = 0;
else if (ena)
result = result + 1;
end
endmodule
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
When the compiling proceeding, I have several problems which say:
--------------------------------------------------------------------
Warning from spectre during SpectreHDL compile.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 11: Warning: `reg' is a future reserved keyword, parsing
as
identifier.
Error found by spectre during SpectreHDL compile.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 11: "output reg <<--? [7:0] result;"
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 11: Error: syntax error
Warning from spectre during SpectreHDL compile.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 13: Warning: `always' is a future reserved keyword,
parsing as
identifier.
"/home/qw/vlsi/Libraries/UMC18_MM_RF/test_sys/counter/veriloga/
veriloga.va",
line 13: Warning: `posedge' is a future reserved keyword,
parsing as
identifier.
------------------------------------------------------------------------
I tried to search google, but there's no proper answer for this
problem. Anyone has any clue?
Thx
Jay