Closed mpendel closed 6 years ago
There seems to be an issue with custom type'd ports. In this case, a record.
component clk_reset is generic ( LCL_BLK : block_t := CLK_RST; CLK1_FREQ_MHZ : real := 96.0; CLK2_FREQ_MHZ : real := 48.0; RESET_LOW_TIME : time := 700 ns ); port ( -- Ctrl I/F clk_ctrl_in : in ctrl2blk_t; clk_resp_out : out blk2ctrl_t; -- CLOCK Outputs clk1_out : out std_logic; clk2_out : out std_logic; rstn_out : out std_logic ); end component; -- anything1 -- anything2
I think it's obvious. Shouldn't throw away lines nor introduce syntax errors.
Formatting is fine, but it kicks out an extra END COMPONENT; and drops a line. See below:
END COMPONENT;
COMPONENT clk_reset IS GENERIC ( LCL_BLK : block_t := CLK_RST; CLK1_FREQ_MHZ : real := 96.0; CLK2_FREQ_MHZ : real := 48.0; RESET_LOW_TIME : TIME := 700 ns ); PORT ( -- Ctrl I/F clk_ctrl_in : IN ctrl2blk_t; clk_resp_out : OUT blk2ctrl_t; -- CLOCK Outputs clk1_out : OUT std_logic; clk2_out : OUT std_logic; rstn_out : OUT std_logic ); END COMPONENT; END COMPONENT; -- anything1
Notice the extra END COMPONENT; and the missing --anything2
--anything2
I see that there's a duplicate issue and it may not be related to custom types. Regardless, the issue stands. Thanks!
investigating
Fixed. If not, reopen this one with new examples, <3
Report a bug
There seems to be an issue with custom type'd ports. In this case, a record.
Input
Expected Behavior
I think it's obvious. Shouldn't throw away lines nor introduce syntax errors.
Actual Behavior
Formatting is fine, but it kicks out an extra
END COMPONENT;
and drops a line. See below:Result
Notice the extra
END COMPONENT;
and the missing--anything2