Question: Computer Science Verilog Provide the complete code including the generator, the receiver and a testbench please! Please make sure it works before submitting your answer!
Computer Science Verilog
Provide the complete code including the generator, the receiver and a testbench please! Please make sure it works before submitting your answer!
Design of an IC transaction generator and receiver
Design an IC transaction generator according to the specifications in the document ICbus Specification and User Manual, revision
Interfaces of the Generator:
a CLK This is an input that comes from the CPU with a certain frequency. The active edge is the rising edge.
b RESET Input to reset the generator. If RESET the generator works normally. Otherwise, the generator returns to its initial state and all outputs go to zero.
c STARTSTB A oneclock cycle strobe pulse indicating that the CPU wants to initiate an IC transaction.
d RNW Read not write. This signal indicates the direction of the transaction the CPU wants to execute. When RNW it is a read transaction; when RNW it is a write transaction.
e ICADDR: This input comes from a CPU register and contains the address of the IC transaction receiver.
f SCL IC clock output. The active edge of the SCL signal is the rising edge. The generator must generate SCL at of the input CLK frequency.
g SDAOUT Serial data output. Must behave according to the IC protocol for START, STOP, and readwrite transactions.
h SDAOE Enable signal for SDAOUT. Set to when the generator controls the IC bus, and when the receiver controls it according to protocol specifications.
i SDAIN Serial input from the tester. Must behave as per the IC protocol for ACK signals and providing input data during read transactions.
j WRDATA: Parallel input containing the bits to be sent through IC during a write transaction.
k RDDATA: Output producing the bits received from the IC transaction receiver during a read transaction on SDAIN After receiving the bits, the generator must send a STOP condition per the IC protocol.
Receiver Interfaces:
l CLK Input clock from the CPU with a rising active edge.
m RESET Resets the receiver. If RESET the receiver operates normally. Otherwise, it resets to the initial state.
n ICADDR: Input address to verify that the received transaction matches the receivers address.
o SCL Input clock for IC The active edge is the rising edge.
p SDAOUT Serial output that must follow IC protocol for START, STOP, and readwrite transactions.
q SDAOE Enable signal for SDAOUT during certain parts of the transaction.
r SDAIN Serial input sent from the receiver to the generator, used for ACK and providing data during reads.
s WRDATA: Parallel output containing the bits received via IC during a write transaction.
t RDDATA: Parallel input providing the bits to be sent during a read transaction through SDAIN
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
