Question: write verilog and testbench for this dataparh 2 . 3 DATAPATH DESIGN To realize the 4 - bit Smart Climate Control system, the Datapath necessitates

write verilog and testbench for this dataparh
2.3
DATAPATH DESIGN
To realize the 4-bit Smart Climate Control system, the Datapath necessitates specific logical operations, comprising a 2-to-4 Line decoder, four 1-bit AND gates, five 4-bit 2-to-1 Multiplexers, five 4-bit registers, two 4-bit 4-to-1 Multiplexers, and a 4-bit ALU, as illustrated in Figure 1.
Figure 4: Smart Climate Control Datapath
Each component of the Datapath must undergo individual design and simulation before integration into the overarching structure. Interconnections among these components should be established within the top-level design SCCS_DATAPATH, employing a hierarchical design methodology.
This approach should adhere to a parametric model, enabling flexibility in adjusting the controller's bit size. Consequently, a parameterized Verilog code should be written to define the Datapath. The assignment of signals such as CLK and others should align with the directives outlined in section 2.4.
The control signals and Datapath operations:
wrt_addr signal provides an address to activate the required register as stated in Table 1.
Table 1:2-to-4 Decoder Operation.
\table[[wrt addr,Registers],[A,B,REG_3,REG_2,REG_1,REG_0,,],[0,0,0,0,0,1,,],[0,1,0,0,1,0,,],[1,0,0,1,0,0,,],[1,1,1,0,0,0,,]]
wrt_en works together with the wrt_addr to select either a new value or hold the previous value.
Toggle_T/H also works with the wit_en and wit_addr to set either the Temperature setting or the Humidity Setting.
load_data signal selects either the new Temperature/Humidity User/Sensor values from the 4_to_1 MUX or the ALU output result for feedback.
Input_sel is used to select the User_Temperature, Sensor_Temperature, User_Humidity, Sensor_Humidity. (Note: we use a 4-bit data path so these values should lie between 0-15)
rd_addr1 and rd_addr2 signals provide the register addresses that are required to perform the CCU operations between two registers using the ccu_opcode provided. The CCU must be designed with the following operations stated in Table 2. You can use the behavioural approach to design the CCU.
Table 2: ALUOpcodes and Instructions.
\table[[ccu opcode,Opr 1,Opr 2,Op,Instruction],[000,-,-,noop,-,-],[001,,-,,R[]=,1],[010,,-,increment,R[]=,R[]+1
 write verilog and testbench for this dataparh 2.3 DATAPATH DESIGN To

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!