spman
Advanced Member level 4
- Joined
- Aug 15, 2010
- Messages
- 113
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,061
Simulation of the design takes a long time in behavioral mode. About 10 min!
module myModule(Clk, PortA, PortB);
input Clk;
input PortA;
output PortB;
reg PortB; // The error is appeared here
always @...
...
'PortB' already declared in this scope (example_top).
...
else if (State == 2)
begin
if (app_wdf_rdy)
begin
//app_wdf_data <= ~(256'b0);
DataIndex <= DataIndex + 1;
app_wdf_end <= 1;
app_addr <= app_addr + 8;
app_cmd <= `cmd_Write; //Error is appeared here
app_en <= 1;
State <= 3;
end
end
...
A begin/end block was found with an empty body. This is permitted in SystemVerilog, but not permitted in Verilog. Please look for any stray semicolons.
output reg PortB;
parameter CMD_WRITE = 16'hCAFE; // somewhere at the start
...
app_cmd <= CMD_WRITE; // Error may still appear here, who knows. :P But at least one crappy define less in the universe.
module myModule(
input Clk, // 1 bit wire is the default
input wire PortA,
output reg PortB
);
ODDR #
(
.DDR_CLK_EDGE ("SAME_EDGE"),
.INIT (1'b0),
.SRTYPE ("ASYNC")
)
u_out_reset_n
(
.Q (ddr_reset_n),
.C (clk),
.CE (1'b1),
.D1 (mux_reset_n),
.D2 (mux_reset_n),
.R (rst_r),
.S (1'b0)
);
@spman,
Have you considered Active-HDL from Aldec. https://www.aldec.com/en/products/fpga_simulation/active-hdl
It offers many benefits over ISim. It actually matches quite well with Modelsim but also has many unique features - e.g you can import legacy schematic Xilinx designs into it if you wan to re-target the device. Active-HDL also has different configuration that matches with FPGA vendor tools. Just take a look at https://www.aldec.com/en so you can make an informed decision.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?