From 3fa59667468487b7931bafc30e8ec290db899ec8 Mon Sep 17 00:00:00 2001 From: mindchasers Date: Mon, 16 Nov 2020 16:14:53 -0500 Subject: directives: rename file and update for new options --- source/definitions.v | 28 ---------------------------- source/directives.v | 35 +++++++++++++++++++++++++++++++++++ source/top.v | 2 +- 3 files changed, 36 insertions(+), 29 deletions(-) delete mode 100644 source/definitions.v create mode 100644 source/directives.v diff --git a/source/definitions.v b/source/definitions.v deleted file mode 100644 index ad600ff..0000000 --- a/source/definitions.v +++ /dev/null @@ -1,28 +0,0 @@ -/* - * definitions.v - * - * Copyright 2(C) 018, 2019 Mind Chasers Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * function: misc. constants - * - */ - -// Debug Options (only enable at most one at a time) -`define DEBUG_I2C -//`define DEBUG_MDIO -//`define DEBUG_SPI - -// V02 boards can route UART to FT2232H -`define ARD_EXP_UART diff --git a/source/directives.v b/source/directives.v new file mode 100644 index 0000000..da2f420 --- /dev/null +++ b/source/directives.v @@ -0,0 +1,35 @@ +/* + * definitions.v + * + * Copyright (C) 2018, 2019, 2020 Mind Chasers Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Description: misc. directives for board options + * + */ + +// Debug Options for Darsena +//`define DEBUG_I2C +//`define DEBUG_MDIO +//`define DEBUG_SPI +// `define ARD_EXP_UART + +//`define DARSENA_V01 +`define DARSENA_V02 +//`define DARSENA_V03 + +// Shield Definition (PORTS 3 & 4) +// `define SHIELD_SMA_SMA +`define SHIELD_GIGE_SMA +// `define SHIELD_SFP_SMA \ No newline at end of file diff --git a/source/top.v b/source/top.v index 3913163..23f667f 100644 --- a/source/top.v +++ b/source/top.v @@ -116,7 +116,7 @@ module top( ); `include "sgmii_params.v" -`include "definitions.v" +`include "directives.v" /* PARAMS */ -- cgit v1.2.3-8-gadcc