From 191ce358c78a4f8208104d66f9607ef4eff227af Mon Sep 17 00:00:00 2001 From: bbleaptrot <35536624+bbleaptrot@users.noreply.github.com> Date: Tue, 23 Mar 2021 17:29:34 -0600 Subject: [PATCH] Indent code-blocks --- .../user_defined_temp_tutorial.rst | 88 +++++++++---------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/docs/source/tutorials/arch_modeling/user_defined_temp_tutorial.rst b/docs/source/tutorials/arch_modeling/user_defined_temp_tutorial.rst index 362607907..5d018c68d 100644 --- a/docs/source/tutorials/arch_modeling/user_defined_temp_tutorial.rst +++ b/docs/source/tutorials/arch_modeling/user_defined_temp_tutorial.rst @@ -16,7 +16,7 @@ Go to line 187 and replace it with: .. code-block:: XML - + Motivation ~~~~~~~~~~ @@ -58,52 +58,52 @@ To implement our own ADDF module, we need to remove all other module definitions .. code-block:: Verilog -//------------------------------------------- -// FPGA Synthesizable Verilog Netlist -// Description: Template for user-defined Verilog modules -// Author: Xifan TANG -// Organization: University of Utah -// Date: Fri Mar 19 10:05:32 2021 -//------------------------------------------- -//----- Time scale ----- -`timescale 1ns / 1ps + //------------------------------------------- + // FPGA Synthesizable Verilog Netlist + // Description: Template for user-defined Verilog modules + // Author: Xifan TANG + // Organization: University of Utah + // Date: Fri Mar 19 10:05:32 2021 + //------------------------------------------- + //----- Time scale ----- + `timescale 1ns / 1ps + + + + // ----- Template Verilog module for ADDF ----- + //----- Default net type ----- + `default_nettype none + + // ----- Verilog module for ADDF ----- + module ADDF(A, + B, + CI, + SUM, + CO); + //----- INPUT PORTS ----- + input [0:0] A; + //----- INPUT PORTS ----- + input [0:0] B; + //----- INPUT PORTS ----- + input [0:0] CI; + //----- OUTPUT PORTS ----- + output [0:0] SUM; + //----- OUTPUT PORTS ----- + output [0:0] CO; + + //----- BEGIN wire-connection ports ----- + //----- END wire-connection ports ----- + //----- BEGIN Registered ports ----- + //----- END Registered ports ----- -// ----- Template Verilog module for ADDF ----- -//----- Default net type ----- -`default_nettype none - -// ----- Verilog module for ADDF ----- -module ADDF(A, - B, - CI, - SUM, - CO); -//----- INPUT PORTS ----- -input [0:0] A; -//----- INPUT PORTS ----- -input [0:0] B; -//----- INPUT PORTS ----- -input [0:0] CI; -//----- OUTPUT PORTS ----- -output [0:0] SUM; -//----- OUTPUT PORTS ----- -output [0:0] CO; - -//----- BEGIN wire-connection ports ----- -//----- END wire-connection ports ----- - - -//----- BEGIN Registered ports ----- -//----- END Registered ports ----- - -// ----- Internal logic should start here ----- - assign SUM = A ^ B ^ CI; - assign CO = (A & B) | (A & CI) | (B & CI); -// ----- Internal logic should end here ----- -endmodule -// ----- END Verilog module for ADDF ----- + // ----- Internal logic should start here ----- + assign SUM = A ^ B ^ CI; + assign CO = (A & B) | (A & CI) | (B & CI); + // ----- Internal logic should end here ----- + endmodule + // ----- END Verilog module for ADDF ----- We can now link this ``user_defined_templates.v`` into ``k6_frac_N10_adder_chain_40nm_openfpga.xml``.