Core-676. Correct syntax error when translate off is applied correctly.
This commit is contained in:
parent
b8d8137f84
commit
1eb101a6ae
1 changed files with 68 additions and 65 deletions
|
|
@ -1,13 +1,13 @@
|
|||
// (C) 2001-2016 Altera Corporation. All rights reserved.
|
||||
// Your use of Altera Corporation's design tools, logic functions and other
|
||||
// software and tools, and its AMPP partner logic functions, and any output
|
||||
// files any of the foregoing (including device programming or simulation
|
||||
// files), and any associated documentation or information are expressly subject
|
||||
// to the terms and conditions of the Altera Program License Subscription
|
||||
// Agreement, Altera MegaCore Function License Agreement, or other applicable
|
||||
// license agreement, including, without limitation, that your use is for the
|
||||
// sole purpose of programming logic devices manufactured by Altera and sold by
|
||||
// Altera or its authorized distributors. Please refer to the applicable
|
||||
// Your use of Altera Corporation's design tools, logic functions and other
|
||||
// software and tools, and its AMPP partner logic functions, and any output
|
||||
// files any of the foregoing (including device programming or simulation
|
||||
// files), and any associated documentation or information are expressly subject
|
||||
// to the terms and conditions of the Altera Program License Subscription
|
||||
// Agreement, Altera MegaCore Function License Agreement, or other applicable
|
||||
// license agreement, including, without limitation, that your use is for the
|
||||
// sole purpose of programming logic devices manufactured by Altera and sold by
|
||||
// Altera or its authorized distributors. Please refer to the applicable
|
||||
// agreement for further details.
|
||||
|
||||
|
||||
|
|
@ -26,54 +26,54 @@
|
|||
******************************************************************************/
|
||||
|
||||
module altera_up_sync_fifo_3 (
|
||||
// Inputs
|
||||
clk,
|
||||
reset,
|
||||
// Inputs
|
||||
clk,
|
||||
reset,
|
||||
|
||||
write_en,
|
||||
write_data,
|
||||
write_en,
|
||||
write_data,
|
||||
|
||||
read_en,
|
||||
|
||||
// Bidirectionals
|
||||
read_en,
|
||||
|
||||
// Outputs
|
||||
fifo_is_empty,
|
||||
fifo_is_full,
|
||||
words_used,
|
||||
// Bidirectionals
|
||||
|
||||
read_data
|
||||
// Outputs
|
||||
fifo_is_empty,
|
||||
fifo_is_full,
|
||||
words_used,
|
||||
|
||||
read_data
|
||||
);
|
||||
|
||||
/*****************************************************************************
|
||||
* Parameter Declarations *
|
||||
*****************************************************************************/
|
||||
|
||||
parameter DW = 31; // Data width
|
||||
parameter DATA_DEPTH = 128;
|
||||
parameter AW = 6; // Address width
|
||||
parameter DW = 31; // Data width
|
||||
parameter DATA_DEPTH = 128;
|
||||
parameter AW = 6; // Address width
|
||||
|
||||
/*****************************************************************************
|
||||
* Port Declarations *
|
||||
*****************************************************************************/
|
||||
|
||||
// Inputs
|
||||
input clk;
|
||||
input reset;
|
||||
input clk;
|
||||
input reset;
|
||||
|
||||
input write_en;
|
||||
input [DW: 0] write_data;
|
||||
input write_en;
|
||||
input [DW: 0] write_data;
|
||||
|
||||
input read_en;
|
||||
input read_en;
|
||||
|
||||
// Bidirectionals
|
||||
|
||||
// Outputs
|
||||
output fifo_is_empty;
|
||||
output fifo_is_full;
|
||||
output [AW: 0] words_used;
|
||||
output fifo_is_empty;
|
||||
output fifo_is_full;
|
||||
output [AW: 0] words_used;
|
||||
|
||||
output [DW: 0] read_data;
|
||||
output [DW: 0] read_data;
|
||||
|
||||
/*****************************************************************************
|
||||
* Constant Declarations *
|
||||
|
|
@ -109,44 +109,47 @@ output [DW: 0] read_data;
|
|||
*****************************************************************************/
|
||||
|
||||
|
||||
scfifo Sync_FIFO (
|
||||
// Inputs
|
||||
.clock (clk),
|
||||
.sclr (reset),
|
||||
scfifo Sync_FIFO (
|
||||
// Inputs
|
||||
.clock (clk),
|
||||
.sclr (reset),
|
||||
|
||||
.data (write_data),
|
||||
.wrreq (write_en),
|
||||
.data (write_data),
|
||||
.wrreq (write_en),
|
||||
|
||||
.rdreq (read_en),
|
||||
.rdreq (read_en),
|
||||
|
||||
// Bidirectionals
|
||||
// Bidirectionals
|
||||
|
||||
// Outputs
|
||||
.empty (fifo_is_empty),
|
||||
.full (fifo_is_full),
|
||||
.usedw (words_used),
|
||||
|
||||
.q (read_data),
|
||||
// Outputs
|
||||
.empty (fifo_is_empty),
|
||||
.full (fifo_is_full),
|
||||
.usedw (words_used),
|
||||
|
||||
// Unused
|
||||
// synopsys translate_off
|
||||
|
||||
.aclr (),
|
||||
.almost_empty (),
|
||||
.almost_full ()
|
||||
// synopsys translate_on
|
||||
.q (read_data)
|
||||
|
||||
// Unused
|
||||
// synopsys translate_off
|
||||
// Note comma below is taken from q line so when
|
||||
// translate is off, syntax is correct
|
||||
,
|
||||
|
||||
.aclr (),
|
||||
.almost_empty (),
|
||||
.almost_full ()
|
||||
// synopsys translate_on
|
||||
);
|
||||
defparam
|
||||
Sync_FIFO.add_ram_output_register = "OFF",
|
||||
Sync_FIFO.intended_device_family = "Cyclone II",
|
||||
Sync_FIFO.lpm_numwords = DATA_DEPTH,
|
||||
Sync_FIFO.lpm_showahead = "ON",
|
||||
Sync_FIFO.lpm_type = "scfifo",
|
||||
Sync_FIFO.lpm_width = DW + 1,
|
||||
Sync_FIFO.lpm_widthu = AW + 1,
|
||||
Sync_FIFO.overflow_checking = "OFF",
|
||||
Sync_FIFO.underflow_checking = "OFF",
|
||||
Sync_FIFO.use_eab = "ON";
|
||||
Sync_FIFO.add_ram_output_register = "OFF",
|
||||
Sync_FIFO.intended_device_family = "Cyclone II",
|
||||
Sync_FIFO.lpm_numwords = DATA_DEPTH,
|
||||
Sync_FIFO.lpm_showahead = "ON",
|
||||
Sync_FIFO.lpm_type = "scfifo",
|
||||
Sync_FIFO.lpm_width = DW + 1,
|
||||
Sync_FIFO.lpm_widthu = AW + 1,
|
||||
Sync_FIFO.overflow_checking = "OFF",
|
||||
Sync_FIFO.underflow_checking = "OFF",
|
||||
Sync_FIFO.use_eab = "ON";
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue