-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from StanfordVLSI/transmitter
output_buf module create
- Loading branch information
Showing
16 changed files
with
228 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
source -echo -verbose ../../inputs/adk/adk.tcl | ||
read_db ../../inputs/adk/stdcells.db | ||
|
||
create_qtm_model termination | ||
|
||
set_qtm_global_parameter -param setup -value 0.0 | ||
set_qtm_global_parameter -param hold -value 0.0 | ||
set_qtm_global_parameter -param clk_to_output -value 0.0 | ||
|
||
set_qtm_technology -library $::env(qtm_tech_lib) | ||
|
||
create_qtm_drive_type -lib_cell $ADK_DRIVING_CELL qtm_drive | ||
create_qtm_load_type -lib_cell $ADK_DRIVING_CELL qtm_load | ||
|
||
# define inputs | ||
set input_list { \ | ||
VinP \ | ||
VinN \ | ||
Vcm \ | ||
} | ||
create_qtm_port $input_list -type input | ||
set_qtm_port_load -type qtm_load -factor 2 $input_list | ||
|
||
report_qtm_model | ||
save_qtm_model -format {lib db} -library_cell | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Adapted from Garnet and ButterPHY | ||
|
||
name: termination | ||
|
||
commands: | ||
- | | ||
mkdir -p outputs | ||
tar -xzvf /home/sjkim85/dragonphy_tarballs/termination-latest.tar.gz -C outputs | ||
outputs: | ||
- termination.lef | ||
- termination.gds | ||
- termination.spi | ||
- termination.version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
module output_buf_tx ( | ||
input wire logic DINN, | ||
input wire logic DINP, | ||
input wire logic [7:0] CTL_SLICE_N, | ||
input wire logic [7:0] CTL_SLICE_P, | ||
output wire logic DOUTN, | ||
output wire logic DOUTP | ||
); | ||
// Internal connections | ||
wire logic BTN; // Buffer to Termination - | ||
wire logic BTP; // Buffer to Termination + | ||
|
||
|
||
// Termination | ||
|
||
|
||
termination iBUF_n( | ||
.VinP(DOUTN), | ||
.VinN(DOUTN), | ||
.Vcm(BTN) | ||
); | ||
|
||
termination iBUF_p( | ||
.VinP(DOUTP), | ||
.VinN(DOUTP), | ||
.Vcm(BTP) | ||
); | ||
|
||
|
||
|
||
// instantiate BUFTD + | ||
|
||
generate | ||
for (genvar i=0; i<8; i=i+1) begin: iBUFN | ||
tx_tri_buf i_tri_buf ( | ||
// user-provided signals | ||
.DIN(DINN), // Input | ||
.en(CTL_SLICE_N[i]), // Output | ||
.DOUT(BTN) | ||
); | ||
end | ||
endgenerate | ||
|
||
|
||
generate | ||
for (genvar j=0; j<8; j=j+1) begin: iBUFP | ||
tx_tri_buf i_tri_buf ( | ||
// user-provided signals | ||
.DIN(DINP), // Input | ||
.en(CTL_SLICE_P[j]), // Output | ||
.DOUT(BTP) | ||
); | ||
end | ||
endgenerate | ||
|
||
endmodule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.