lemart92
Newbie level 4
- Joined
- Sep 15, 2014
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 75
All - I'm trying to instantiate this Verilog block (pasted below) into my top level VHDL. I've tried to create a wrapper but I'm not having much success.
Can anyone help me out with how this is supposed to look with a VHDL wrapper around it?
Thanks!
Can anyone help me out with how this is supposed to look with a VHDL wrapper around it?
Thanks!
Code Verilog - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 `timescale 1 ps / 1 ps module top_hw ( input wire refclk_clk, // refclk.clk input wire reconfig_xcvr_clk, // refclk.clk input wire hip_serial_rx_in0, // .rx_in0 output wire hip_serial_tx_out0, // .tx_out0 input wire local_rstn, output wire hsma_clk_out_p2, output reg [3:0] lane_active_led, output reg L0_led, output reg alive_led, output reg comp_led, input wire perstn // pcie_rstn.npor ); wire [31:0] test_in; // .test_in wire fbout_reconfigclk; reg [ 24: 0] alive_cnt; wire any_rstn; reg any_rstn_r /* synthesis ALTERA_ATTRIBUTE = "SUPPRESS_DA_RULE_INTERNAL=R102" */; reg any_rstn_rr /* synthesis ALTERA_ATTRIBUTE = "SUPPRESS_DA_RULE_INTERNAL=R102" */; wire gen2_speed; wire [5:0] ltssm; assign any_rstn = perstn & local_rstn; assign hsma_clk_out_p2 = reconfig_xcvr_clk; assign test_in[0] = 1'b0; // Simulation mode assign test_in[1] = 1'b0; // Reserved assign test_in[2] = 1'b0; // Reserved assign test_in[3] = 1'b0; // FPGA Mode assign test_in[4] = 1'b0; // Reserved assign test_in[5] = 1'b1; // Disable compliance mode assign test_in[6] = 1'b0; // Disable compliance mode assign test_in[7] = 1'b1; // Disable low power state assign test_in[11:8] = 4'b0011; assign test_in[31:12] = 20'h0; //reset Synchronizer always @(posedge reconfig_xcvr_clk or negedge any_rstn) begin if (any_rstn == 0) begin any_rstn_r <= 0; any_rstn_rr <= 0; end else begin any_rstn_r <= 1; any_rstn_rr <= any_rstn_r; end end top top ( .pcie_cv_hip_avmm_0_refclk_clk (refclk_clk ),// refclk.clk .clk_clk (reconfig_xcvr_clk ),// reconfig_xcvr_clk.clk .pcie_cv_hip_avmm_0_hip_ctrl_test_in (test_in ),// .test_in .pcie_cv_hip_avmm_0_hip_serial_rx_in0 (hip_serial_rx_in0 ),// .rx_in0 .pcie_cv_hip_avmm_0_hip_serial_tx_out0 (hip_serial_tx_out0 ),// .tx_out0 .pcie_cv_hip_avmm_0_npor_npor (any_rstn_rr), // pcie_rstn.npor .reset_reset_n ((perstn==1'b0)?1'b0:(local_rstn==1'b0)?1'b0:1'b1), // reconfig_xcvr_rst.reconfig_xcvr_rst .pcie_cv_hip_avmm_0_npor_pin_perst (perstn) // .pin_perst ); endmodule
Last edited by a moderator: