Closed 13771915047 closed 2 years ago
Hi, SystemVerilog attribute on a pin within a cell instantiation in the RTL sets that attribute on the corresponding instance pin in the HDL Compiler database. RTL: PLL UPLL1 (.REFCLK(CLK1), .FDBCK(CLK1_FDBCK), ( my_pll_mult = 2 ) .CLKOUT2(PLLCLK1_X2), ( my_pll_mult = 4 ) .CLKOUT4(PLLCLK1_X4)); PLL UPLL2 (.REFCLK(CLK2), .FDBCK(CLK2_FDBCK), ( my_pll_mult = 2 ) .CLKOUT2(PLLCLK2_X2), ( my_pll_mult = 4 ) .CLKOUT4(PLLCLK2_X4));
And I would like to request could these attributes be autoinsted by AUTO_TEMPLATE?
for example: set AUTO_TEMPLATE like this: / module_test AUTO_TEMPLATE ( ( clk_freq = 125 ,pin_type="clk") .clk (clk_sys), ( pin_type = "rst" ) .rstb (rstb_mac), );/
expected autoinst result: module_test test_inst(/autoinst/ ( clk_freq = 125 ,pin_type="clk") .clk (clk_sys), ( pin_type = "rst" ) .rstb (rstb_mac));
Thanks for reading!
Sorry, there's no plans to support this, as it's very uncommonly used, and painful to implement. I'd suggest not using autos for this example.
Hi, get it, thank you all the same!
Hi, SystemVerilog attribute on a pin within a cell instantiation in the RTL sets that attribute on the corresponding instance pin in the HDL Compiler database. RTL: PLL UPLL1 (.REFCLK(CLK1), .FDBCK(CLK1_FDBCK), ( my_pll_mult = 2 ) .CLKOUT2(PLLCLK1_X2), ( my_pll_mult = 4 ) .CLKOUT4(PLLCLK1_X4)); PLL UPLL2 (.REFCLK(CLK2), .FDBCK(CLK2_FDBCK), ( my_pll_mult = 2 ) .CLKOUT2(PLLCLK2_X2), ( my_pll_mult = 4 ) .CLKOUT4(PLLCLK2_X4));
And I would like to request could these attributes be autoinsted by AUTO_TEMPLATE?
for example: set AUTO_TEMPLATE like this: / module_test AUTO_TEMPLATE ( ( clk_freq = 125 ,pin_type="clk") .clk (clk_sys), ( pin_type = "rst" ) .rstb (rstb_mac), );/
expected autoinst result: module_test test_inst(/autoinst/ ( clk_freq = 125 ,pin_type="clk") .clk (clk_sys), ( pin_type = "rst" ) .rstb (rstb_mac));
Thanks for reading!