SAIFIINDUSTRIES commited on
Commit
cf721fa
·
verified ·
1 Parent(s): 4489d1f

Add Repo: JulianKemmerer_PipelineC-Graphics (part 3)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_5d63f80d.vhd +132 -0
  2. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_6069a755.vhd +132 -0
  3. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_6311c908.vhd +132 -0
  4. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_6714f46f.vhd +132 -0
  5. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_7a9d37b4.vhd +132 -0
  6. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_90050f10.vhd +132 -0
  7. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_99330d44.vhd +132 -0
  8. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_9dd07569.vhd +132 -0
  9. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_a1537cdf.vhd +132 -0
  10. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_b301c8f8.vhd +132 -0
  11. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_bc6abea1.vhd +132 -0
  12. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_d539089d.vhd +132 -0
  13. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_de1df097.vhd +132 -0
  14. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_f964e092.vhd +132 -0
  15. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_fbfd5db3.vhd +132 -0
  16. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_feab4394.vhd +132 -0
  17. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint21_t_uint21_t_0CLK_de264c78.vhd +94 -0
  18. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint22_t_uint22_t_0CLK_de264c78.vhd +94 -0
  19. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint23_t_uint23_t_0CLK_de264c78.vhd +94 -0
  20. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint2_t_uint2_t_0CLK_de264c78.vhd +94 -0
  21. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint32_t_uint32_t_0CLK_de264c78.vhd +94 -0
  22. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint36_t_uint36_t_0CLK_de264c78.vhd +94 -0
  23. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint3_t_uint3_t_0CLK_de264c78.vhd +94 -0
  24. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint4_t_uint4_t_0CLK_de264c78.vhd +94 -0
  25. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint5_t_uint5_t_0CLK_de264c78.vhd +94 -0
  26. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_0CLK_de264c78.vhd +94 -0
  27. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_0048e4e7.vhd +132 -0
  28. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_0865ab4c.vhd +132 -0
  29. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_16883554.vhd +132 -0
  30. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_1b6c3041.vhd +132 -0
  31. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_27b2954a.vhd +132 -0
  32. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_2f798d40.vhd +132 -0
  33. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_46e601b3.vhd +132 -0
  34. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_5a5c4ba6.vhd +132 -0
  35. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_60a0f81c.vhd +132 -0
  36. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_632d7826.vhd +132 -0
  37. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_95a2cf47.vhd +132 -0
  38. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_97dd14d7.vhd +132 -0
  39. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_9bab4883.vhd +132 -0
  40. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_a9a2737d.vhd +132 -0
  41. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_c45bae38.vhd +132 -0
  42. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_dd78bbdc.vhd +132 -0
  43. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_f7fa3caf.vhd +132 -0
  44. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_fc57febd.vhd +132 -0
  45. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NEGATE_float_8_14_t_0CLK_de264c78.vhd +84 -0
  46. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NEGATE_float_8_14_t_1CLK_2e182bc4.vhd +122 -0
  47. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NEGATE_int16_t_0CLK_23f04728.vhd +117 -0
  48. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NOT_uint16_t_0CLK_de264c78.vhd +83 -0
  49. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NOT_uint17_t_0CLK_de264c78.vhd +83 -0
  50. JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NOT_uint1_t_0CLK_de264c78.vhd +83 -0
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_5d63f80d.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.11576640182364978]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_5d63f80d is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_5d63f80d;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_5d63f80d is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_6069a755.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.5562525118778798]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_6069a755 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_6069a755;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_6069a755 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_6311c908.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.5678295901123974]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_6311c908 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_6311c908;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_6311c908 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_6714f46f.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.6810226061500695]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_6714f46f is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_6714f46f;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_6714f46f is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_7a9d37b4.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.9182325763810695]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_7a9d37b4 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_7a9d37b4;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_7a9d37b4 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_90050f10.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.1152079015212119]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_90050f10 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_90050f10;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_90050f10 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_99330d44.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.2348636325861179]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_99330d44 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_99330d44;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_99330d44 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_9dd07569.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.15168850763451094]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_9dd07569 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_9dd07569;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_9dd07569 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_a1537cdf.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.26444763121346143]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_a1537cdf is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_a1537cdf;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_a1537cdf is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_b301c8f8.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.913779941137985]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_b301c8f8 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_b301c8f8;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_b301c8f8 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_bc6abea1.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.6265334308652049]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_bc6abea1 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_bc6abea1;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_bc6abea1 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_d539089d.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.5735088492977638]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_d539089d is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_d539089d;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_d539089d is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_de1df097.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.05038321464128472]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_de1df097 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_de1df097;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_de1df097 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_f964e092.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.0870864205394118]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_f964e092 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_f964e092;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_f964e092 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_fbfd5db3.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.8434226410733904]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_fbfd5db3 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_fbfd5db3;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_fbfd5db3 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint1_t_uint1_t_1CLK_feab4394.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.48734493891662395]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint1_t_uint1_t_1CLK_feab4394 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(0 downto 0);
19
+ iffalse : in unsigned(0 downto 0);
20
+ return_output : out unsigned(0 downto 0));
21
+ end MUX_uint1_t_uint1_t_uint1_t_1CLK_feab4394;
22
+ architecture arch of MUX_uint1_t_uint1_t_uint1_t_1CLK_feab4394 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(0 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(0 downto 0);
35
+ iffalse : unsigned(0 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint21_t_uint21_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint21_t_uint21_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(20 downto 0);
18
+ iffalse : in unsigned(20 downto 0);
19
+ return_output : out unsigned(20 downto 0));
20
+ end MUX_uint1_t_uint21_t_uint21_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint21_t_uint21_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(20 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(20 downto 0);
34
+ iffalse : unsigned(20 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint22_t_uint22_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint22_t_uint22_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(21 downto 0);
18
+ iffalse : in unsigned(21 downto 0);
19
+ return_output : out unsigned(21 downto 0));
20
+ end MUX_uint1_t_uint22_t_uint22_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint22_t_uint22_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(21 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(21 downto 0);
34
+ iffalse : unsigned(21 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint23_t_uint23_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint23_t_uint23_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(22 downto 0);
18
+ iffalse : in unsigned(22 downto 0);
19
+ return_output : out unsigned(22 downto 0));
20
+ end MUX_uint1_t_uint23_t_uint23_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint23_t_uint23_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(22 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(22 downto 0);
34
+ iffalse : unsigned(22 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint2_t_uint2_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint2_t_uint2_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(1 downto 0);
18
+ iffalse : in unsigned(1 downto 0);
19
+ return_output : out unsigned(1 downto 0));
20
+ end MUX_uint1_t_uint2_t_uint2_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint2_t_uint2_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(1 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(1 downto 0);
34
+ iffalse : unsigned(1 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint32_t_uint32_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint32_t_uint32_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(31 downto 0);
18
+ iffalse : in unsigned(31 downto 0);
19
+ return_output : out unsigned(31 downto 0));
20
+ end MUX_uint1_t_uint32_t_uint32_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint32_t_uint32_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(31 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(31 downto 0);
34
+ iffalse : unsigned(31 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint36_t_uint36_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint36_t_uint36_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(35 downto 0);
18
+ iffalse : in unsigned(35 downto 0);
19
+ return_output : out unsigned(35 downto 0));
20
+ end MUX_uint1_t_uint36_t_uint36_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint36_t_uint36_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(35 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(35 downto 0);
34
+ iffalse : unsigned(35 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint3_t_uint3_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint3_t_uint3_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(2 downto 0);
18
+ iffalse : in unsigned(2 downto 0);
19
+ return_output : out unsigned(2 downto 0));
20
+ end MUX_uint1_t_uint3_t_uint3_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint3_t_uint3_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(2 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(2 downto 0);
34
+ iffalse : unsigned(2 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint4_t_uint4_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint4_t_uint4_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(3 downto 0);
18
+ iffalse : in unsigned(3 downto 0);
19
+ return_output : out unsigned(3 downto 0));
20
+ end MUX_uint1_t_uint4_t_uint4_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint4_t_uint4_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(3 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(3 downto 0);
34
+ iffalse : unsigned(3 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint5_t_uint5_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint5_t_uint5_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(4 downto 0);
18
+ iffalse : in unsigned(4 downto 0);
19
+ return_output : out unsigned(4 downto 0));
20
+ end MUX_uint1_t_uint5_t_uint5_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint5_t_uint5_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(4 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(4 downto 0);
34
+ iffalse : unsigned(4 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_0CLK_de264c78 is
15
+ port(
16
+ cond : in unsigned(0 downto 0);
17
+ iftrue : in unsigned(7 downto 0);
18
+ iffalse : in unsigned(7 downto 0);
19
+ return_output : out unsigned(7 downto 0));
20
+ end MUX_uint1_t_uint8_t_uint8_t_0CLK_de264c78;
21
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_0CLK_de264c78 is
22
+ -- Types and such
23
+ -- Declarations
24
+ attribute mark_debug : string;
25
+ constant PIPELINE_LATENCY : integer := 0;
26
+
27
+ -- One struct to represent this modules variables
28
+ type raw_hdl_variables_t is record
29
+ -- All of the wires in function
30
+
31
+ return_output : unsigned(7 downto 0);
32
+ cond : unsigned(0 downto 0);
33
+ iftrue : unsigned(7 downto 0);
34
+ iffalse : unsigned(7 downto 0);
35
+ end record;
36
+
37
+ -- Type for this modules register pipeline
38
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
39
+
40
+ begin
41
+
42
+
43
+
44
+ -- Combinatorial process for pipeline stages
45
+ process (
46
+ -- Inputs
47
+ cond,
48
+ iftrue,
49
+ iffalse)
50
+ is
51
+ -- Read and write variables to do register transfers per clock
52
+ -- from the previous to next stage
53
+ variable read_pipe : raw_hdl_variables_t;
54
+ variable write_pipe : raw_hdl_variables_t;
55
+
56
+ -- This modules self pipeline registers read once per clock
57
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
58
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
59
+ begin
60
+
61
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
62
+ -- LATENCY=0 is combinational Logic
63
+ for STAGE in 0 to PIPELINE_LATENCY loop
64
+ -- Input to first stage are inputs to function
65
+ if STAGE=0 then
66
+ -- Mux in inputs
67
+ read_pipe.cond := cond;
68
+ read_pipe.iftrue := iftrue;
69
+ read_pipe.iffalse := iffalse;
70
+ else
71
+ -- Default read from previous stage
72
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
73
+ end if;
74
+ -- Default write contents of previous stage
75
+ write_pipe := read_pipe;
76
+
77
+
78
+ if STAGE = 0 then
79
+ -- Assign output based on range for this stage
80
+ if write_pipe.cond=1 then
81
+ write_pipe.return_output := write_pipe.iftrue;
82
+ else
83
+ write_pipe.return_output := write_pipe.iffalse;
84
+ end if;
85
+ end if;
86
+ -- Write to stage reg
87
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
88
+ end loop;
89
+
90
+ -- Last stage of pipeline return wire to return port/reg
91
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
92
+ end process;
93
+
94
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_0048e4e7.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.06468329695495262]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_0048e4e7 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_0048e4e7;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_0048e4e7 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_0865ab4c.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.6272647041159]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_0865ab4c is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_0865ab4c;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_0865ab4c is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_16883554.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.9899393287764648]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_16883554 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_16883554;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_16883554 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_1b6c3041.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.27769258299894467]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_1b6c3041 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_1b6c3041;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_1b6c3041 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_27b2954a.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.7067499178175534]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_27b2954a is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_27b2954a;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_27b2954a is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_2f798d40.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.21917685941228532]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_2f798d40 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_2f798d40;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_2f798d40 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_46e601b3.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.6487348736303374]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_46e601b3 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_46e601b3;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_46e601b3 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_5a5c4ba6.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.9812577506097568]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_5a5c4ba6 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_5a5c4ba6;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_5a5c4ba6 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_60a0f81c.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.8744222795891725]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_60a0f81c is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_60a0f81c;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_60a0f81c is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_632d7826.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.08357877746286822]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_632d7826 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_632d7826;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_632d7826 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_95a2cf47.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.30922642183112053]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_95a2cf47 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_95a2cf47;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_95a2cf47 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_97dd14d7.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.05979962904785528]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_97dd14d7 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_97dd14d7;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_97dd14d7 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_9bab4883.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.6264664838418639]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_9bab4883 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_9bab4883;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_9bab4883 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_a9a2737d.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.7476129023434017]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_a9a2737d is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_a9a2737d;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_a9a2737d is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_c45bae38.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.726845996601681]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_c45bae38 is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_c45bae38;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_c45bae38 is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 0 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_dd78bbdc.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.4289326583992761]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_dd78bbdc is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_dd78bbdc;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_dd78bbdc is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_f7fa3caf.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.3757685994908663]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_f7fa3caf is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_f7fa3caf;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_f7fa3caf is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/MUX_uint1_t_uint8_t_uint8_t_1CLK_fc57febd.vhd ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.16124828203108071]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity MUX_uint1_t_uint8_t_uint8_t_1CLK_fc57febd is
15
+ port(
16
+ clk : in std_logic;
17
+ cond : in unsigned(0 downto 0);
18
+ iftrue : in unsigned(7 downto 0);
19
+ iffalse : in unsigned(7 downto 0);
20
+ return_output : out unsigned(7 downto 0));
21
+ end MUX_uint1_t_uint8_t_uint8_t_1CLK_fc57febd;
22
+ architecture arch of MUX_uint1_t_uint8_t_uint8_t_1CLK_fc57febd is
23
+ -- Types and such
24
+ -- Declarations
25
+ attribute mark_debug : string;
26
+ constant PIPELINE_LATENCY : integer := 1;
27
+
28
+ -- One struct to represent this modules variables
29
+ type raw_hdl_variables_t is record
30
+ -- All of the wires in function
31
+
32
+ return_output : unsigned(7 downto 0);
33
+ cond : unsigned(0 downto 0);
34
+ iftrue : unsigned(7 downto 0);
35
+ iffalse : unsigned(7 downto 0);
36
+ end record;
37
+
38
+ -- Type for this modules register pipeline
39
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
40
+
41
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
42
+ -- RAW HDL pipeline, user state regs
43
+ type manual_registers_t is record
44
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
45
+ end record;
46
+
47
+ -- Function to null out manual regs
48
+ function manual_registers_NULL return manual_registers_t is
49
+ variable rv : manual_registers_t;
50
+ begin
51
+
52
+ return rv;
53
+ end function;
54
+
55
+ -- Manual (not auto pipeline) registers and signals for this function
56
+ signal manual_registers : manual_registers_t;
57
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
58
+
59
+
60
+ begin
61
+
62
+
63
+
64
+ -- Combinatorial process for pipeline stages
65
+ process (
66
+ -- Inputs
67
+ cond,
68
+ iftrue,
69
+ iffalse,
70
+ -- Registers
71
+ manual_registers_r)
72
+ is
73
+ -- Read and write variables to do register transfers per clock
74
+ -- from the previous to next stage
75
+ variable read_pipe : raw_hdl_variables_t;
76
+ variable write_pipe : raw_hdl_variables_t;
77
+
78
+ -- This modules self pipeline registers read once per clock
79
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
80
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
81
+ begin
82
+
83
+ -- Raw hdl REGS
84
+ -- Default read raw hdl regs once per clock
85
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
86
+ -- Default write contents of raw hdl regs
87
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
88
+
89
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
90
+ -- LATENCY=0 is combinational Logic
91
+ for STAGE in 0 to PIPELINE_LATENCY loop
92
+ -- Input to first stage are inputs to function
93
+ if STAGE=0 then
94
+ -- Mux in inputs
95
+ read_pipe.cond := cond;
96
+ read_pipe.iftrue := iftrue;
97
+ read_pipe.iffalse := iffalse;
98
+ else
99
+ -- Default read from previous stage
100
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
101
+ end if;
102
+ -- Default write contents of previous stage
103
+ write_pipe := read_pipe;
104
+
105
+
106
+ if STAGE = 1 then
107
+ -- Assign output based on range for this stage
108
+ if write_pipe.cond=1 then
109
+ write_pipe.return_output := write_pipe.iftrue;
110
+ else
111
+ write_pipe.return_output := write_pipe.iffalse;
112
+ end if;
113
+ end if;
114
+ -- Write to stage reg
115
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
116
+ end loop;
117
+
118
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
119
+ -- Last stage of pipeline return wire to return port/reg
120
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
121
+ end process;
122
+
123
+ -- Register comb signals
124
+ process(clk) is
125
+ begin
126
+ if rising_edge(clk) then
127
+
128
+ manual_registers_r <= manual_registers;
129
+ end if;
130
+ end process;
131
+
132
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NEGATE_float_8_14_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity UNARY_OP_NEGATE_float_8_14_t_0CLK_de264c78 is
15
+ port(
16
+ expr : in std_logic_vector(22 downto 0);
17
+ return_output : out std_logic_vector(22 downto 0));
18
+ end UNARY_OP_NEGATE_float_8_14_t_0CLK_de264c78;
19
+ architecture arch of UNARY_OP_NEGATE_float_8_14_t_0CLK_de264c78 is
20
+ -- Types and such
21
+ -- Declarations
22
+ attribute mark_debug : string;
23
+ constant PIPELINE_LATENCY : integer := 0;
24
+
25
+ -- One struct to represent this modules variables
26
+ type raw_hdl_variables_t is record
27
+ -- All of the wires in function
28
+
29
+ return_output : std_logic_vector(22 downto 0);
30
+ expr : std_logic_vector(22 downto 0);
31
+ end record;
32
+
33
+ -- Type for this modules register pipeline
34
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
35
+
36
+ begin
37
+
38
+
39
+
40
+ -- Combinatorial process for pipeline stages
41
+ process (
42
+ -- Inputs
43
+ expr)
44
+ is
45
+ -- Read and write variables to do register transfers per clock
46
+ -- from the previous to next stage
47
+ variable read_pipe : raw_hdl_variables_t;
48
+ variable write_pipe : raw_hdl_variables_t;
49
+
50
+ -- This modules self pipeline registers read once per clock
51
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
52
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
53
+ begin
54
+
55
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
56
+ -- LATENCY=0 is combinational Logic
57
+ for STAGE in 0 to PIPELINE_LATENCY loop
58
+ -- Input to first stage are inputs to function
59
+ if STAGE=0 then
60
+ -- Mux in inputs
61
+ read_pipe.expr := expr;
62
+ else
63
+ -- Default read from previous stage
64
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
65
+ end if;
66
+ -- Default write contents of previous stage
67
+ write_pipe := read_pipe;
68
+
69
+
70
+ if STAGE = 0 then
71
+ -- Same value
72
+ write_pipe.return_output := write_pipe.expr;
73
+ -- With left most sign bit inverted
74
+ write_pipe.return_output(write_pipe.return_output'left) := not write_pipe.expr(write_pipe.expr'left);
75
+ end if;
76
+ -- Write to stage reg
77
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
78
+ end loop;
79
+
80
+ -- Last stage of pipeline return wire to return port/reg
81
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
82
+ end process;
83
+
84
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NEGATE_float_8_14_t_1CLK_2e182bc4.vhd ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: [0.43327790074151423]
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity UNARY_OP_NEGATE_float_8_14_t_1CLK_2e182bc4 is
15
+ port(
16
+ clk : in std_logic;
17
+ expr : in std_logic_vector(22 downto 0);
18
+ return_output : out std_logic_vector(22 downto 0));
19
+ end UNARY_OP_NEGATE_float_8_14_t_1CLK_2e182bc4;
20
+ architecture arch of UNARY_OP_NEGATE_float_8_14_t_1CLK_2e182bc4 is
21
+ -- Types and such
22
+ -- Declarations
23
+ attribute mark_debug : string;
24
+ constant PIPELINE_LATENCY : integer := 1;
25
+
26
+ -- One struct to represent this modules variables
27
+ type raw_hdl_variables_t is record
28
+ -- All of the wires in function
29
+
30
+ return_output : std_logic_vector(22 downto 0);
31
+ expr : std_logic_vector(22 downto 0);
32
+ end record;
33
+
34
+ -- Type for this modules register pipeline
35
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
36
+
37
+ -- Type holding all manually (not auto generated in pipelining) registers for this function
38
+ -- RAW HDL pipeline, user state regs
39
+ type manual_registers_t is record
40
+ raw_hdl_pipeline : raw_hdl_register_pipeline_t;
41
+ end record;
42
+
43
+ -- Function to null out manual regs
44
+ function manual_registers_NULL return manual_registers_t is
45
+ variable rv : manual_registers_t;
46
+ begin
47
+
48
+ return rv;
49
+ end function;
50
+
51
+ -- Manual (not auto pipeline) registers and signals for this function
52
+ signal manual_registers : manual_registers_t;
53
+ signal manual_registers_r : manual_registers_t := manual_registers_NULL;
54
+
55
+
56
+ begin
57
+
58
+
59
+
60
+ -- Combinatorial process for pipeline stages
61
+ process (
62
+ -- Inputs
63
+ expr,
64
+ -- Registers
65
+ manual_registers_r)
66
+ is
67
+ -- Read and write variables to do register transfers per clock
68
+ -- from the previous to next stage
69
+ variable read_pipe : raw_hdl_variables_t;
70
+ variable write_pipe : raw_hdl_variables_t;
71
+
72
+ -- This modules self pipeline registers read once per clock
73
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
74
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
75
+ begin
76
+
77
+ -- Raw hdl REGS
78
+ -- Default read raw hdl regs once per clock
79
+ read_raw_hdl_pipeline_regs := manual_registers_r.raw_hdl_pipeline;
80
+ -- Default write contents of raw hdl regs
81
+ write_raw_hdl_pipeline_regs := read_raw_hdl_pipeline_regs;
82
+
83
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
84
+ -- LATENCY=0 is combinational Logic
85
+ for STAGE in 0 to PIPELINE_LATENCY loop
86
+ -- Input to first stage are inputs to function
87
+ if STAGE=0 then
88
+ -- Mux in inputs
89
+ read_pipe.expr := expr;
90
+ else
91
+ -- Default read from previous stage
92
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
93
+ end if;
94
+ -- Default write contents of previous stage
95
+ write_pipe := read_pipe;
96
+
97
+
98
+ if STAGE = 1 then
99
+ -- Same value
100
+ write_pipe.return_output := write_pipe.expr;
101
+ -- With left most sign bit inverted
102
+ write_pipe.return_output(write_pipe.return_output'left) := not write_pipe.expr(write_pipe.expr'left);
103
+ end if;
104
+ -- Write to stage reg
105
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
106
+ end loop;
107
+
108
+ manual_registers.raw_hdl_pipeline <= write_raw_hdl_pipeline_regs;
109
+ -- Last stage of pipeline return wire to return port/reg
110
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
111
+ end process;
112
+
113
+ -- Register comb signals
114
+ process(clk) is
115
+ begin
116
+ if rising_edge(clk) then
117
+
118
+ manual_registers_r <= manual_registers;
119
+ end if;
120
+ end process;
121
+
122
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NEGATE_int16_t_0CLK_23f04728.vhd ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 2
14
+ entity UNARY_OP_NEGATE_int16_t_0CLK_23f04728 is
15
+ port(
16
+ expr : in signed(15 downto 0);
17
+ return_output : out signed(16 downto 0));
18
+ end UNARY_OP_NEGATE_int16_t_0CLK_23f04728;
19
+ architecture arch of UNARY_OP_NEGATE_int16_t_0CLK_23f04728 is
20
+ -- Types and such
21
+ -- Declarations
22
+ attribute mark_debug : string;
23
+ constant PIPELINE_LATENCY : integer := 0;
24
+ -- All of the wires/regs in function
25
+ -- Each function instance gets signals
26
+ -- UNARY_OP_NOT[UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea]
27
+ signal UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_expr : unsigned(16 downto 0);
28
+ signal UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output : unsigned(16 downto 0);
29
+
30
+ -- BIN_OP_PLUS[UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8]
31
+ signal BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_left : unsigned(16 downto 0);
32
+ signal BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_right : unsigned(0 downto 0);
33
+ signal BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output : unsigned(17 downto 0);
34
+
35
+
36
+ begin
37
+
38
+ -- SUBMODULE INSTANCES
39
+ -- UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea
40
+ UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea : entity work.UNARY_OP_NOT_uint17_t_0CLK_de264c78 port map (
41
+ UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_expr,
42
+ UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output);
43
+
44
+ -- BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8
45
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8 : entity work.BIN_OP_PLUS_uint17_t_uint1_t_0CLK_de264c78 port map (
46
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_left,
47
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_right,
48
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output);
49
+
50
+
51
+
52
+ -- Combinatorial process for pipeline stages
53
+ process (
54
+ -- Inputs
55
+ expr,
56
+ -- All submodule outputs
57
+ UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output,
58
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output)
59
+ is
60
+ -- All of the wires in function
61
+ variable VAR_CLOCK_ENABLE : unsigned(0 downto 0);
62
+ variable VAR_expr : signed(15 downto 0);
63
+ variable VAR_return_output : signed(16 downto 0);
64
+ variable VAR_x_wide : unsigned(16 downto 0);
65
+ variable VAR_x_wide_UNARY_OP_NEGATE_int16_t_c_l10_c3_f061 : unsigned(16 downto 0);
66
+ variable VAR_x_wide_neg : unsigned(16 downto 0);
67
+ variable VAR_UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_expr : unsigned(16 downto 0);
68
+ variable VAR_UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output : unsigned(16 downto 0);
69
+ variable VAR_x_neg_wide_plus1 : unsigned(16 downto 0);
70
+ variable VAR_x_neg_wide_plus1_UNARY_OP_NEGATE_int16_t_c_l16_c3_dac4 : unsigned(16 downto 0);
71
+ variable VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_left : unsigned(16 downto 0);
72
+ variable VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_right : unsigned(0 downto 0);
73
+ variable VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output : unsigned(17 downto 0);
74
+ variable VAR_rv : signed(16 downto 0);
75
+ variable VAR_rv_UNARY_OP_NEGATE_int16_t_c_l19_c3_3714 : signed(16 downto 0);
76
+ begin
77
+ -- Constants and things derived from constants alone
78
+ -- Submodule level 0
79
+ VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_right := to_unsigned(1, 1);
80
+
81
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
82
+ -- LATENCY=0 is combinational Logic
83
+ for STAGE in 0 to PIPELINE_LATENCY loop
84
+ if STAGE = 0 then
85
+ -- Mux in inputs
86
+ VAR_expr := expr;
87
+
88
+ -- Submodule level 0
89
+ VAR_x_wide_UNARY_OP_NEGATE_int16_t_c_l10_c3_f061 := unsigned(std_logic_vector(resize(VAR_expr,17)));
90
+ VAR_UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_expr := VAR_x_wide_UNARY_OP_NEGATE_int16_t_c_l10_c3_f061;
91
+ -- UNARY_OP_NOT[UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea] LATENCY=0
92
+ -- Inputs
93
+ UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_expr <= VAR_UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_expr;
94
+ -- Outputs
95
+ VAR_UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output := UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output;
96
+
97
+ -- Submodule level 1
98
+ VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_left := VAR_UNARY_OP_NOT_UNARY_OP_NEGATE_int16_t_c_l13_c17_63ea_return_output;
99
+ -- BIN_OP_PLUS[UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8] LATENCY=0
100
+ -- Inputs
101
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_left <= VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_left;
102
+ BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_right <= VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_right;
103
+ -- Outputs
104
+ VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output := BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output;
105
+
106
+ -- Submodule level 2
107
+ VAR_x_neg_wide_plus1_UNARY_OP_NEGATE_int16_t_c_l16_c3_dac4 := resize(VAR_BIN_OP_PLUS_UNARY_OP_NEGATE_int16_t_c_l16_c22_b5b8_return_output, 17);
108
+ VAR_rv_UNARY_OP_NEGATE_int16_t_c_l19_c3_3714 := signed(std_logic_vector(resize(VAR_x_neg_wide_plus1_UNARY_OP_NEGATE_int16_t_c_l16_c3_dac4, 17)));
109
+ VAR_return_output := VAR_rv_UNARY_OP_NEGATE_int16_t_c_l19_c3_3714;
110
+ -- Last stage of pipeline return wire to return port/reg
111
+ return_output <= VAR_return_output;
112
+ end if;
113
+ end loop;
114
+
115
+ end process;
116
+
117
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NOT_uint16_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity UNARY_OP_NOT_uint16_t_0CLK_de264c78 is
15
+ port(
16
+ expr : in unsigned(15 downto 0);
17
+ return_output : out unsigned(15 downto 0));
18
+ end UNARY_OP_NOT_uint16_t_0CLK_de264c78;
19
+ architecture arch of UNARY_OP_NOT_uint16_t_0CLK_de264c78 is
20
+ -- Types and such
21
+ -- Declarations
22
+ attribute mark_debug : string;
23
+ constant PIPELINE_LATENCY : integer := 0;
24
+
25
+ -- One struct to represent this modules variables
26
+ type raw_hdl_variables_t is record
27
+ -- All of the wires in function
28
+
29
+ expr_resized : unsigned(15 downto 0);
30
+ return_output : unsigned(15 downto 0);
31
+ expr : unsigned(15 downto 0);
32
+ end record;
33
+
34
+ -- Type for this modules register pipeline
35
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
36
+
37
+ begin
38
+
39
+
40
+
41
+ -- Combinatorial process for pipeline stages
42
+ process (
43
+ -- Inputs
44
+ expr)
45
+ is
46
+ -- Read and write variables to do register transfers per clock
47
+ -- from the previous to next stage
48
+ variable read_pipe : raw_hdl_variables_t;
49
+ variable write_pipe : raw_hdl_variables_t;
50
+
51
+ -- This modules self pipeline registers read once per clock
52
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
53
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
54
+ begin
55
+
56
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
57
+ -- LATENCY=0 is combinational Logic
58
+ for STAGE in 0 to PIPELINE_LATENCY loop
59
+ -- Input to first stage are inputs to function
60
+ if STAGE=0 then
61
+ -- Mux in inputs
62
+ read_pipe.expr := expr;
63
+ else
64
+ -- Default read from previous stage
65
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
66
+ end if;
67
+ -- Default write contents of previous stage
68
+ write_pipe := read_pipe;
69
+
70
+
71
+ if STAGE = 0 then
72
+ write_pipe.expr_resized := resize(write_pipe.expr, 16);
73
+ write_pipe.return_output := not write_pipe.expr_resized;
74
+ end if;
75
+ -- Write to stage reg
76
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
77
+ end loop;
78
+
79
+ -- Last stage of pipeline return wire to return port/reg
80
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
81
+ end process;
82
+
83
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NOT_uint17_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity UNARY_OP_NOT_uint17_t_0CLK_de264c78 is
15
+ port(
16
+ expr : in unsigned(16 downto 0);
17
+ return_output : out unsigned(16 downto 0));
18
+ end UNARY_OP_NOT_uint17_t_0CLK_de264c78;
19
+ architecture arch of UNARY_OP_NOT_uint17_t_0CLK_de264c78 is
20
+ -- Types and such
21
+ -- Declarations
22
+ attribute mark_debug : string;
23
+ constant PIPELINE_LATENCY : integer := 0;
24
+
25
+ -- One struct to represent this modules variables
26
+ type raw_hdl_variables_t is record
27
+ -- All of the wires in function
28
+
29
+ expr_resized : unsigned(16 downto 0);
30
+ return_output : unsigned(16 downto 0);
31
+ expr : unsigned(16 downto 0);
32
+ end record;
33
+
34
+ -- Type for this modules register pipeline
35
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
36
+
37
+ begin
38
+
39
+
40
+
41
+ -- Combinatorial process for pipeline stages
42
+ process (
43
+ -- Inputs
44
+ expr)
45
+ is
46
+ -- Read and write variables to do register transfers per clock
47
+ -- from the previous to next stage
48
+ variable read_pipe : raw_hdl_variables_t;
49
+ variable write_pipe : raw_hdl_variables_t;
50
+
51
+ -- This modules self pipeline registers read once per clock
52
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
53
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
54
+ begin
55
+
56
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
57
+ -- LATENCY=0 is combinational Logic
58
+ for STAGE in 0 to PIPELINE_LATENCY loop
59
+ -- Input to first stage are inputs to function
60
+ if STAGE=0 then
61
+ -- Mux in inputs
62
+ read_pipe.expr := expr;
63
+ else
64
+ -- Default read from previous stage
65
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
66
+ end if;
67
+ -- Default write contents of previous stage
68
+ write_pipe := read_pipe;
69
+
70
+
71
+ if STAGE = 0 then
72
+ write_pipe.expr_resized := resize(write_pipe.expr, 17);
73
+ write_pipe.return_output := not write_pipe.expr_resized;
74
+ end if;
75
+ -- Write to stage reg
76
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
77
+ end loop;
78
+
79
+ -- Last stage of pipeline return wire to return port/reg
80
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
81
+ end process;
82
+
83
+ end arch;
JulianKemmerer_PipelineC-Graphics/vhd/all_vhdl_files/UNARY_OP_NOT_uint1_t_0CLK_de264c78.vhd ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ -- Timing params:
2
+ -- Fixed?: False
3
+ -- Pipeline Slices: []
4
+ -- Input regs?: False
5
+ -- Output regs?: False
6
+ library std;
7
+ use std.textio.all;
8
+ library ieee;
9
+ use ieee.std_logic_1164.all;
10
+ use ieee.numeric_std.all;
11
+ use ieee.float_pkg.all;
12
+ use work.c_structs_pkg.all;
13
+ -- Submodules: 0
14
+ entity UNARY_OP_NOT_uint1_t_0CLK_de264c78 is
15
+ port(
16
+ expr : in unsigned(0 downto 0);
17
+ return_output : out unsigned(0 downto 0));
18
+ end UNARY_OP_NOT_uint1_t_0CLK_de264c78;
19
+ architecture arch of UNARY_OP_NOT_uint1_t_0CLK_de264c78 is
20
+ -- Types and such
21
+ -- Declarations
22
+ attribute mark_debug : string;
23
+ constant PIPELINE_LATENCY : integer := 0;
24
+
25
+ -- One struct to represent this modules variables
26
+ type raw_hdl_variables_t is record
27
+ -- All of the wires in function
28
+
29
+ expr_resized : unsigned(0 downto 0);
30
+ return_output : unsigned(0 downto 0);
31
+ expr : unsigned(0 downto 0);
32
+ end record;
33
+
34
+ -- Type for this modules register pipeline
35
+ type raw_hdl_register_pipeline_t is array(0 to PIPELINE_LATENCY) of raw_hdl_variables_t;
36
+
37
+ begin
38
+
39
+
40
+
41
+ -- Combinatorial process for pipeline stages
42
+ process (
43
+ -- Inputs
44
+ expr)
45
+ is
46
+ -- Read and write variables to do register transfers per clock
47
+ -- from the previous to next stage
48
+ variable read_pipe : raw_hdl_variables_t;
49
+ variable write_pipe : raw_hdl_variables_t;
50
+
51
+ -- This modules self pipeline registers read once per clock
52
+ variable read_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
53
+ variable write_raw_hdl_pipeline_regs : raw_hdl_register_pipeline_t;
54
+ begin
55
+
56
+ -- Loop to construct simultaneous register transfers for each of the pipeline stages
57
+ -- LATENCY=0 is combinational Logic
58
+ for STAGE in 0 to PIPELINE_LATENCY loop
59
+ -- Input to first stage are inputs to function
60
+ if STAGE=0 then
61
+ -- Mux in inputs
62
+ read_pipe.expr := expr;
63
+ else
64
+ -- Default read from previous stage
65
+ read_pipe := read_raw_hdl_pipeline_regs(STAGE-1);
66
+ end if;
67
+ -- Default write contents of previous stage
68
+ write_pipe := read_pipe;
69
+
70
+
71
+ if STAGE = 0 then
72
+ write_pipe.expr_resized := resize(write_pipe.expr, 1);
73
+ write_pipe.return_output := not write_pipe.expr_resized;
74
+ end if;
75
+ -- Write to stage reg
76
+ write_raw_hdl_pipeline_regs(STAGE) := write_pipe;
77
+ end loop;
78
+
79
+ -- Last stage of pipeline return wire to return port/reg
80
+ return_output <= write_raw_hdl_pipeline_regs(PIPELINE_LATENCY).return_output;
81
+ end process;
82
+
83
+ end arch;