imbichie
Full Member level 6
- Joined
- Jul 30, 2010
- Messages
- 381
- Helped
- 55
- Reputation
- 110
- Reaction score
- 54
- Trophy points
- 1,308
- Activity points
- 3,580
Hi All,
Is there any way to replace the ifdef at the port side in VHDL.
Foe example, if my dut in verilog is like this
but my Testbench is in VHDL, in VHDL ifdef won't support,
so if i am instantiate this DUT in the testbench, how to replace the ifdef at the port side.
During the component declaration also we need to take care of the ifdef
Is there any way to replace the ifdef at the port side in VHDL.
Foe example, if my dut in verilog is like this
Code:
module wb_ram
(
input wire [31:0] dat_i;
output wire [31:0] dat_o;
input wire [31:0] adr_i;
input wire we_i;
input wire [3:0] sel_i;
input wire cyc_i;
input wire stb_i;
output reg ack_o;
[B] `ifdef CTI[/B]
input wire [2:0] cti_i;
[B] `endif[/B]
input wire clk_i;
input wire rst_i
);
but my Testbench is in VHDL, in VHDL ifdef won't support,
so if i am instantiate this DUT in the testbench, how to replace the ifdef at the port side.
During the component declaration also we need to take care of the ifdef
Last edited by a moderator: