|
|
|
|
// © IBM Corp. 2021
|
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"), as modified by the terms below; you may not use the files in this
|
|
|
|
|
// repository except in compliance with the License as modified.
|
|
|
|
|
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
//
|
|
|
|
|
// Modified Terms:
|
|
|
|
|
//
|
|
|
|
|
// 1) For the purpose of the patent license granted to you in Section 3 of the License, the "Work" hereby includes implementations of
|
|
|
|
|
// the work of authorship in physical form.
|
|
|
|
|
//
|
|
|
|
|
// Unless required by applicable law or agreed to in writing, the reference design 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.
|
|
|
|
|
//
|
|
|
|
|
// Brief explanation of modifications:
|
|
|
|
|
//
|
|
|
|
|
// Modification 1: This modification extends the patent license to an implementation of the Work in physical form – i.e.,
|
|
|
|
|
// it unambiguously permits a user to make and use the physical chip.
|
|
|
|
|
|
|
|
|
|
`timescale 1 ns / 1 ns
|
|
|
|
|
|
|
|
|
|
`include "../toysram.vh"
|
|
|
|
|
|
|
|
|
|
// miscellaneous logic macro
|
|
|
|
|
|
|
|
|
|
module misc #(
|
|
|
|
|
parameter BITS = 32
|
|
|
|
|
)(
|
|
|
|
|
`ifdef USE_POWER_PINS
|
|
|
|
|
inout vdda1, // User area 1 3.3V supply
|
|
|
|
|
inout vdda2, // User area 2 3.3V supply
|
|
|
|
|
inout vssa1, // User area 1 analog ground
|
|
|
|
|
inout vssa2, // User area 2 analog ground
|
|
|
|
|
inout vccd1, // User area 1 1.8V supply
|
|
|
|
|
inout vccd2, // User area 2 1.8v supply
|
|
|
|
|
inout vssd1, // User area 1 digital ground
|
|
|
|
|
inout vssd2, // User area 2 digital ground
|
|
|
|
|
`endif
|
|
|
|
|
|
|
|
|
|
input clk,
|
|
|
|
|
input reset,
|
|
|
|
|
|
|
|
|
|
// Logic Analyzer Signals
|
|
|
|
|
input [127:0] la_data_in,
|
|
|
|
|
output [127:0] la_data_out,
|
|
|
|
|
input [127:0] la_oen,
|
|
|
|
|
|
|
|
|
|
// Analog (direct connection to GPIO pad---use with caution)
|
|
|
|
|
// Note that analog I/O is not available on the 7 lowest-numbered
|
|
|
|
|
// GPIO pads, and so the analog_io indexing is offset from the
|
|
|
|
|
// GPIO indexing by 7.
|
|
|
|
|
inout [`MPRJ_IO_PADS-8:0] analog_io,
|
|
|
|
|
|
|
|
|
|
// Independent clock (on independent integer divider)
|
|
|
|
|
input user_clock2
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
endmodule
|